Partially! The transistors in parallel, the LEDs in antiparallel.Shouldn't they be in anti-parallel?
Partially! The transistors in parallel, the LEDs in antiparallel.Shouldn't they be in anti-parallel?
Danko,In LTspice:
Means, use PC814 with only 3 resistors? C7 100nF to be removed?Could try a smaller value for C1 but I think a better solution is to use the PC814 (U3) on the pc board as Ian0 mentioned.
The PC814 is designed for AC voltage as it has two internal LEDs.
View attachment 299509
Yes, and leave C7 installed.Means, use PC814 with only 3 resistors? C7 100nF to be removed?
Agree but want to see if this circuit will work before trying the cap.I suggested a capacitor instead of R1 to keep the heat dissipation down.
Fair enough.Agree but want to see if this circuit will work before trying the cap.
Sorry guys for responding late.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

This 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.Shouldn't there be a 20kΩ resistor in series with the sensor?the following interface circuit has been working fine.
I'm sorry, I missed the 330nF cap in series with the sensor as suggested in post #57. I will post the correct schematic shortly.Shouldn't there be a 20kΩ resistor in series with the sensor?
Interchange sensors.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???
Yes, already tried new sensors but no change.Interchange sensors.

