Regarding the buzzer connection

can anyone share the connection circuit connection of buzzer control??

Digital pin(0/1/2/3/4) to the +ve(longer lead of buzzer). Gnd to the -ve(shorter lead of buzzer).

okk thanku, its working… but how yo change the sound of buzzer??

you can use analogWrite instead of digitalWrite when calling from API.
You can refer to this.
https://forum.boltiot.com/t/using-bolt-api-in-python-code-to-trigger-various-pins/2540

1 Like

Use analogWrite(‘pin_number’,‘intensity_value’)
The intensity value can be between 0-255 which makes the pin act as a PWM source.

you can change the sound of buzzer by using anlaogWrite at the place of digital write ,
for eg.
onclick=“analogWrite(0, ‘255’);”
(YOU CAN VARY THE VALUE OF 255 TO GET DIFFRENT SOUND )
(0,‘255’)-HERE FIRST VALUE THAT IS 0 IS DIGITAL PIN NO. IT CAN BE 1,2,3,4