In this project learn how to make security alarm system that is designed to sense if there is movement using a PIR sensor and is able to be armed anddisarmed using the keypad. The circuit is controlled by a Atmel microcontrollerthat is coded in using the Arduino IDE. All of the external devices use male and female headers so it is easy to connect the devices to the PCB without having to solder them permanently to the PCB. The alarm will sound if motion is detected and someone hasn’t entered the correct password in the set time frame.The 7 segment is used to display if the system is armed or disarmed and will display the 4 digit pin used to disarm the device.
Unfortunately I have lost the code for this project so you will have to code it your self sorry for any inconvenience caused. if you need any information to help you with the code please do ask.
I designed the circuit in easyeda the project mainly consists of external components so I recommend using header pins to connect them but you could just solder the components straight to the board.
Note: pin 21 is the output for the buzzer or speaker.
I have designed a PCB that you can build your project on you can use the silkscreen and the schematic to help you build it. If you don't want to use a PCB you could also use a piece of perfboard.
Once your circuit is built you can then connect all the external part to the board and you will then need to program the microcontroller by using the ICSP pins on the board. Unfortunately I have lost the code for this project so you will need to write the code your self.
After the microcontroller was programmed I created a wooden buck and vacuum formed an enclosure and then cut out the required holes for the 7 segment and the slit for the flat flex of the keypad to pass though and drilled the holes for the LEDs. I that was left to do was cut the keypad to fit and stick it to the enclosure.