The world is depending on IOT. We can use it to control the alert system.We can give the alert by just saying 'ok google'.I have completed the training and now I have started building the mini projects.This project is made by using BOLT IoT kit.
- Here is the small video of the project.
Lets Begin.............Step 1: Hardware Configuration
Take the Male/Female jumper wires.Plug the negative terminal of buzzer i.e., shorter end to the GND pin and Positive terminal i.e., longer end to the any one of the GPIO pin.I used pin1 in this circuit. Connect this terminals to the Bolt module. Give the power supply to the BOLT module with the USB cable.
When you connect to the power supply the blue LED of the bolt module is on. And when the bolt establishes a connection(internet) then the green LED of the bolt module is on.
- Below is the circuit connections
First login to https://cloud.boltiot.com.
Add the Device to the Cloud using the BOLT IOT android app.
Now Add the product to the Cloud and copy the device ID.Step 3: Creating Your Control URL
We will be using analogWrite command.
- FOR TURNING ON THE BUZZER:
- FOR TURNING OFF THE BUZZER:
Replace the 0aad6c66-dac3-459e-8b69-8ae5d6201a24 with your API generated by your Bolt cloud dashboard and BOLT14857114 by your BOLT IDStep 4: Setting Your IFTTT Account
Download and install the IFTTT mobile App from the play store.https://play.google.com/store/apps/details?id=com.ifttt.ifttt&hl=en_IN
Open the IFTTT application.
Then click on create
Then login to the IFTTT application
Click on +this icon
- Search Google Assistant
Choose a trigger - use say a simple 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 buzzer.
b) Make it buzz.
c) Switch the sound on.
for the Assistant to say Turning on
Or anything else you like then click on Create Trigger.
Select the language as English
- click on create the trigger
And click the +that icon
Search for webhooks
Enter the URL that is shown in the step3
- Enter the URL of API Key and DEVICE ID
- Method will be GET.
- Content type will be Application/json.
Below is a screen shot it looks like
Click on 'create action'.
Repeat the same steps to turn off the buzzer.
- just change the Google Assistant phrases.
- Command URL for turn off the buzzer in webhooks.
Now that you have learned how to set the buzzer on you can be quite creative repeat the step 4 again and in the make changes in the value of URL to any number between 0-255.
- The sound changes according to the frequency given in the command line URL.
Now open the Google Assistant and say 'Ok Google' in your mobile.Say the phrase you had set while creating the trigger.