Since the day I got a Google Home Mini gifted it has always fascinated me, and after completing the Bolt IoT training a thought crossed my mind whether it was possible to make an LED switch on by the Google Assistant. Since the course had plenty of projects related to LED.
The very creator of Bolt IoT Mr Pranav Pai Vernekar inspired me to do this project.
The project is similar to his except I have used another assistant. It has made me hands-free and all I need is my voice to command the Google Home mini and an internet connection.
Make sure the Bolt is connected to its cloud, if not download the app on Play Store and follow the instructions in the app
Step 1: The connectionsInsert the shorter pin of the LED into GND port
Insert the longerpin into the 0 port
Watch the Demo below:
Step 2: Logging into the Bolt Cloud and getting the API Key and Device IDLog into your bolt cloud and
1)
2)
Click here Bolt Cloud go to Docs Tab >> API Documentation >> GPIO Commands API >> Write Digital Output, to understand how to create an API command link to turn on or turn off a pin of the Bolt.
Below is the URL format which we shall be using:
https://cloud.boltiot.com/remote/
API_KEY
/digitalWrite?pin=
PIN_NUMBER
&state=
HIGH/LOW
&deviceName=
DEVICE_ID
HIGH: LED turns ONLOW: LED turns OFFPIN_NUMBER: In this case it 0, it is the number on which the shorter pin of the LED goes
Important!: Make sure that you change the API Key to your own API Key and device ID which you got in the previous step.
Step 3: IFTTT integration via Google Assistant and WebhooksHead over to IFTTT website and create an applet
IMPORTANT!: Log into IFTTT with the same Google Account as the one you'll be using the assistant with
- Click the "+ This" >> Google Assistant >> Say a simple phrase
after that
- Click the "+ That" >> Webhooks >> Make a Web Request
Enter the above
- URL
- Method: GET
- Content Type: application/json
Do theabove to switch it ON and OFF
Step 4: Executing the projectNow wake up the Google Assistant and say the phrases that you entered and let the LED switch just by your voice commands!
Comments