opto coupelr output volt

Thread Starter

z3ngew

Joined Apr 18, 2013
13
Hello everyone,
I am trying to design a circuit that controls the state of a 12v relay using a microcontroller, the relay is operating using different source than the microcontroller, i've used an opto-coupler as an interface between input and output signal, but, the problem is that the opto-coupler is not transmitting the 12v needed for the relay to operate.
In the attachments there is a schematic of the circuit,View attachment opto.zip

Note: the optocoupler used is PC817

Thanks in advance,
z3ngew
 

crutschow

Joined Mar 14, 2008
34,470
Did you read the opt coupler data sheet? The maximum input current is 50mA and the minimum transfer ratio is 50% so the worst-case maximum output current is 25mA.

You circuit shows a 330Ω resistor in series with the opto input which gives about 11mA with a 5V signal so the worst-case output current is about 6.5mA, likely not enough to pull in the relay.

Bottom line is you probably need to add a transistor gain stage at the opto output to provide sufficient current to pull in the relay.
 
Top