Help with PIR security project!!!
Barbatmn
Posts: 2
I am trying to make a motion sensor security alarm with a keypad to disarm. I think I may have bit off a little more then I could chew because I dont even know were to start.
I would like it to count down when motion is detected from the PIR and activate a siren. I have a 4 x 4 keypad that should turn off alarm when 4 digit code is entered.
If anyone can help with how I should write the code for this I would greatly appreciate it.
-Mike
I would like it to count down when motion is detected from the PIR and activate a siren. I have a 4 x 4 keypad that should turn off alarm when 4 digit code is entered.
If anyone can help with how I should write the code for this I would greatly appreciate it.
-Mike
Comments
Maybe start with just a push button switch as an input. And an LED as an output on another pin. Write a program which makes the LED light when you press the button. Hint: IF that input EQUALS something, THEN turn on the LED.
Next figure out how you can wait a bit after the button is pressed before the LED lights.
The above is quite a bit of learning / reading on its own if you are new to all this.