Software apps and online services
Do you find it annoying how people enter your room without your permission? How they mess up your perfectly arranged room and then leave whenever it pleases them?
I don't know about you but this sure has hell pisses me off. Especially when my siblings enter my room, take my stuff and never tell me!! And then I spend hours and hours searching for it just to find out in the end that it was with my Siblings.
So what I've done is made a small Project using the Bolt IOT module that notifies me and then sets off an alarm whenever there's an unwanted guest in my Room. Depending on how I use it I can either use it to alert myself when I'm out of my room or keep it at a distance and hide whatever it is I'm doing before someone unwanted approaches my room.
So for the Hardware section of this Project, as stated above. The components I've used are Bolt, IR Sensor and a Buzzer, being the most important components of this Project.
As seen Above, I've used a Breadboard for the jumper wire connections so that they don't crowd around the Bolt too much and also I needed more ground points. It also makes my work more presentable, wouldn't you say so??
So for the IR Sensor, I've connected
- VCC -> 5V
- GND -> GND
- OUT -> 2 (Digitral Pin on Bolt)
And for the Buzzer, It's
- +ve -> 0 (Digital Pin on Bolt)
- -ve -> GND
So the following Project has been Done using the Linux Command Line, where I've written my code in the python language because I'm most familiar with this Language. But if you aren't comfortable with it you can try out the code anywhere else like Arduino IDE or the bolt cloud platform.
So the first part of my program consists of all my Credentials like my Bolt API, name, my Twilio credentials, etc.. I'll be using these to control my Bolt over the internet and send an SMS to my phone whenever someone enters my Room.
First things first, I made a twilio account here which is pretty simple. Just punch in your personal details and then make a project account and with that then you can try sending a message or a phone call whatever you need, with your unique token ID, SSID and phone no.
In the second part of my program I've used a continuous while loop that runs infinitely. My sensor reading is read from my IR Sensor, when nothings detected it gives me an output saying "No One Detected" and when someone passes by the Sensor, it gives an output saying "Someone Detected". For the IR outputs I've used an 'if-else' loop, so when someone is detected it goes in the 'else' loop where I've given the command send an SMS to my phone and Ring the Buzzer for a set period of time.
Well that's all for the project, pretty simple isn't it?? It's a low budget project that almost anyone can try out at home, you can try it with any sensor I've used an IR sensor for my project. And the coding part of it is also pretty simple if you can understand it.