Electrical – Optoisolator With LED in series not working

ledopen-collectoropen-drainopto-isolator

I'm using an FODM8061 Optoisoltor with and open collector Logic Output. I'm referencOptoisolator Logic Output Question

Here's my current circuit:
Circuit

LED 1(on the left) connects to an open-collector gear-tooth sensor. The led is used to help set the location of the sensor. It's intended to light up when the sensor is correctly positioned. On the right side, the signal coming out of R6 goes to the MCU.

My diagnosis: The LED will light up when I bring cathode to ground, but I get no output on optoisolator. When I short the LED(remove the led from the circuit) and bring it to ground, The optoisolator works as intended.

Why would the LED cause this issue? Can I provide any other information?

Best Answer

You should not have the LED set up like this. With the 3.3V source, two 330 ohm resistors, an LED (presumably a voltage drop of around 1.8V) then that only leaves 1.5V for the LED in the opto-isolator. The typical forward voltage of that LED (according to the opto datasheet) is 1.45 (max 1.8V) so you are already pushing your voltage limits. Not to mention you have two 330 ohm resistors in series, which drops even more voltage and reduces the current to the point where it's completely useless. I'm actually surprised LED1 lights up at all.

You cannot have LED1 in series with the opto-isolator. If you want to do that you'll have to increase the voltage to ensure both diodes "switch on" (light up) and to make sure enough current can flow through them to produce enough light.

You should have done the math first, you would have seen this was a very clear problem.