From Don't Open the Door
Garrett Hargrave's piezo knocker that taps three times through a cabin door. Three versions: manual, auto-tick, and the real setup.
No wiring. No programming. Two parts. Done.
Parts — where to buy each one →
The piezo disc has two wires — one red, one black. Tape one wire to one end of the battery. Touch the other wire to the other end — tick. Touch it three times: tick, tick, tick. That's the whole circuit. You complete it with your finger.
Tape the disc flat against a door, a wall, a bunk frame — any surface that carries sound. Through wood, it sounds like knocking.
Want a cleaner click? Add a tactile push button (6×6mm) between the free wire and the battery. Press the button instead of touching the wire.
A tiny chip controls the pattern. Three knocks, spaced a second and a half apart. Then silence for exactly 24 hours. Then three more. Turn it on at 3:07 AM — it knocks at 3:07 AM every night.
Parts — where to buy each one →
Hold the chip so the small notch or dot faces left.
Bottom-left is Pin 1. Top-left is Pin 8. Pins count counter-clockwise.
Use a Tiny AVR Programmer board (~$10) — plug the ATtiny85 into the socket, plug the board into USB, and upload a short program from the Arduino IDE. One time. After that, the chip remembers.
int waitMinutes = 1440; // minutes between knocks (1440 = 24 hours)
void setup() { pinMode(0, OUTPUT); }
void loop() {
for (int k = 0; k < 3; k++) { // three knocks
digitalWrite(0, HIGH);
delay(40); // knock pulse
digitalWrite(0, LOW);
delay(1500); // silence between knocks
}
for (long i = 0; i < (long)waitMinutes * 60; i++) {
delay(1000);
}
}
Three connections. No soldering. Bend the wires directly onto the chip pins.
Tape it together with electrical tape. The battery holder has a built-in on/off switch.
Tape the disc flat against a door, behind a bed frame, under a windowsill. Tuck the ATtiny85 and battery holder behind the door frame or inside a gap. Slide the switch at the time you want it to knock — turn it on at 3:07 AM, it knocks at 3:07 AM every night after that.
No sound? Check that the piezo wires are on Pin 5 and Pin 4. Check battery is seated. Try swapping the wires. If the knock sounds too quiet, try a different surface — wood carries sound best. If you want faster or slower knocks, change delay(1500) in the code.
Version 1: Tape the disc flat against the inside of a door, behind a bed frame, under a windowsill. Any surface that vibrates. Wood is best. Metal works. Drywall is fine. The disc is thin enough to hide behind a poster, under a shelf, inside a drawer.
Version 2: Same placement for the disc. The ATtiny85 and battery holder are small enough to tuck behind a door frame or inside a gap.
The knock should sound real. Not a buzz. Not a beep. A knock. Heavy. Patient. The kind of knock that says I know you're in there. I can wait.
If it sounds electronic, you did it wrong. If it sounds like an insect, try a bigger surface. If it sounds like knocking — congratulations. You just ruined someone's night.
Want to know what Hargrave was really doing with these?
Read Book 3"We saw it . . ."