How to do the Buzzer project

@pravin.kumar912001
you can use the integromat to resolve this. In that platform just we have to do connections according to the instructions. Here is the link https://www.hackster.io/_Bhargavi Hope this help for u

1 Like

Buzzer and LED are an output devices . buzzer is almost same as LED project ,just need to replace the Buzzer in the place of LED .The very important point to note her is that should not use register with the buzzer because if you are using a 5V ,as it drives very small amount of current so it can be used without a resister

1 Like

Connections for the buzzer is similar to led. but there is no need of resistor for buzzer connection as Buzzer itself has a internal resistance, and that internal resistance is enough to protect the module from any sort of short circuit.
Insert the negative leg(shorter leg) of the buzzer into the ground(GND) pin of the Bolt module.
Insert the positive leg(longer leg) of the buzzer into the digital pin 0 of the Bolt module.


here is the code for the buzzer to work:

<!DOCTYPE html
<head>
    <title>Bolt IoT Platform</title>
    <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
    <script>
    setKey('{{ApiKey}}','{{Name}}');
    </script>
</head>
<body>
    <center>
    <button onclick="digitalWrite(0, 'HIGH');">ON</button>
    <button onclick="digitalWrite(0, 'LOW');">OFF</button>
    </center>
</body>
1 Like

While making connections
connect long pin of buzzer to 0
connect short pin to GND
for this connection do not use resistor.

You can also change the frequency by using analogWrite
eg: analogWrite(0,255)

1 Like

In the lesson plan it is given that you should use the same circuit connection used while making the LED circuit.

But there is a twist. You cannot use a resistor while connecting the Buzzer.

Just remove the resistor and connect the the positive pin of the Buzzer directly to the digital pin 0.

If we use the resistor with the Buzzer then it will reduce the amount of current required for the Buzzer to work properly.

Here is a picture of the circuit connection:

1 Like