0
\$\begingroup\$

I'm working on an automotive project, where I'd like to interface various digital signals to an MCU. The signals can either be ON/OFF (e.g. radiator fans) or measurements of pulse frequency, width, duration, etc. (e.g. tachometer or speed). The amplitude of the logic level high can be 5V, 9V or 12V. I would like to protect the MCU inputs from overvoltage conditions (e.g. voltages up to 40V) as well as reverse polarity conditions.

In testing and prototyping, I've used the below basic optocoupler circuit, selecting a suitable R1 value to ensure the current through D2 at 40V is within the specifications for the optocoupler:

enter image description here

This circuit works as intended, but I'm concerned about the longevity of the optocoupler LED and the degradation of the CTR over time. Is there an alternate method of providing isolated coupling for a wide range of voltage inputs, which has better long-term reliability and better high frequency characteristics than optocouplers?

\$\endgroup\$
5
  • 1
    \$\begingroup\$ Note that when you use the CircuitLab button on the editor toolbar your schematics get saved inline and are editable and copyable. You don't need a CircuitLab account. No need for screengrabs and no grid. \$\endgroup\$
    – Transistor
    Commented Aug 8, 2018 at 7:19
  • \$\begingroup\$ Thanks for the heads up, I had no idea that CircuitLabl button was there, I'll be sure to use it in the future. \$\endgroup\$
    – jars121
    Commented Aug 8, 2018 at 7:22
  • \$\begingroup\$ Do you really need isolation? \$\endgroup\$
    – user16222
    Commented Aug 8, 2018 at 8:53
  • \$\begingroup\$ Maybe not, but I'd like to understand the available options regardless. \$\endgroup\$
    – jars121
    Commented Aug 8, 2018 at 10:11
  • \$\begingroup\$ Duplicate of: 12V input on microcontroller pin perhaps? \$\endgroup\$
    – Jeroen3
    Commented Aug 10, 2018 at 11:42

2 Answers 2

2
\$\begingroup\$

There are off-the-shelf isolator chips. For example:

  1. Inductively coupled from Analog
  2. RF coupled from Silabs (yes! basically a small radio inside a chip!)
  3. Capacitively coupled like ISO77xx from TI
\$\endgroup\$
2
  • \$\begingroup\$ Thanks for the suggestions. Having read through the datasheets, I'm still unsure whether these are designed to accept a wide input voltage range, or simply as a means of isolating the field and logic sides? I.e. the input ranges seem to be in the 3-5V range, as opposed to the 0-40V range I currently have with the optocoupler. \$\endgroup\$
    – jars121
    Commented Aug 8, 2018 at 10:13
  • \$\begingroup\$ If the signal you want to isolate is 0 or 3-40V then make a simple voltage clamp: resistor + zener on the input of the isolator. \$\endgroup\$
    – filo
    Commented Aug 8, 2018 at 10:15
0
\$\begingroup\$

but you only need a resistor.

schematic

simulate this circuit – Schematic created using CircuitLab

the protection diodes in the microncontroller are sufficient to tame the less than 1 mA that the resistors will pass through to the micreocontroller pin.

\$\endgroup\$
3
  • \$\begingroup\$ You still need noise immunity, 100k does not provide that. This might. \$\endgroup\$
    – Jeroen3
    Commented Aug 10, 2018 at 11:41
  • \$\begingroup\$ software can provide that. \$\endgroup\$ Commented Aug 10, 2018 at 22:17
  • \$\begingroup\$ You can't fix coupled noise by software. \$\endgroup\$
    – Jeroen3
    Commented Aug 10, 2018 at 22:21

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.