Simran Kohli
Published © GPL3+

Controlling Buzzer Using Google Assistant and IFTTT

In this project, we will learn how to control (ON/OFF) a buzzer using Google Assistant and IFTTT with the help of Bolt IoT module.

BeginnerProtip4 hours671
Controlling Buzzer Using Google Assistant and IFTTT

Things used in this project

Story

Read more

Schematics

Complete Circuit Connections

Plug the negative terminal (shorter end) of the buzzer to the ground (GND) of bolt and positive terminal (longer end) to any one of the GPIO pin (1,2,3,4) using male to female wire.

Code

Program/code for url to turn on and off the buzzer

JavaScript
You will have to put your bolt API key which you can get it from your bolt cloud account in API section in place of API_KEY, in place of PIN_NUMBER you will have to write the GPIO pin number in which you have connected the positive terminal of your buzzer, in 'value' you will have to provide any one value which will decide the frequency of the sound of buzzer ranging from 0-1023 where 0 means buzzer off and 1023 is the maximum frequency at which it can buzz(on) and finally in place of DEVICE_ID you will have to put device id of your bolt wifi module which you can obtain from bolt cloud account.
//FOR TURNING ON THE BUZZER:
https://cloud.boltiot.com/remote/0aad6c66-dac3-459e-8b69-8ae5d6201a24/analogWrite?pin=1&value=1023&deviceName=BOLT14857114
//FOR TURNING OFF THE BUZZER:
https://cloud.boltiot.com/remote/0aad6c66-dac3-459e-8b69-8ae5d6201a24/analogWrite?pin=1&value=0&deviceName=BOLT14857114

Credits

Simran Kohli
1 project • 4 followers
Contact

Comments

Please log in or sign up to comment.