A button and a buzzer
Section 3: Inputs: the buttonLesson 3.2 · ⏱ 7 min

🖥️ What happens on the stage?
When you press the button the buzzer plays, and when you let go it stops.
📌 Another example: a two-note bell
The button plays two notes: “ding dong”.


✍️ Practise
Build the button and the buzzer.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
✍️ Practise
Fix one mistake: the button doesn't work.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
The button plays the note A4.
👀 Show the solution🙈 Hide the solution


Result: the note A4 (440).
Medium
Not pressed: silent. Pressed: a beeper (a note, then silence, repeating).
👀 Show the solution🙈 Hide the solution


Result: a broken beeping.
Hard
An alarm: when pressed, two notes take turns (high and low).
👀 Show the solution🙈 Hide the solution


Result: two notes taking turns.

