Buzzer#
For our first non-LED output component, we will look at creating an alarm using a buzzer.
Component list
Microprocessor (for these examples either Arduino Uno or Raspberry Pi Pico)
Breadboard
Pushbutton
Buzzer
1 x 220 Ω Resistors
5 x M/M wires
A buzzer functions similarly to the LEDs we have seen so far but may not be so suitable for the library.
What’s new?
Handling frequency
Coding with maths
Using elif statements