0
\$\begingroup\$

I am building an IoT connected ECU for electric 2 wheelers.

Help me figure

3.3v is from an ESP32.

I am working on a budget and I am also new to designing that's why I want to know if this even work or if I am doing/missing something obvious.

PS: EV controllers have an ignition wire which when connected to the battery supply positive will start the vehicle. Sigpad is where this ignition wire will be attached. BATT_IN in +ve of my 48V pack. Ignition pin is connected to ESP32's GPIO35.

\$\endgroup\$
1
  • \$\begingroup\$ If it works it may also be capable of being improved. \$\endgroup\$
    – Andy aka
    Commented Feb 18, 2022 at 21:27

2 Answers 2

1
\$\begingroup\$

No, it won't work. The relay coil is 64 ohms, which means it requires more than 50mA, and the absolute maximum for optocoupler is 50mA, so the ratings are exceeded. The optocoupler is not meant to drive so high currents.

Besides since the optocoupler is not even connected in a way to isolate anything, it will be much cheaper to replace the optocoupler with a general purpose transistor which can handle the relay current.

\$\endgroup\$
1
  • \$\begingroup\$ Understood. Thanks for the help. Also, I wanted to isolate my circuit from the +48v which is done by the relay. \$\endgroup\$ Commented Feb 18, 2022 at 21:06
0
\$\begingroup\$

The optocoupler seems unnecessary, the relay already acts as an isolator. Unless the 3.3V is only available on an isolated area? Also if Ignition is directly connected to an ESP32 pin, you need a current limiting resistor for the LED optocoupler.

I think a simple MOSFET would be efficient and cheaper.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
1
  • \$\begingroup\$ Thanks for the suggestion. I have resolved the problems by using a simple BJT. Low threshold SMD mosfets weren't available (near me) for this prototype build. 2N7000 is a great suggestion. will include this in the Final version of the ECU. Thanks again. \$\endgroup\$ Commented Feb 19, 2022 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.