Home, it is the place where one fancies or desires to be after a long tiring day.People come home exhausted after a long hard working day. Some are way too tired that they find it hard to move once they land on their couch, sofa or bed.
So any small device/technology that would help them switch their lights on or off, on a go with their voice with the aid of their smart phones would make their home comfortable.
Step 1 : Hardware Setup1. Set up the Bolt WiFi Module to connect to your Bolt Cloud account.
You can check for the documentation here to find out how to set up Bolt WiFi Module.
2. Insert the longer end of the LED to pin 0 of the Bolt WiFi Module and shorter end to the GND pin.
You can see the connections as shown in the fig.
1. Login to cloud.boltiot.com.
2.On the left side of the Dashboard you can find API tab. Click on that and copy your API key.
3. On Device tab, you can find your Bolt device id.
Step 3 : GPIO Control Command1. LED is a digital output device. so we need to write a digital write command that can be sent to Bolt over the internet to control the LED.
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.
Step 4 : Integrate IFTTT via Google Assistant and WebhooksIFTTT : "if this then that". It is a software platform that connects apps, devices and services from different developers in order to trigger one or more automations involving apps, devices.
1. Install IFTTT app on your mobile device. click here for download.
2. Sign up using your Gmail account. Make sure you use the same account for google and IFTTT.
3. Now, click on '+This' to create a trigger.
4. Choose Google Assistant and say specific phrases.
5. Specify the trigger commands in different ways. For Example:
i.switch on the lights.
ii. Turn the lights on.
iii. Turn on the lights.
6. Click on 'create trigger' and then click on '+That'.
7. Choose the action service as Webhooks.
8. Enter the URL you got on the previous step.Method will be GET and the
Content type will be Application/json.
9. Click on 'Create Action' and then 'Finish'.
10. Follow the same steps as above for turning the LED off
NOTE :Change the state of the device to Low in the URL.
Now by using Google Assistant in your android device, say the words "OK Google! Turn the Lights on" to see the result.
Step 5 : Conclusion:The aim of this project was to propose a cost effective voice controlled (Google Assistant) home automation controlling general appliances found in one's home. This approach was successful. This system is highly reliable and efficient for the aged people and differently disabled person on wheel chair who cannot reach the switch for switching ON/OFF the device and are dependent in others.
Comments
Please log in or sign up to comment.