Building a Simple Buzzer Alarm Circuit
Combine a switch and a piezo buzzer for the simplest possible alarm — then extend it toward Lesson 40's timer-driven version.
You'll need: a small piezo buzzer (check its datasheet — some are "active" and just need DC power to sound, others are "passive" and need a driving signal), a switch, and a supply matched to the buzzer's rated voltage.
An active buzzer contains its own internal oscillator circuit and will sound a fixed tone the moment DC power reaches it — wiring one is exactly like wiring an LED: buzzer in series with a switch across the supply, mind polarity if the buzzer is polarized. This is the simplest version, and enough for a basic "door open" or "button pressed" alert.
A passive buzzer has no internal oscillator — it stays silent under plain DC and needs an actual oscillating signal (like the 555 timer's astable output from Lesson 22, or a microcontroller's PWM from Lesson 30) driving it to produce sound. If your buzzer stays silent when wired like an LED, it's very likely the passive type.
Once this basic switch-plus-buzzer loop works, Lesson 40's alarm project extends it directly — swapping the manual switch for a 555 timer's reset pin, so the same buzzer sounds automatically when triggered rather than only while you hold a button.