Today in technology are growing faster. Also we are busy with our work, so we don't get enough time to concentrate on our house hold things by checking them all time it is working or the lights is ON or OFF. However now we have lots of technology to control them such as by voice, smartphone, etc. Through this, we can save time and effort using this features.
Working Video of Voice Controlled System:
Steps for Building Project:Here are the steps to follow how to build this project. And it’ll need some assests as listed as above Hardware Components. It was not complex to build and it was convenient way and not a time consuming process. So, the steps are as follow. Just took a look on it.
Step 1: Hardware SetupTake the LED and Bolt WiFi Module.The two legs of the LED one is +ve (long) and second is -ve (Shot). Take +ve leg and insert it into pin 0 and the other leg -ve and insert it into ground pin (GND) of Bolt.
Using USB Cable you can connect Bolt WiFi module into online by laptop or Switch board
Log in to your Bolt Cloud account. In the dashboard, you can find your device ID.
Device ID
On the left side of the screen you can find API tab.Click on that and copy your API key.
Save it for further use
Step 3: GPIO Control CommandTo control your LED with your voice, you need to set up some commands.
https://cloud.boltiot.com/remote/API_KEY/digitalWrite?pin=PIN_NUMBER&state=HIGH/LOW&deviceName=DEVICE_ID
The command given above is used to control your device.
Edit this command using your API_KEY, pin, HIGH/LOW and your DEVICE_ID.
API_KEY :- Replace the API_KEY by your API_KEY which you copy from could api tab.
PIN_NUMBER :- Replace the pin number by the pin you connected to LED.
HIGH/LOW:- High will turn lights ON and Low will turn lights off.
DEVICE_ID:- Replace the DEVICE_ID by ID copy from dashboard.
Make separate command for lights on and off in IFTTT.
Step 4: Creating the Function with IFTTT, Google Assistant and WebhooksGoto IFTTT webpage and create a new account.
Click on new Applet.
Click on +This to create a trigger. As shown in below figure which was highlighted.
Search Google Assistant and click on 'Say a simple phrase.'
In the above Screenshot, I highlighted the next step you have to go. That is “ Say a simple Phrase” option.
Fill the details and click trigger button. Then you get the page as following screenshot. On that you have fill the things in webhook as shown in following screenshot.
Click on +that and search for Webhooks.
Fill the URL command. Select content type as application/JSON.
Click on create and click on finish button
Create similar one for lights off.
ConclusionNow your voice-controlled lights are ready to go. Say "Ok Google" on your Android phone to issue the command. And then simply say your words which would turn the LIGHTS ON and also turn the LIGHTS OFF. If you have any catechism then go to the referral video link placed in above.
Schematics
Fritzing SchematicThis image shows how to interface the LED with Bolt Wifi module.
Comments