Teach Your Kid Electronics

Advanced · Project 3

555 Tone Keyboard

Turn a 555 timer into a 4-key musical keyboard. Each key picks a different point on a chain of resistors, and that sets the note. Play your first tune!

Build this only with an adult present. Before you start, read our safety notice and disclaimer.

Advanced⏱ About 45 min

🧰 What you need

  • 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
  • 1×4×AA battery holder with wire leadsHolds four AA batteries for 6 volts. Used for the 555 timer chip, which needs a bit more push.
  • 4×AA batteryA regular household battery. Each one gives 1.5 volts.
  • 1×NE555 timer chipOne of the most famous chips ever made: it makes blinks, beeps and timers from a resistor and capacitor.
  • 4×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
  • 2×10 kΩ resistor — brown, black, orange, goldColors: brown, black, orange, gold.
  • 1×3.3 kΩ resistor — orange, orange, red, goldColors: orange, orange, red, gold.
  • 1×2 kΩ resistor — red, black, red, goldColors: red, black, red, gold.
  • 1×2.2 kΩ resistor — red, red, red, goldColors: red, red, red, gold.
  • 1×1 MΩ resistor — brown, black, green, goldColors: brown, black, green, gold.
  • 1×100 Ω resistor — brown, black, brown, goldA small resistor. Colors: brown, black, brown, gold.
  • 1×0.1 µF capacitorA tiny charge bucket. Fills and empties thousands of times a second in a tone circuit.
  • 1×Passive buzzerA tiny speaker. It needs a fast on-off signal (like from a 555 chip) to make a tone.
  • 14×Jumper wireA short wire with stiff ends that push into the breadboard.

✨ The finished project

A 4-key 555 keyboard: each button picks a point on a resistor ladder, which sets the pitch of a passive buzzer ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 0.1µF NE555 +passive 10 kΩ 1 MΩ 10 kΩ 3.3 kΩ 2 kΩ 2.2 kΩ 100 Ω AAAAAAAA4 × AA = 6.0 V+−
A 4-key 555 keyboard: each button picks a point on a resistor ladder, which sets the pitch of a passive buzzer ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 0.1µF NE555 +passive 10 kΩ 1 MΩ 10 kΩ 3.3 kΩ 2 kΩ 2.2 kΩ 100 Ω AAAAAAAA4 × AA = 6.0 V+−
Schematic: A 4-key 555 keyboard: each button picks a point on a resistor ladder, which sets the pitch of a passive buzzer DIS7THR6TRIG2OUT3VCC8RESET4GND1CTRL5NE555U1 + + +6.0V +6.0V +6.0V 6.0 V 10 kΩ 0.1 µF 1 MΩ 10 kΩ 3.3 kΩ 2 kΩ 2.2 kΩ 100 Ω passive buzzer
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

In the Light Theremin the 555 made a tone, and the light sensor changed its pitch. The pitch depends on resistance: more resistance = slower = lower note. So if we give the 555 a choice of resistances, one per button, we get a keyboard!

The resistor ladder

Instead of one resistor per key, we use a ladder: four resistors in a chain. (Hz, or hertz, means vibrations per second.) Each key connects a different rung of the ladder to the 555’s timing capacitor. Press a key near the bottom of the ladder and the current must go through more resistors, so the note is lower:

  • Key 1 (do): 17.5 kΩ → about 320 Hz
  • Key 2 (re): 15.3 kΩ → about 355 Hz
  • Key 3 (mi): 13.3 kΩ → about 393 Hz
  • Key 4 (sol): 10 kΩ → about 480 Hz

Those are close to the notes do, re, mi and sol: enough for Mary Had a Little Lamb and Hot Cross Buns. (Real instruments get tuned. Yours is a few percent out, because resistors and capacitors are never exactly their labeled value.)

Build it

  1. Rail bridges: black T-1 → B-1 (bottom blue − rail, column 1), red T+2 → B+2 (bottom red + rail, column 2).

  2. The 555: notch on the left, pin 1 in f21. Red a21 (VCC) → T+21 (top red + rail, column 21); black j21 (GND) → B-21 (bottom blue − rail, column 21); red j24 (RESET) → B+25 (bottom red + rail, column 25).

  3. 10 kΩ resistor: a22 (DIS) → T+22 (top red + rail, column 22).

  4. The hub (column 18): blue b23 (THR) → b18; blue e18 → f18 across the gap; blue i22 (TRIG) → i18.

  5. Capacitor (0.1 µF): j18 → B-17 (bottom blue − rail, column 17). (If yours has a stripe, the striped − leg goes in the rail.)

  6. Pull-up (1 MΩ): a18 → T+17 (top red + rail, column 17).

  7. The ladder: 10 kΩ d22 (DIS) → d15; 3.3 kΩ b15 → b11; 2 kΩ c11 → c7; 2.2 kΩ b7 → b3.

  8. Four keys across the gap: key 1 in e3/e5, key 2 in e7/e9, key 3 in e11/e13, key 4 in e15/e17 (bottom legs right below each).

  9. Green “key bus” wires join the right side of every key to the hub: h18 → h17, g17 → g13, h13 → h9, g9 → g5.

  10. Speaker: 100 Ω resistor h23 (OUT) → j27; passive buzzer + leg g27, other leg g30; black j30 → B-29 (bottom blue − rail, column 29).

  11. Power: 4×AA red into T+3, black into T-4. Silence… now press a key! 🎵

Play a tune

Using key numbers (1 = do, 2 = re, 3 = mi, 4 = sol):

  • Hot Cross Buns: 3 2 1 · 3 2 1 · 1 1 1 1 · 2 2 2 2 · 3 2 1
  • Mary Had a Little Lamb: 3 2 1 2 3 3 3 · 2 2 2 · 3 4 4 · 3 2 1 2 3 3 3 3 2 2 3 2 1

Press two keys at once: the higher one wins, because current takes the shorter path up the ladder. Real electronic keyboards from the 1970s worked just like this!

Not working?

  • Always beeping? The pull-up isn’t reaching column 18, or a key is rotated so it’s always joined.
  • No sound on any key? Check the green bus wires reach column 18, the hub wires, and that the buzzer is a passive one.
  • One key silent? Check that key’s ladder resistor ends in the key’s left column.

Try it!