When I attended an exhibition in my college where I saw a project where the students were controlling the led using the google assistant and and they also made a prototype of home like structure to give it a real life feature.
Since that day I was very curious about learning this concept and implementing it on by my own and here is the project where one can control household appliances also by using this idea and method using google assistant.
STEP1)MAKINGTHE BASICHARDWARE CONNECTIONS
STEP 2) GETTING READY WITH THE API KEY AND THE BOLT DEVICE IDYou can find these both credentials on your bolt cloud log in.
STEP 3) INSTALLING THE IFTTT APP
Get the IFTTT APP from either playstore for your android mobile or you can also install it on your computer as per your convenience and do the following things that includes sign in to the app using the same mail id or the same google account you can say which you used to sign in for the bolt module cloud account. This is very important as if you sign in with some different account your project will not run successfully.
STEP 4) GPIO COMMANDGet the gpio command :
Click here Bolt Cloud go to Docs Tab -> API Documentation -> GPIO Commands API -> Write Digital Output, to understand how to create a API command link to turn on or turn off a pin of the Bolt.
The structure of the command will be as follows:
https://cloud.boltiot.com/remote/API_KEY/digitalWrite?pin=PIN_NUMBER&state=HIGH/LOW&deviceName=DEVICE_ID
The parameters that you need to replace are:API_KEY : You can get it from API tab on cloud dashboard.
PIN_NUMBER: Pin to which you have connected the LED. Values can be either 0, 1, 2, 3 or 4
HIGH/LOW : This value indicates if you want to turn on/off the LED. HIGH will turn it on, LOW will turn it off.
DEVICE_ID : The id of your device. You can get it from cloud dashboard.
STEP 5) THE IF THIS THEN THAT FEATUREGo to IFTTT app and tap on create and make a new applet.
Then click on if this + to give the proper commands and search for the google assistant option in the list.
Now click on the google assistant block and fill in the detials as follows.
select "Say a simple phrase".!
this is how the answers look like when u enter them so you can put any command you like in the entry box.
After that save and click on continue and exit.
Now click on the" then that+" to create further documentation.
Search for WEBHOOKS in the list and click on it and fill the necessary details asked.
They will be this and you have to paste the link that we created as our GPIO command in the section there. NOTE: you will have to enter your bolt id and the special api key on your cloud account.
Again do the same that is continue and exit after saving the details. Now you will have to repeat these steps to create a new applet for turning the led off.All you need to do is just change the status from HIGH TO LOW and thats it.Rest all the detials will remain same.And here you go.Your project is ready, now just ask your google assistant to do the thing for you by saying "HEY GOOGLE TURN ON THE LIGHTS"
SOMEOTHERS TIPS
You can also use a proper led bulb instead of the basic led that is directly controlling the household bulb from anywhere you want. This can be done by just changing some connections and you are ready to go!
AND YOU'RE DONE
Comments
Please log in or sign up to comment.