Opto Coupler 817 not switching off

Thread Starter

abuhafss

Joined Aug 17, 2010
318
Following circuit worked:
1690801056318.png
However, when the sensor gets off, there is a delay in switching off of the PC817.
Need to discharge C1 quickly. Alternatively, increase the reference voltage at pin #3 of LM358.
 

Thread Starter

abuhafss

Joined Aug 17, 2010
318
You have already got a convenient AC input optoisolator (PC814) and that allows you to eliminate the rectifier.. I had to simulate it with two PC817 in parallel,
The 150k in series with the source in the second circuit simulates the leakage resistance.
You can use the existing 1k 100nF network. The external capacitor must be a class X (but it doesn't dissipate any power unlike @sghioto 's 20k resistor which needs to be 3W) and the external 1k needs to be 1Watt.
Top trace is with proximity not detected, bottom trace is with it activated.
View attachment 299431
Sorry guys for responding late.
This simple configuration worked perfectly.

Thank you everyone for his inputs.
Kind regards.
Abu-Hafss
 
Last edited:

Thread Starter

abuhafss

Joined Aug 17, 2010
318
Hello Guys

Since, August 10, 2023 the following interface circuit has been working fine. But now, all of sudden (without any change in the operating conditions) the circuit is not performing. The output of LM358 is continuously high, as if the sensor is continuously ON.
Here is the interface circuit:
1706719383440.png
And here is photo of my complete set-up.
WhatsApp Image 2024-01-31 at 21.44.18_d0bdea49.jpgThis whole set-up is usually enclosed in a metallic console box. The interface circuit is on the small veroboard. I had been using 2 separate SMPS for 24V and 6V but I replaced them with linear ones assuming that the SMPS might be causing some interference.

The Arduino Nano on the main PCB is programmed to run an AC servo upon receiving signal from the sensor. For last 5 months, the circuit offered me peace of mind but now severe frustration. I just failed to diagnose the problem. The scenario is that the sensor is continuously ON which runs the servo continuously.

Very interestingly, I have another exactly same set-up which is running without any problem. Both these units are placed just 6 feet apart. I interchanged one-by-one, the main PCB, the Nano, the interface circuit; all are worked fine in the set-up B. And the same parts from B installed in this set-up (A) would not solve the problem.

Any suggestions???
 

Thread Starter

abuhafss

Joined Aug 17, 2010
318
1706787638392.png
In this test circuit, the mains voltage are 225VAC. The voltage at A-B is 1.31VAC when sensor is ON and 0.87VAC when sensor is OFF. When the sensor is OFF, the LED glows very faintly and the voltage across the output of the opto coupler is 3.65V.

Another test circuit, the voltage across 22K is 216VAC when sensor is ON and 22VAC when OFF.
1706789199303.png
 
Top