Step 1) Setup the Bolt WiFi module to connect to your Bolt Cloud account.
Step 2) Then the blue and green light will be emitting continuous so, we know that our wifi module is connected to bolt cloud account.And it is ready use
Step 3) By taking Bread Board plug the LED in and then from longer end take a male to male connecting wire to pin 0 in Bolt IOT WIFI Module, After that the short end is connected by another male to male connecting wire to GND to Bolt IOT WIFI Module.The Circuit diagram is shown below
SOFTWARE PROGRAMMING
Step 1) Login to bolt cloud account and click on API tab and Copy the API id which is exsiting
π·
- π·
Next click on the copy button to copy your API key. Your API key will may look something like this: f1f918e9-d9c2-4e5b-aed0-b7cb743f74cf
Step 2) Write the GPIO Control Command
Since LED is a digital output device, we will need to get a Digital Write command that can be sent to Bolt over the Internet to switch on the LED.
Then make the API Code enable and copy that and paste in the url and to make sure that the Pin 0 is fixed in correct position of Wifi module by the link it should be HIGH and LOW so we should type the URL correctly.
Step 3) Integrate IFTTT via Google Assistant and Webhooks
Click on '+This'
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 for example I used
a) Turn on the LED
b) Turn on LED
c) On LED
π·
- π·
Next click on the copy button to copy your API key. Your API key will may look something like this: f1f918e9-d9c2-4e5b-aed0-b7cb743f74cf
Step 2) Write the GPIO Control Command
Since LED is a digital output device, we will need 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 OutputThe command to turn the light on is:
Make sure that you change the API Key to your own API Key and device ID which you got in the previous step.If you have connected the LED to any other pin other then Pin 0 then make a suitable change in the pin no in your code.
Step 3) Integrate IFTTT via Google Assistant and Webhooks
Go to IFTTT to create a new applet by clicking here
Click on '+This'
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 for example I used
a) Turn off LED
b) Off LED
c) Turn on the lights in office
π·
- π·
Click on 'Create Action' and then Click on 'Finish'
Project video
https://drive.google.com/file/d/1j6TQPc9FrBRdmldRnKw0t1dHwl0slkSw/view?usp=sharing
Now do the same process for a command to switch of the LED. Here you will change the state to LOW i.e. state=LOW in your code. Here is a sample of the code. Also, add a suitable phrase to switch off the LED.
Now wake your Android phone by saying "OK Google" and say the words to see the magic happen.
At Last The Magic Is DoneHave a go at this project, and you can control any light in your house by giving a shout out to google.
Comments