[Lab: Environment] Piezo Speakers
In class, we used the piezo speaker to play melodies from Arduino. Two buttons control which melodies we want to play. Press ‘p’ in serial monitor and turn the potentiometer, the tone of the sound will change. In the code, we map the analog value of the potentiometer to the variable in tone function.
Leave a Reply