
Treasure box frontpanel
mtrunzo12/TreasureBox-build
Build along with a knock-to-unlock toy chest: firmware, KiCad files, parts lists and a parent checklist.

Build along with a knock-to-unlock toy chest: firmware, KiCad files, parts lists and a parent checklist.
Treasure box main is an open-source printed circuit board by mtrunzo12, from the mtrunzo12/TreasureBox-build repository on GitHub. It is a 2-layer board of 130 × 75 mm with 39 parts on 47 nets, routed with 284 tracks and 42 vias.
It is built around the ATMEGA328P-PU, CH340C and S8050. Its parts include 10 capacitors, 9 connectors, 8 resistors, 3 diodes and 2 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Build a toy chest with a saved knock rhythm, keypad PIN, servo claw, lights and music. This folder is a curated snapshot of Mark and Liam's build. Start small: get the inputs working on a breadboard before ordering boards.
treasure-chest folder in your AI coding app. From GitHub, use Code → Download ZIP; no terminal or Git knowledge is required. Forking is optional and gives you your own place to save changes.START-HERE.md. Ask the assistant to explain the next small step, then stop for your measurements or a photo. Do not ask it to order parts or fabricate a board before the checks below.firmware/treasure_box/: current v8.5 sketch and its two required headers. Keep all three files in this folder.firmware/USER_MANUAL.md: using the toy and recording knock/PIN/music settings.firmware/DEVELOPER.md: exact pin map, dependencies, programming workflow and mechanical limits.treasure_box_main/: main-board schematic, layout, KiCad project and original exported BOM.treasure_box_frontpanel/: panel-board schematic, layout, KiCad project and original exported BOM.PARTS.csv: combined exported PCB component lists (44 placements across both boards). These are design values/footprints, not a verified supplier cart. The off-board parts are listed below.KNOWN-ISSUES.md: read this before spending money.CHECKLIST.md: a build sequence for a parent and child.SOURCE-MANIFEST.json: snapshot and source hashes. No family photographs, device backups, EEPROM dumps, credentials, local history or old build logs are included.This is the as-built A0 design, not a newly reviewed production release. The owner reports a backwards USB-C design; the build uses a removable ATmega328P programmed in a compatible DIP Uno. Resolve and review that issue before treating this as a plug-in USB design.
.kicad_pro in each board folder. Check component orientation, connector pin numbering, footprint fit, board outline and hole locations against your parts and chest.A wooden chest; piezo knock disc; reed switch and magnet; tilt switch; 4×4 keypad; passive speaker; illuminated arm button; red, green and blue lights with the appropriate wiring/resistors; four-AA holder and cells; main power switch; matching 16-way ribbon connectors/cable; keypad harness; wire, mounting hardware and strain relief. The installed claw is ServoCity 3219-0002-0002 with a goBILDA Proton Torque 2002-0180-0002 servo. Verify all electrical ratings and connector pitches before buying.
Tools: soldering iron, solder, ventilation, wire cutters/strippers, multimeter, breadboard/jumpers, and a compatible socketed ATmega328P Uno for the documented programming workaround. An adult handles soldering and initial powered claw tests. Keep fingers clear of the mechanism.
Open firmware/treasure_box/treasure_box.ino in Arduino IDE. The documented target is Arduino Uno / ATmega328P, Arduino AVR Boards 1.8.8 and Servo 1.3.0. Use the developer guide for the correct BENCH_WIRING choice; the custom PCB uses false, even when its removable chip is programmed in an Uno. Review the actual pin map before loading it onto a different breadboard arrangement.
An unprogrammed ATmega328P may need its bootloader and fuse configuration prepared first. Do not assume every purchased chip arrives Uno-ready. Power everything off before transferring a socketed chip, and check its notch orientation.
The code was built and tested on the original setup. Knock sensitivity, mechanical endpoints, wake behavior and battery draw still need testing on your own assembled chest. This is a toy latch, not a security lock.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 100nF | Capacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mm | C3, C4, C5, C6, C9, C10 |
| 4 | MountingHole_3.2mm_M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 2 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R6 |
| 2 | 1N4007 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1, D2 |
| 2 | 22R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3, R4 |
| 2 | 22pF | Capacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mm | C1, C2 |
| 2 | 5.1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7, R8 |
| 1 | 100uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C8 |
| 1 | 16MHz | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | 1M | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5 |
| 1 | 1N5819 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D3 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R2 |
| 1 | 470uF | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C7 |
| 1 | ATmega328P-PU | Package_DIP:DIP-28_W7.62mm_Socket | U1 |
| 1 | BATT | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J6 |
| 1 | CH340C | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U3 |
| 1 | LOGO | something:PikaPCB | G*** |
| 1 | PANEL | Connector_IDC:IDC-Header_2x08_P2.54mm_Vertical | J9 |
| 1 | PIEZO | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J2 |
| 1 | PWR_SW | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J7 |
| 1 | REED | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J3 |
| 1 | S8050 | Package_TO_SOT_THT:TO-92_Inline | Q1 |
| 1 | SERVO | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-03P_1x03_P5.00mm | J5 |
| 1 | SPKR | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J1 |
| 1 | TILT | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J4 |
| 1 | USB_C_Receptacle_USB2.0_14P | Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J8 |

mtrunzo12/TreasureBox-build
Build along with a knock-to-unlock toy chest: firmware, KiCad files, parts lists and a parent checklist.



ricardoquesada/unijoysticle2
Bluetooth gamepad support for the Commodore 64 / Atari / Amiga, etc.



hatlabs/HALMET-hardware
Hat Labs Marine Engine & Tank interface hardware design files

herraa1/msx-joyblue-v2
Use bluetooth joysticks with your MSX computer
It measures 130 × 75 mm and has 2 copper layers, 1.6 mm thick.
39 parts, built around the ATMEGA328P-PU, CH340C and S8050. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the mtrunzo12/TreasureBox-build repository on GitHub, at the commit this page was made from: the board is treasure_box_main/treasure_box_main.kicad_pcb and its schematic treasure_box_frontpanel/treasure_box_frontpanel.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask mtrunzo12 before reusing the design.