Hi! Im working in a project that requires a buzzer to outpu a certain frequency, which is decided by the potentiometer.
My idea was "if the potentiometer is in between 0/13% and 1/13% (i need 13 different pitches), buzz at this frequency".
How can thiis be coded? I don't have that much experience in coding. Side question: would I be able to implement an on/off button? Does this require a resistor?
Thank you very much for any help that you can provide and I'm very sorry if I posted it in the wrong category, as I didn't really know where it fit.