Voice Command -> Amazon’s Echo -> IFTTT – > Bolt IoT Cloud via API’s -> Bolt WiFi module -> LED
Here is a video of the project in action:
https://drive.google.com/file/d/1PXv-b7Jn4ylH8wlyOGGViPDkkcToShE6/view?usp=sharing
Hardware Setup:
Step 1 :
Connect your Bolt WiFi module to the Bolt Cloud.
Step 2 :
Connect the Longer leg (+ve) of the LED to the Pin 0 of the Bolt Wifi module and the Shorter leg (-ve) of the LED to the ground pin ( GND ), and connect the components along with the Bolt WiFi module in the power source. We can also use the Male to Male jumper wires to connect the LED and the Bolt Wifi Module with the help of the BreadBoard.
Step 1 :
Login to https://cloud.boltiot.com/ and note the ID of your Bolt WiFi Module. And copy the API key.
Step 2
:
We have to write the GPIO ( Genereal Purpose Input or Output ) Control Command, Since LED is a digital output device, we have to get a Digital Write command that can be sent to Bolt over the Internet to switch on the LED.
In Bolt Cloud go to Docs Tab -> API Documentation -> GPIO Commands API -> Write Digital Output. The command to turn ON the light is:
Similarly same command with State as LOW turns the LED OFF
Make sure to you replace the API Key and device ID which you got in the previous step. Also change the State as High or Low, for On or Off the LED.
Step 3:
Go to IFTTT to create a new applet by clicking here
Integrate IFTTT via Amazon Alexa and Webhooks.
Click on ‘If This’
Choose Amazon Alexa -> Say Specific Phrase
Type the phrase you want to trigger the action. Make sure to specify the trigger command in different ways for example I used
a) Turn the living room lights ON
b) Trigger the lights ON
c) Turn OFF the lights in office
Have a look at this project, and you can control any light or other electrical appliances in your home by your voice commands in simple steps.
Comments
Please log in or sign up to comment.