Problem of changing the frequency of the buzzer

Can’t change the frequency of the buzzer.

Hello @deananjan1198, use the analogWrite() function in your code to get a variable frequency of the buzzer. The analogWrite() function can take values from 0 to 255 as an input parameter.
Hope this helps!
Thank you

Thank you! It works now.

1 Like