Software apps and online services
Hand tools and fabrication machines
As whole world is suffering from corona virus, everyone have their own problems. Healthcare personals who work in hospital are afraid that no one gets infected due to them. Some people might enter their personal Rooms or House. To have touchless and safe door control I had got a problem to solve in this pandemic.Stage One: Accepting Challenge
I was biased for safety of House. Looking at various options, why not I implement my knowledge to solve this simple problem.Here comes idea in my mind that what if I do something and we can open and close lock wirelessly. I decided to make this.
Next step is to collect hardware required to make my car cool. I already had many hardware. I took servo to solve this purpose. I finally assembled hardware. Here is the list......
1. Bolt Wifi Module
2. SG 90 servo motor
3. IR Sensor
4. Door Lock
5. Jumper Wires
After safely bringing hardware to home, now its time to assemble them to make my door lock.
Let's have look on hardware connections. Schematic is available to help in hardware connections. For sticking servo to lock. I had taken a needle and servo is stick into it.
- Code to upload at Bolt Cloud is given below this webpage
- Now we will make web app to control it from anywhere and any device using bubble.io If you did not know how to do this then you can refer to official documentation https://docs.boltiot.com/docs/creating-app-using-template.
I had made Login page due to security reasons. Here are snaps of it...
- We can also make app to control it easily from our Mobiles. We will take use of MIT App Inventor to easily make this. (http://ai2.appinventor.mit.edu/)
We can easily make this using web viewer component and attack link of our bubble app. SO as soon as we open app, bubble app will automatically load.
Here are snaps of App that we created.
- We can set alert when device is offline
- As soon as intruder enters IR sensor gets value 1. SO we can set alert for someone enters House.
Now its time to connect it to google assistant so as to control it with voice commands.
- Now its time to connect it to google assistant so as to control it with voice commands.
Go to IFTTT to create a new applet by clicking here
- Go to IFTTT to create a new applet by clicking here
Login using your Gmail account. Make sure you use same account which you'll be using on your mobile to interact with Google Assistant.
Click on '+This' to create the trigger.
- Click on '+This' to create the trigger.
Choose Google Assistant -> Say Specific Phrase
- Choose Google Assistant -> Say Specific Phrase
Type the phrase you want to trigger the action. Make sure to specify the trigger command in different ways
- Type the phrase you want to trigger the action. Make sure to specify the trigger command in different ways
Click on 'Create Trigger'
- Click on 'Create Trigger'
Click on '+That'
- Click on '+That'
Select Webhooks and then Make a web request.
- Select Webhooks and then Make a web request.
Enter the API URL you got in the txt file. Make sure that you change the API Key and device name as your device name.
- Enter the API URL you got in the txt file. Make sure that you change the API Key and device name as your device name.
Method will be GET
- Method will be GET
Content type will be Application/json
Click on 'Create Action' and then Click on 'Finish'
Repeat same process for both commands for closing and opening and create applets.
Now wake your Android phone by saying "OK Google" and say the phrase you had set while creating the trigger to see the magic happen.
- (Optional) We can also make Voiceapp to talk to your security systems using Bolt Apis. Official documentation is easily available for voiceflow. Below is the illustration of voice app for google assistant.
- You need Bolt Pro to control Servo motor
- You can use araldite adhesive for sticking Servo and needle to lock
- Make Sure to attach IR sensor at proper place near gates
FINALLY PROJECT IS COMPLETEDWorking Video: