You must have seen in movies, like as soon as someone try to steal any precious ( jewelry or other valuables) item from it's place, alarm start's ringing in the whole building and a direct notification will be sent to all the security staff of the building automatically
DemonstrationIntroductionWhen the burglar lift the item from it's actual place, Light starts falling perpendicularly on the LDR and LDR reading cross the threshold and initiate the buzzer and telegram message
You can On and Off this alarm by voice controlled Goggle assistant service.
Telegram Setup- Download Telegram messaging app on your mobile phone or desktop and create your account.
- In the menu bar tap on "New Channel " and add a Suitable name(ex Bruglar alert) to it (make it public channel)
- Now go to search bar and type 'Botfather', there will be a channel on top with blue tick next to it's name.
- click on that channel and type : /start
- Click on New Bot then and type a unique name for your bot
This will give you your API token. (Please keep it safe)
Google assistant SetupTo make our project more cooler, we will add voice-controlled LED.
- Go IFTTT site and create a account using your Gmail id.
- Then, click on create page and then click on add for "IF THIS" option and choose service- Google Assistant
- Click on the Simple phrase and type what you want to say as a voice command and response command and click on trigger.
- Now click on +that, now Select webhooks.
- enter URL as- ( https://cloud.boltiot.com/remote/Your BOLT API key /digitalWrite?pin=0&state=HIGH&deviceName=BOLTXXXXXX ) Method will be - GET
- Content type will be json
- Now click on create action and then Finish
Consider vertical holes as 1 to 17 and horizontal row as A to E (on 1 half of breadboard)
Now connect as following
- 7C to pin 0 of Bolt
- (A0 of Bolt to 14A)
- GND pin Bolt to 10C
- 3v3 pin of Bolt to (17A)
- LDR to 17B and 14B
- Resistor -14D and 10D
- LED to 7E and 10E
- Buzzer to pin 1 of Bolt and 10A
LDR resistance is inversely proportional to intensity of light. As light falls on the LDR resistance decreases or vice versa
- Since the object is between LDR and Light, LDR is somehow receiving less intensity light than the threshold.
- As we pick up the object, light will fall prependicularly to the LDR and LDR reading will cross the threshold value
- This will initiate the buzzer for next 15 seconds
- And a Alert messsage will be sent to your telegram app
Now go to your Ubuntu OS and Create a configuration file by typing -" sudo nano config.py" and paste the code (as attached below) inside the file and save it by ctrl + X
Now create a another file name burglar_alert by typing" sudo nano burglar_alert.py "and paste the whole code inside that file and save it by ctrl+X.
After connecting hardware Setup completely type : "sudo python3 burglar_alarm.py " and press enter to run the code.
Turn ON the LED using Google assistant . Now our Burglar alert system is fully functioning .
ConclusionThus, a successfull voice controlled burglar alarm system has been created.I hope you will like my first Iot project










.png?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)






_3u05Tpwasz.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)
Comments