Burglar Alarm Using Raspberry Pi Pico

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Applause] [Music] assalamualaikum and hi everyone the scene you saw just now is one of the system to prevent an intruder so today we are going to build the system using raspberry pi pico let's do this together [Music] connect the ground to ground signal to gpio 28 and vcc to v-bus take a jump wire and connect the pico's ground to the negative terminal of the breadboard take an led the longer leg needs to be connected to pico's gpio 15 via the resistor so take a 330 ohm resistor and insert it into the breadboard in the same row as picos gpio15 and the other lay into the same row as the longer leg of the led then insert a male 2 male jump wire into the same row as the shorter leg of the led and connect it to the negative side of the breadboard's power rail insert the buzzer into the brake board connect the positive leg to the gpio 14 and the negative lead to the negative terminal of the breakboard okay now we can plug a micro usb cable into the micro usb port on the pico then connect the other end of the micro usb cable to one of the usb ports on our raspberry pi 400 now to program this project we need to use tony python ide make sure to choose micro python raspberry pi pico as usual import machine so we can control our pico's gpio pins and we need to import the u-time library so that we can handle everything to do with time next we will set up the three pins that we are going to use gpio28 for the pir sensor gpio 15 for the led and gpio14 for the puzzle now we will define a callback function to handle the interrupt [Music] these lines are to make sure that when interrupt is triggered the shell will print the message and at the same time the led and the buzzer will be on and off for 100 milliseconds 50 times this line is to set up the interrupt lastly these lines are to make the led flash slowly even when there is no motion being detected the run button and save the program to our pico as burglar alarm dot py with our hand over the pir sensor to see the result [Music] that's all for today i'm surat from cytron technologies thank you for watching
Info
Channel: Cytron Technologies
Views: 22,715
Rating: undefined out of 5
Keywords:
Id: eBnFWZwEH9E
Channel Id: undefined
Length: 4min 23sec (263 seconds)
Published: Fri Feb 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.