Opto Coupler 817 not switching off

Thread Starter

abuhafss

Joined Aug 17, 2010
318
Hi

Here is the schematic on which I am working:
1690454020347.png
Without the sensor, the circuit works fine with direct 220VAC. However, when sensor is introduced the opto-coupler remains ON even when the sensor is off.

Diodes 1N4007
4 x 150k resistors in parallel so resistor value is 37k.
Coupler is PC817.
Sensor is 2-wire inductive. I also tried photo sensor with same results.
(Please ignore the GND sign in the schematic).
 

Alec_t

Joined Sep 17, 2013
15,104
Presumably the sensor (or its mounting) provides a conduction path even when it is 'off'. Can you post a link to the sensor?
 

Ian0

Joined Aug 7, 2020
13,097
If it is a two-wire sensor then it must provide a conduction path when off, otherwise, where would it get its own power from?
 

Thread Starter

abuhafss

Joined Aug 17, 2010
318
Additional information:

If I connect an LED + resistor + 9V battery at the output of the coupler, the LED lights brightly when the sensor is ON and gets dimmed slightly when the sensor is OFF.
 

Thread Starter

abuhafss

Joined Aug 17, 2010
318
1690473314287.png
Since the 2 wires of the sensor have no polarity, they can be connected either way.
The lower-right is the 1st pin of the opto coupler.
The LED is disabled.

I have tried different AC sensors, all have same results.
1690474146018.png
 
Last edited:

sghioto

Joined Dec 31, 2017
8,633
From the brochure from Rico it says a maximum residual voltage of 10 volts.
Might try increasing the value of the 37K resistor.
 

Thread Starter

abuhafss

Joined Aug 17, 2010
318
From the brochure from Rico it says a maximum residual voltage of 10 volts.
Might try increasing the value of the 37K resistor.
I increased to 2 x 330K = 165K, no change.
In fact, the test load LED is more brighter when sensor is off. Difficult to visualize the change in LED when sensor is OFF/ON.
 

sghioto

Joined Dec 31, 2017
8,633
Did you measure the voltage across the zener when the sensor is OFF?
Show the schematic of how the LED is connected to the PC817.
 

Ian0

Joined Aug 7, 2020
13,097
If you get the quiescent current from the datasheet, you will be able to work out the value you need, instead of faffing about substituting values until you randomly might get it to work.
 
Top