my buzzer is working. But it is not responding when I click on on button.
here is the code :
Bolt IoT Platform ON OFFps: I also checked my connections and they are correct. And there aren’t any error on console while executing the code.
my buzzer is working. But it is not responding when I click on on button.
here is the code :
Bolt IoT Platform ON OFFps: I also checked my connections and they are correct. And there aren’t any error on console while executing the code.
there may be small mistake in your code check your code once again,check weather your product is showing the status as online on Bolt cloud.Will let you know in detail when you share your code here.
also the product shows online status.
@rishikajain22may
1]make sure your bolt module is connected to the internet and the product is linked to your device.
2] You need not use resistor before the buzzer. You would have used resistor to limit the current flowing through the led but in buzzer project RESISTOR IS NOT NEEDED as it’ll limit the required voltage of the buzzer.
I hope your error gets resolved.
everything is correct.
still not working
@rishikajain22may i hope you didn’t change your api key. If at all you did then update the software code.
If that’s not the case then do you mind sharing the picture of your connection.
I hope your Led Control worked.
If so try copying your LED code from the LED control product that you created and overwrite it here and make necessary changes. It should work. Make sure you copy it from there.
And let me know if it works.
Hello,
@rishikajain22may The code for buzzer includes the command analogWrite(1stparameter,2ndparameter).
please do try using this.The value of the parameter can be varied from 0-255.
Hoping that you’ll achieve your buzzer sound.
Try using various numbers in this range, even the tone of the buzzer will change.
also 3.3v supply provided to buzzer using third male female wire
I believe that you need to interchange the values of digitalWrite() for ON and OFF buttons.
Copy this code and your buzzer might start to work:
<button onclick="digitalWrite(0, 'LOW');">ON</button>
<button onclick="digitalWrite(0, 'HIGH');">OFF</button>
Can anyone share some pictures of your connection? I have followed the ways mentioned, but none worked for me.
Kindly share some pictures and help me out.
Hi @vikneysh_it
Use the male to female wire (provided in the kit) to make connections.