Assignment 2: Active buzzer and LED

For this assignment, I used the active buzzer and the led light. I programmed the buzzer to go off like a siren at high and low frequencies with a 1 millisecond delay between tone changes. I then added the Led light to go on and off with the high and low frequency of the buzzer. I started the project by just using the buzzer with the positive wire going into a digital input and the negative wire going to ground and then I uploaded my code. I added the led by running the power through a resistor to the led and adding it to it’s own digital pin.



Site Footer