Arduino — Button + Buzzer Doorbell
Press the button, hear a tone. The classic Arduino starter.
Arduino
Button
Buzzer
tone()
INPUT_PULLUP
What you will learn
- How INPUT_PULLUP turns a pin into "HIGH when not pressed, LOW when pressed" without any extra parts
- How tone() produces a square wave on a digital pin (and noTone() silences it)
- How to combine a button with a buzzer to make a doorbell or alarm
What you will need
| Component |
|---|
| 1× Arduino Uno R3 |
| 1× pushbutton |
| 1× buzzer |
| 1× 100Ω resistor (for the buzzer) |
| 1× breadboard |
| 5× jumper wires |
Step by step
Take it further
- Make the tone change pitch each time the button is pressed (cycle through a melody).
- Add a small LED on D9 that lights at the same time as the buzzer (visual + audio feedback).
- Beep TWICE per press: inside the if block, do tone(); delay(120); noTone(); delay(80); tone(); delay(120); noTone(); — makes it sound like a real doorbell.
- Add a second button that plays a DIFFERENT frequency — turn it into a 2-note piano.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Arduino Nano — 4-Note Mini PianoFour buttons, four notes, one tiny piano that fits in your pocket
Arduino — Two-Player Reaction BattleTwo players, two buttons — fastest finger wins
Arduino — Music BoxPress the button, hear a complete melody. Arrays + delays = music.
Button-Controlled LEDPress to light, release to turn off
Arduino — Blink Without DelayUse millis() instead of delay() — the right way to blink
Arduino — Fade an LED with PWManalogWrite on D9 — the smoothest way to dim an LED
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino push button projects for beginners14 projects in this list
Arduino buzzer and tone projects19 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.