Project 10 — Punched-Card Music Box

Text written by Claude Fable 5 (claude-fable-5).

Project 10 — Punched-Card Music Box

The one idea: you can store a song in a piece of paper — holes mean “play”, cardboard means “hush” — and the child punches the holes. This is programming, a century before screens.

Project 6 built a machine that makes a tone; Project 7 built an eye that knows when the beam is blocked. Wire the eye to the tone machine’s ON/OFF switch, pull a punched strip through the slot, and the strip plays itself. Player pianos, music boxes with pinned drums, the Jacquard loom, and the punch cards early computers ate for breakfast — all of them are this project.

What you need

Build it — stage 1: the gated tone machine

First, the Project 6 oscillator exactly as before: 555 astable, R1 ≈ 1 kΩ from + to pin 7, R2 ≈ 10 kΩ (or the pot) from pin 7 to pins 6+2, C from pins 6/2 to GND, pin 1 to GND, pin 8 to +, pin 3 → passive buzzer → GND.

One change — and it’s the whole project: in Project 6, pin 4 (reset) went straight to +, meaning “always allowed to sing.” Today the eye decides:

  +6V ──┬── 220Ω ── IR LED ── GND        (opto emitter side)

        └── C (phototransistor)          (opto eye side)
               E ──┬──────── 555 pin 4
                   └── 10kΩ ── GND

Check it by hand: empty slot = tone; slide a plain strip in = silence. If it’s the other way round, the phototransistor’s legs are swapped — swap them.

Build it — stage 2: the song strip

  1. Draw a light pencil line along the middle of a strip — holes go on the line, so they pass dead-centre through the slot.
  2. Punch a rhythm. Rules of thumb for a first strip:
    • a hole ≈ a short beep;
    • two holes overlapping into an oval ≈ a long note (or snip a slot with scissors);
    • unpunched stretch ≈ rest. Leave 1–2 cm between notes at first.
  3. Make guide rails so the strip tracks straight: tape two cardboard scraps to the table on either side of the opto, a strip-width apart — a paper slot feeding the optical slot.
  4. Pull the strip through at a steady speed. That’s it. The strip plays.

Start with something the child can verify by ear: the rhythm of their own name (“MI-hkel MI-hkel”), a heartbeat, Jingle Bells’ “short-short-long”. Then hand over the hole punch and stand back — this is the project that generates artifacts: a shoebox archive of labelled song strips.

Tempo lives in the hand: pulling faster plays the song faster without changing the pitch — the pattern is in the paper, but the clock is the child’s hand. Sneakily deep, worth saying out loud.

What to say to the child

“This paper strip is going to remember a song for you. Watch: where you punch a hole, the secret light gets through to the eye and the buzzer sings. Where there’s no hole, the light is blocked — shhh. So holes are the notes! Punch your name: MI-hkel — short, long. Now pull it through… the paper is playing! It’ll play tomorrow too, and next year, because the song isn’t in the machine — it’s in the holes. A hundred years ago, before computers, whole pianos played themselves from giant paper rolls exactly like yours.”

For you — the physics (and the history)

Try next

← Back to Read Me First.