This week's assignment was to choose an output device that I have not used before and program a microcontroller to operate it. First, I decided to try to program a buzzer to make sounds and play basic songs. I tried out the following simplie projects:
I first built a simple circuit using the following components: an arduino uno, a piezo buzzer, 1 k ohm resistor, a breadboard, and some wires. I connected the components with the following steps: