I am trying to drive a series of LEDs using a trigger signal. I want to isolate the power and ground of the trigger circuit and the LED circuit.
I have wired my circuit as attached and my LEDs are always on (full brightness) regardless of my input trigger signal. My understanding is that if the optocoupler is turned on then 12V will short to ground through the 220ohm resister instead of the LEDs.
I also tried connecting the LEDs between 12V and pin5 of the optocoupler but the LEDs are not as bright (but it triggers). I need to have the LEDs as bright as possible and also triggers depending on the input form the left.
When I trigger my trigger input on the left I can measure a 550mV pulse between my pin4 and 6 of the opto-coupler so I am thinking my trigger circuit must be correct. Just somehow my LEDs are not wired appropriately.. I also tried removing the 220ohm on the right side the LEDs are still.
First your 12 LEDs will not illuminate on 12V as the forward voltage can be between about 2V and 4V for each LED depending upon color.
I would connect several parallel strings with current limiting resistors in each string between +12V and the pin 5 of the optocoupler. Leave pin 4 at ground as long as the 12V is connected between Vcc and ground.
Second you donot need a transistor connected to pins 1 & 2. If pin 2 is at ground and a resistor is connected from pin 1 to the other voltage the LED's connected to pin 5 will illuminate when there is current flow through the diode on pins 1 and 2.
Wow thats all messed up.
You dont need a transister on the input. Drive the input from your 3.3 volt trigger voltage and a resister.
You have the LEDS hooked up across the 12 volt supply, the photo transister or output needs to be in series with them.
Hi Jim, thank you for the reply. I actually did try hooking up the LEDs the way you did in the diagram here. Triggering works fine but my LEDs are a lot dimmer. I had a 220ohm in series with the LEDs which I think is quite small of a resistance already. These LEDs have built-in resistors. My LEDs are a lot dimmer than when they are connected directly to 12V power supply. I need them to be super bright. Do you have any idea what's making them so dim? I measure only a 5.6V across the LEDs but they are rated for 12V at 30mA. Seems like the optocoupler is eating away some of my voltage drop a bit too much.