Hello ETO forum,
Working on a circuit to send a signal from a PIR, HC-SR505, to an Arduino input.
After some trial and error have had some success getting this circuit to work.
View attachment 129000
This is a fritz of the same circuit.
View attachment 129002
The circuit works as designed:
Before a hand is waved at the PIR when the twelve volt power sources are applied D1 and D2 are not lit.
When a hand is waved at the PIR D1 and D2 come on.
After about eight seconds D1 and D2 go off.
While troubleshooting the black probe of the DMM was placed near the PC817 at the point marked
'e' on the schematic and the red probe put at the PC817 at the point marked 'c' and these measurements
were gathered:
1. When D1 and D2 lit (the PIR is sending signal out), voltage = 10.83
2. When D1 and D2 are not lit (the PIR is not sending signal out), voltage = .53
This seems counterintuitive. It is conjectured that before
the PIR is activated no signal would be sent to the PC817, the transistor
in the PC817 would be open and
the voltage going through the PC817 would be low, say closer to
the half volt measured.
And, conversely, when the PC817 receives voltage from the transistor,
Q1 saturated by the signal from the PIR, would close the
circuit to the 12 volt source on the PC817 side and the voltage measured would be
closer to 11 volts measured.
Why is the signal from the PC817 high when D1 is off and low when
D1 is on?
Thanks.
Allen in Dallas