How to Make Burglar Alarm Using Raspberry Pi | Keep Thief's Away!
by ROBO HUB in Circuits > Raspberry Pi
2529 Views, 16 Favorites, 0 Comments
How to Make Burglar Alarm Using Raspberry Pi | Keep Thief's Away!
Hey there thank you for showing interest in this project, Today I will show you how I made this burglar alarm using the most affordable Raspberry Pi pico board.
Imagine you have a farm and always some animal or person is stealing your crop, what will you do in this situation? Obviously, we will need an alarm that scares them away.
The alarm or the technology available in the market is expensive and also requires lots of maintenance so this made me rethink to go for an inexpensive alternative.
When it comes to programming we think of either the Raspberry Pi board or the arduino board(based on popularity) Both have their own advantages and disadvantages.
Raspberry Pi board can run both arduino c as well as Python8 and we all know Python is one of the popular languages that is not just limited to a single task.
I considered all these factors before I made up my mind to build this inexpensive but fully flexible burglar alarm, and most importantly this can be build at your home for under $10 and help in safeguarding the most valuable things.
I have included all the step by step instruction on how to build this and also there is a working video and tutorial on this project given at the end of this post, Have a great build and suggestions for improvements are always welcome.
Supplies
Raspberry pi pico
Mini breadboard
PIR sensor module
Hot glue
Jumper wires
Power bank and USB cable
Computer with Thonny
LED
Buzzer
USB charging module, 18650 battery, and switch(optional if you don't have a power bank)
Circuit Building
The circuit for this project is really simple, we have 3 different components
The led negative is connected to the negative rail on the breadboard and the same is done with the buzzer and the PIR sensor.
The PIR sensor has 3 terminals, Positive is connected to the 3v pin of the board, and the signal pin is to the gp28 pin
Likewise, the other terminal(positive of the buzzer) is connected to 19, and the LED to D18
The choice of LED color is left to you since red is most suitable but anyway it's just a prototype and color is just an indicator only the buzzer is the key player here. After we are done with the circuit we can head over to uploading the code to this board and make this project work.
Did you know you can also design onboard components for this project instead of such replacements? Complete your electronic projects in the best way from PCBWay
Why them? They have provided me with the best PCB and The quality is just amazing compared to other providers in the market
Have some Stl files to 3d print? You should check their 3d printing services too
Check Here for Rigid-flex Pcbs with this your circuit becomes flexible! I have added the images to this step kindly check.
They are now providing colorful PCBs printing services too check it here
A revolutionary solution that combines the best of both rigid and flexible circuitry to elevate your electronic projects to new heights.
With their expertise in advanced manufacturing techniques, they offer a seamless integration of rigid and flexible components, ensuring enhanced reliability, durability, and space-saving benefits
Uploading Program
There is little trick here if you are new to raspberry pi pico programming these are the few things you need to keep on your mind
To begin with install thonny on your computer and then connect USB cable to the computer, press the boot button on the raspberry pi pico and open thonny programmer
Now you will be asked to install a micropython, give install and follow the process, after the micropython is installed you can copy and paste the below code on your IDE
Click on run and there should not be any errors, if there are any errors fix it by going to that desired line.
Now if everything is fine save the program to IDE and disconnect the cable from your computer.This completes the process of uploading code to the IDE, It was really not that thought right!
We can now head over to other process for this project.
Downloads
Finishing the Circuit
As you can see I will be using single-stranded wires to make the connections, Earlier I used the jumper wires that made the entire circuit messy and this will make the project look dull.
I cut the wires of a single strand and used it to connect the buzzer and the LED, Make sure all the connections were established well and there were no loose connections.
To make the project look more appealing I used a piece of orange slate that was later glued to the sides of the breadboard.
Shrink the circuit by removing the unused power rails of the breadboard.
Use hot glue if necessary and keep all the parts intact in a single system, This completes our connection and we are ready for some action
Testing the Alarm
Testing and using this project is very easy, all you have to do is attach the USB cable to the end of any power bank and keep it on the place where you want this alarm to work.
The most common place is the entrance of the room and even I chose that place, when someone tries to enter the room the buzzer triggers causing a sound and alerting the thief to go away.
There is lots of room for improvement in this project among many I would like to give an example of one future prototype that I would be building, I will try to add a mobile alert notification with an image of the person that will be clicked without their knowledge if they try to enter your place.
If you have any questions you can always ask me in the comments and I will be addressing the questions as soon as possible, Thanks, and happy building.
Working Video
Did you miss something? If yes I would recommend you to go through this video and clear all those small small doubts!
If you want to check the burglar alarm in action this video is best for you, I have also given the exact same procedures I used when uploading the codes to the board indeed it was a little tricky to get the program pumped into this board.
I hope you enjoyed this project, Thanks for reading, and happy building.