Simple PIR wiring problem for newbie
bddbbd.b
Posts: 12
I am having trouble connecting my Ademco/Honeywell PIR ceiling mount 997 motion sensor to my BS2 for a simple digital input. All the schematics I can find online are for PIRs with three wires (power, ground, and signal) but mine has four (power, ground, and two "to closed circuit protective loop" that are hooked up to the relay. I connected one wire to power and the other to my pin, and used debug to monitor the signal. The switch wiring seems to work with my toggle switch, but it does not seem to work with the PIR. The walk-test LED blinks and seems to respond to motion when it is powered, but I am not having luck with the relay.
Is the BS2 voltage too low?
Is the wiring wrong?
Is the sensor broken?
Am I just doing something stupid?
Is the BS2 voltage too low?
Is the wiring wrong?
Is the sensor broken?
Am I just doing something stupid?
Comments
http://www.alarmsuperstore.com/ademco/manuals/pirs/997.pdf
Jeff T.
I have used these in Security Systems for years. The output is usually a N.O. or N.C. Relay contacts. So you can wire those two points as if it were a push button on the BASIC Stamp. See the Help File or BASIC Stamp Manual under the BUTTON command for wiring diagrams for Active HIGH/LOW connections. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I tried a continuity test with my multimeter on the relay wires while the sensor was powered, but it never registered continuity... I think this is an NC relay, so I am getting confused again.
I am mostly confused by the wiring situation, which seems to be the problem since the debugger never registers a _change_ in the state of the pin. thanks for the help.
main:
DO WHILE IN1=1
DEBUG "contacts are closed", CR
PAUSE 500
LOOP
DO WHILE IN1=0
DEBUG "contacts are open" ,CR
PAUSE 500
LOOP
GOTO main
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks for the advice- I am still not getting useful results with the PIR. I used both the diagrams from the BUTTON page. When I wire it active-low the debugger gives me x=1 and when it is active-high it says x=0, as I would expect. The problem is that it never changes state, even though the walk-test LED lights up (I tried it with the LED disabled, too). Using the same wiring with an N.C. pushbutton in place of the PIR relay gives me the results I need...
As far as the schematic, I used the one from the manual (which is actually the same as the one I started with, taken from Dan O'Sullivan's Physical Computing). I took a 10k ohm resistor from +5V to pin 7, and the relay from pin 7 to ground.
I double-checked that my debugger is reading the right input pin, and the circuit works with the pushbutton switch, so I am really at a loss.
If I weren't such a total beginner at this I would suspect that the PIR is malfunctioning, but that seems like the cardinal "don't blame the compiler" debugging sin. It sounds like there is a relay switching on and off when the LED flickers, but I am not sure if that means anything. As I said before, I don't get continuity from the relay wires, but I don't know if that means anything, either. Is there a good way to check if the relay is broken?
Jeff,
I tried your circuit and code, but never got it to work, even with the pushbutton switch. I assume that I miswired it, since I am not an expert at reading graphical schematics and have even more trouble with verbal versions. If you could post a diagram (or even photo of a breadboard) I could give it another shot.
I really appreciate all the help.
Ben
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen