Skip to the content
2 layers66 × 90 mmGlockwork orange, the printed circuit board in 3D

Glockwork Orange is a fully self-playing chromatic Glockenspiel that relies on solenoids to play ANY midi file payload by adjusting the instrumentation to fit into two voices! :3

Size
66 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
66
Nets
29
Pads
140
Tracks, vias
398, 32
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
13 Jun 2026
Updated
28 Jun 2026

Overview

Glockwork orange is an open-source printed circuit board by newtontriumphant, from the newtontriumphant/glockwork-orange repository on GitHub. It is a 2-layer board of 66 × 90 mm with 66 parts on 29 nets, routed with 398 tracks and 32 vias.

It is built around the IRLZ44N. Its parts include 21 resistors, 12 capacitors, 12 transistors, 9 diodes and 8 connectors.

Main components

1

README

README.md

Glockwork Orange, by zsharpminor

A "Clockwork Orange" is defined as a human being who has had their free will and moral agency mechanically stripped away, turning them into a predictable, unthinking mechanism controlled by outside forces like the state. The human's natural "juicy" state is manifest in the orange, whereas the clockwork represents the unnaturality and cold predictability of the system.

Anyways, enough 1984; hiya! I'm Udo, better known as @zsharpminor or gh/newtontriumphant, and I have a thing for self-playing instruments. In late 2025, I won Honorable Mention at Hack Club x AMD's Prototype flagship hackathon with FiddleStein, a fully self-playing violin that utilized a SO-101 robot arm and a 10k-step neural network to imitate a real human arm playing violin. FiddleStein was a great concept, but it sounded mildly bad, to be polite. Ever since early 2026, I wanted to create another self-playing instrument that would fit in well with FiddleStein, and Glockwork Orange was the logical next step.

About Glockwork Orange

Glockwork Orange is a fully self-playing chromatic Glockenspiel that relies on solenoids to play ANY midi file payload by adjusting the instrumentation to fit into two voices!

Sidenote: in the musical percussion and orchestra community, "glock" is used to abbreviate "glockenspiel" and is in no way related to the firearm brand created by Gaston Glock.

Glockwork Orange was designed for Hack Club Outpost as an X-Tier project, and is on the list of X-Tier approved projects sent out by @CAN.

Anyways, enough yapping. A picture plays more than a thousand notes, or however the saying goes. Feast your eyes on the final assembled mockup of Glockwork Orange below.

Assembled Glock Solenoid Placement


At this point, you're probably asking: how does this lie-detector-looking-thing work?!&

Well, it's quite simple.

  1. The Arduino sends a logic signal to the PCB being striked.
  2. The power supply pushes out 15V and routes it into the PCB chain.
  3. The respective PCB converts that signal to the current and voltage required to operate the solenoids.
  4. The MOSFET briefly powers the solenoid and, by extension, the LED.
  5. The solenoid strikes the key and immediately retracts.
  6. Repeat (but don't rinse. handwashing is very bad when it comes to PCBs)!

The PCB

The Assembled PCB

Glockwork Orange's PCB uses a clever arrangement of transistors, resistors, capacitors, and a MOSFET to power the white JST connectors and their respective fading red LEDs each time the individual MOSFET is triggered.

Oh? What do I hear? You're wondering how this monstrosity was wired? If you have any experience doing ground planes on PCBs, I'd recommend you avert your eyes.

fpcb

I've also included an image of the PCB's schematic:

schemfinal

The way this schematic works is by dividing the three inputs from the Arduino into segments, which each result in one JST connector and LED being powered at one time.

The CAD

The way this project works is that it relies on the individual components being screwed down into a plywood project panel with M2 screws. That's why there's M2 screws on EVERY SINGLE COMPONENT in my CAD folder.

For more information, including images and in-progress screenshots of every single CAD part, refer to JOURNAL.md. I won't entirely leave you hanging, though. Here's a side-view:

side view of glock

The blue parts are the solenoid holders I designed, and they slot onto the red holder bar that I also designed. The grey parts inside the blue holders refer to the actual solenoids.

Wiring Diagram

Please excuse my dear aunt sally the sloppy wiring, this is only supposed to be representative of the final wiring!

wiring diagram

text
+15V --> Red
Shared GND --> Black
Solenoid +/- --> Green
Arduino Signal --> Blue

Firmware

The Glockwork Orange firmware consists of two files: glockwork_orange.ino, which runs on the Arduino Mega 2560 and maps all 25 chromatic keys (G2–A4, MIDI 43–69) to digital pins 22–46 driving the IRLZ44N MOSFET gate lines, and glockwork_host.py, a Python/Tkinter desktop GUI that parses any MIDI file, re-voices it into two chromatic voices within the glockenspiel's range via octave-shifting, and streams precisely-timed strike commands over USB serial at 115200 baud. The Arduino firmware uses a non-blocking 32-slot ring buffer to schedule and execute 35ms solenoid pulses without any delay() calls, which means the timing is, dare I say so myself, quite accurate across simultaneous voices. The host communicates via a simple ASCII protocol (S to start, N{ms},{note} to schedule a strike, X to stop), making it straightforward to extend or replace the Python frontend with any serial-capable environment.

The Why And The How

Why did I make Glockwork Orange? Well, this one's pretty simple. I always wanted to make a successor to FiddleStein, one that could permanently work and be mounted in place with actual PCBs rather than precarious wiring and hot glue. (Also, using it to get into Outpost was a pretty fun motivation!)

How did I make Glockwork Orange? The entire process is in JOURNAL.md. Go read it. No, seriously. A lot of research went into this project, and it's a culmination of thoughts and solenoids. TL;DR, the answer is Patience (and a lack thereof).

Directory

text
.
├── Assets/ <-- Some of the most important images found in this README
├── CAD/ <-- All CAD source files, as well as a .f3z Archive
├── Firmware/ <-- Simple firmware for the Arduino
├── PCB/ <-- KiCad source files of the PCB, .STEP export of PCB
├── Production/ <-- Gerber files and zipped Gerber files
├── BOM.csv <-- All components required to build this monstrosity
├── JOURNAL.md <-- Detailed explanation and tracking of hours
└── README.md <-- This file!

Mini BOM

NOTE: The full BOM is located at BOM.csv. PLEASE READ IT. THIS IS ONLY A BREAKDOWN.

CART SCREENSHOTS can be found in the Assets/Cart-Screenshots folder. PII has been redacted. If the originals are required, DM @zsharpminor on the Hack Club Slack.

ItemTotalLink
DigiKey Components$480.00↗
Amazon Components$122.00↗
Plywood from THD$15.00↗
JLCPCB PCB x 10$15.00↗
Arduino and PSUOWNED-
$632.00

Disclosure of AI Usage

No Artificial Intelligence was used in creating the PCB, Schematic, any of the CAD, or README / JOURNAL.

AI was solely used to automate placing links into the BOM (~10% of BOM tracked hours), and for minor assistance with the code (see bottom of JOURNAL.md for additional information), and for creating a custom footprint for an obsolete capacitor.

License

GNU General Public License (GPL)


Thanks for reading down all this way! If you have any questions, please reach out to me via the Hack Club Slack @zsharpminor

Made with ♡ by zsharpminor

Parts

66
QtyValueFootprintReferences
92.2kResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR2, R5, R6, R9, R12, R13, R16, R19, R20
922kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R3, R4, R8, R10, R11, R15, R17, R18
92N3904Package_TO_SOT_THT:TO-92_InlineQ1, Q2, Q3, Q5, Q6, Q7, Q9, Q10, Q11
61000uFCapacitor_THT:CP_Radial_D12.5mm_P5.00mmC2, C3, C6, C7, C10, C11
61N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1, D2, D4, D5, D7, D8
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
30.47uFec:CAPRR750W80L1750T580H1400C1, C5, C9
3330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR7, R14, R21
3470uFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC4, C8, C12
3Conn_01x02_PinConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ2, J6, J8
3Conn_01x02_SocketConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ1, J5, J7
3IRLZ44NPackage_TO_SOT_THT:TO-220-3_VerticalQ4, Q8, Q12
2LD271LED_THT:LED_D5.0mm_IRGreyD6, D9
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ3, J4
1LD271LED_THT:LED_D5.0mmD3

Similar boards

  • 2 layers304.8 × 170.8 mm00Key, the printed circuit board in 3D

    00Key

    ZeroZeroOne-dev/00Key

    00Key a 75% keyboard

    268 parts241GPL-3.0
  • 2 layers94 × 79 mm5 - Lizard Car, the printed circuit board in 3D

    5 - Lizard Car

    TRD-B/Lizard

    3D printed RC race car with custom electronics

    54 parts129CC-BY-4.0
  • 2 layersMorpheus kicad, the printed circuit board in 3D

    Morpheus kicad

    pscrespo/Morpheus-STM32

    A small 3D printer controller board for use with a "blue pill" STM32F1 generic board. Inspired on http://reprap.org/wiki/SinapTec

    66 parts80GPL-3.0
  • 2 layers157.5 × 97.8 mmEsp32PrinterController, the printed circuit board in 3D

    Esp32PrinterController

    MitchBradley/Esp32PrinterController

    PCB design for 3D printer controller using ESP32 processor

    101 parts16MIT
  • 2 layers99.1 × 99.1 mmFlipDotDriver, the printed circuit board in 3D

    FlipDotDriver

    bitluni/FlippyFlip

    49 parts14
  • 2 layers64.8 × 109.2 mmDmx ledstrip dimmer-32ch, the printed circuit board in 3D

    Dmx ledstrip dimmer-32ch

    robinolejnik/dmx-ledstrip-dimmer-32ch

    Arduino Mini and TLC5940 based 32 channel 12V PWM dimmer with DMX512 and RDM support.

    105 parts14MIT
  • 2 layers101.6 × 53.3 mmBatteryAnalyzer MkII, the printed circuit board in 3D

    BatteryAnalyzer MkII

    Moragor/BatteryAnalyzer_MkII

    Updated Version of the battery analyzer, now with constant current

    25 parts12MIT

Questions

How big is the Glockwork orange PCB?

It measures 66 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Glockwork orange use?

66 parts, built around the IRLZ44N. 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.

Where can I download the Glockwork orange KiCad files?

From the newtontriumphant/glockwork-orange repository on GitHub, at the commit this page was made from: the board is PCB/glockwork-orange.kicad_pcb and its schematic PCB/glockwork-orange.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Glockwork orange design in my own project?

Its repository states no licence, so its author keeps all rights: ask newtontriumphant before reusing the design.