[Lab: Environment] Piezo Speakers

IMG_2576 Screen Shot 2015-02-12 at 3.24.51 PM

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

Your email address will not be published. Required fields are marked *