Hit Happens Controller · Build guide

Build the controller.

A 325 × 250 mm box with 30 knobs, 23 buttons, 16 screens and an encoder, run by an ESP32-S3 over USB. Yellowstone plays it and draws all of its screens. Here is everything to build one: parts, the printed case, wiring, firmware and testing.

Case files (STL), the panel artwork, the firmware and a printable wiring sheet · SHA-256

The controller's panel artwork: mode buttons along the top, an effects section with nine screens, filter and envelope knobs with screens, bank and patch, sample knobs, ten macros and transport buttons
What to expect. This is how our own controller was built. It is a big job: about 350 solder joints, a print that needs a large printer, and an evening of testing. Some sizes depend on the parts you buy (the knobs, the pot bushings, the 0.91" displays and the board hole patterns differ between sellers), so measure yours and print the fit tests first. You will need a soldering iron, a multimeter that beeps for continuity, and some patience.

How it works

One ESP32-S3 does everything. The 30 pots and 23 buttons go through four CD74HC4067 multiplexers, which share four select wires: the ESP32 sets a channel number, reads the four signal wires, and moves on, so eight wires read 62 inputs. All 16 displays answer at the same I²C address (0x3C), so they hang off two TCA9548A I²C switches, eight each, and the ESP32 opens one channel at a time.

Over its USB port the controller is a USB MIDI device called Hit Happens Controller. On its own it shows test screens and sends a MIDI CC for every control. When Yellowstone (or the Hit Happens Sampler) finds it, the instrument takes over: it reads the knobs and draws every screen itself, sending the pixels to the controller. So new screens never need new firmware.

Parts

QtyPartNotes
1ESP32-S3-DevKitC-1, N16R8 (16 MB flash, 8 MB PSRAM)Two USB ports: the one marked USB carries MIDI.
4CD74HC4067 16-channel multiplexer boardTwo for the knobs, two for the buttons.
2TCA9548A I²C multiplexer boardEight displays each.
150.91" OLED display, 128 × 32, SSD1306, I²C (4 pins)The knob screens. Any colour.
10.96" OLED display, 128 × 64, SSD1306, I²C (4 pins)The menu screen. The two-colour kind (yellow top, blue below) matches Yellowstone's menu.
3010 kΩ linear (B10K) panel potentiometer, RK097 type7 mm threaded bushing, 12 × 12 mm body, 6 mm shaft.
30Knobs for 6 mm shaftsAt most 16 mm across, and 14 mm for the ten macros (M1–M10), which sit 20 mm apart.
237 mm momentary push button, 2 pins, normally openPanel mount with a nut.
1Rotary encoder with push switch (EC11, or a KY-040 board)The firmware's pull-ups mean a bare encoder works.
28M3 × 12 screws, pan or button headThey cut their own thread in the printed posts.
about 8M2.5 × 6 screwsFor the ESP32 and the TCA9548A boards, or use foam tape.
Hook-up wire (26–22 AWG), bare tinned wire for the rails, a 2 × 8 Dupont header, heat-shrink
A USB cable for the ESP32's USB port
about 1 kgPETG filamentPETG, not PLA: PLA softens under stage lights and in a hot car.

Power comes from USB: the ESP32's own 3.3 V regulator runs everything, about 300 mA in all.

The case

Three printed parts, plus screw caps and knob adapters, in PETG. The case is 325 × 250 mm with a 26 mm base; the lid slopes from 5 to 9 mm toward the back.

FileHow to print it
controller_base.stlThe base, open at its right-hand end. It was designed to print standing on its left end (the end with the USB opening) on a delta printer with a 260 mm × 330 mm build volume: the posts have 45° fins so it needs no supports that way. On a printer with a bed of at least 330 × 260 mm it can also lie flat.
controller_end_cap.stlCloses the open end. Flat, held by two screws into the rails along the floor.
controller_lid_notext.stlThe lid without labels, for the printed overlay. Print it outer face down (use your slicer's "place on face": the top is sloped), so the display pins and pockets point up and the holes get a clean edge. It needs a bed of at least 330 × 260 mm.
controller_lid.stlThe same lid with the labels engraved. At this size the letters are small, and on most printers they come out soft: the overlay looks better.
controller_screw_caps.stlCaps that press into the lid's screw holes. Flat; print the spares too.
knob_adapter_fit_test.stlSix adapters with bores from 6.40 to 7.00 mm, numbered in the closed end. Print it first, closed end down, and see which fits your pots.
knob_adapter.stlFor rubber knobs whose insert has a D-shaped hole, on pots with 6 mm knurled shafts: it replaces the insert. 8.10 mm outside, 6.90 mm bore. Skip it if your knobs fit your pots.

Settings that worked: 0.2 mm layers, four walls (the screws cut their thread into the posts), 25% infill. The lid's 0.91" displays sit in glue-in pockets; the 0.96" menu display slides onto four pins on its 24 mm hole pattern. The base has standoffs for the ESP32 (63.5 × 21 mm hole pattern) and the two TCA9548A boards: check your boards against them before printing.

Panel labels

The overlay is a sticker that covers the whole lid: section boxes, labels, scales around the knobs and frames for the screens. The kit has it twice:

  • overlay_A3_print_at_100_percent.pdf: print it on A3 sticker vinyl at 100% (actual size), never "fit to page". The bar at the bottom must measure 100 mm. Pink hairlines are the cut lines: the outer edge, the holes and the display windows.
  • overlay_print_shop_CMYK_contour_cut.pdf: for a print shop that prints and contour-cuts stickers. CMYK (FOGRA39), 3 mm bleed, text as outlines, the cut line in its own CutContour layer.

The labels are the Hit Happens Sampler's, which is what the controller was built for.

The Yellowstone sheet

The same sheet with Yellowstone's name for every control, in the artwork chosen for the v2 controller's metal lid: Traffic yellow with the contours of Yellowstone's caldera between the sections, black frames and labels, the section buttons in Yellowstone's colours, and red HOLD and ERUPT. Use it on a controller built to play Yellowstone; the user guide explains each control.

The Yellowstone panel sheet: a Traffic yellow field with black frames, labels and tabs, section buttons OSC A to FX ringed in colour, HOLD in red, the YELLOWSTONE wordmark and contour lines between the sections

Wiring

The bench sheet has all of this on one printable page, with a panel map that shows the tag of every control, from the front or from underneath (left and right swap when the lid is upside down). Each control's tag says where it goes: PA4 is pot mux A, pin C4; T2.5 is display switch 2, channel 5.

ESP32-S3 pins

ESP32-S3Goes toWire
3V3Every multiplexer VCC, both TCA9548A VIN, every display VCC, the encoder's +, and one outer leg of every potred
GNDEvery GND, every 4067 EN, the other outer leg of every pot, one leg of every button, the encoder's GNDblack
GPIO4S0 on all four CD74HC4067blue
GPIO5S1 on all fourblue
GPIO6S2 on all fourblue
GPIO7S3 on all fourblue
GPIO1SIG of pot mux A (analog input)yellow
GPIO2SIG of pot mux B (analog input)yellow
GPIO15SIG of button mux Ayellow
GPIO16SIG of button mux Byellow
GPIO8SDA on both TCA9548Agreen
GPIO9SCL on both TCA9548Apurple
GPIO14RST on both TCA9548A, so the firmware can unstick the display busyellow
GPIO11 / 12 / 13Encoder CLK / DT / SWyellow

The USB port marked USB (not COM or UART) goes to the computer, tablet or sampler. The pins avoid the ones the S3 uses for flash, PSRAM, USB and booting.

Every multiplexer

  • VCC to 3V3, never 5 V: the inputs would then reach 5 V, and the ESP32's pins take 3.3 V only.
  • EN to GND. It switches the board on when low; left floating, the board can switch itself off.
  • S0–S3 to GPIO4–7, shared by all four boards. Daisy-chain them: one wire from the ESP32 to the first board, then short jumpers from board to board.
  • SIG to its own GPIO.
  • Pots: the middle leg (wiper) to its C pin. With the panel facing you and the legs down, GND on the left leg and 3V3 on the right, so turning clockwise turns it up. Run one bare tinned wire per rail along each row of pots, soldered leg to leg.
  • Buttons: one leg to its C pin, the other to GND. No resistors: the ESP32's pull-ups do it, and a press reads low.

Check the header order on your 4067 boards and wire by the names printed on them, not by position. S2 and S3 sit side by side, and a solder bridge between them breaks every knob and button on channels 4–15.

Pot mux A · SIG to GPIO1

PinTagControl
C0PA0EFFECT knob
C1PA1FX knob 1
C2PA2FX knob 2
C3PA3FX knob 3
C4PA4FX knob 4
C5PA5FX knob 5
C6PA6FX knob 6
C7PA7FX knob 7
C8PA8FX knob 8
C9PA9FILTER / ENV knob 1
C10PA10FILTER / ENV knob 2
C11PA11FILTER / ENV knob 3
C12PA12FILTER / ENV knob 4
C13PA13BANK
C14PA14PATCH
C15PA15spare, leave empty

Pot mux B · SIG to GPIO2

PinTagControl
C0PB0START
C1PB1ZOOM
C2PB2LOOP ST
C3PB3LOOP END
C4PB4FADE
C5PB5M1
C6PB6M2
C7PB7M3
C8PB8M4
C9PB9M5
C10PB10M6
C11PB11M7
C12PB12M8
C13PB13M9
C14PB14M10
C15PB15spare, leave empty

Button mux A · SIG to GPIO15

PinTagControl
C0BA0DELO
C1BA1NOTE
C2BA2PERF
C3BA3SF2
C4BA4SYNTH
C5BA5SETL
C6BA6PEDAL
C7BA7SEQ
C8BA8SLICE
C9BA9CAPTURE
C10BA10ON/OFF
C11BA11PER NOTE
C12BA12AUTOLOOP
C13BA13SLICE ED
C14BA14MENU
C15BA15BACK

Button mux B · SIG to GPIO16

PinTagControl
C0BB0FLT/ENV
C1BB1PLAY
C2BB2REC
C3BB3RTZ
C4BB4LOOP
C5BB5CLICK
C6BB6UNDO
C7BB7spare, leave empty
C8BB8spare, leave empty
C9BB9spare, leave empty
C10BB10spare, leave empty
C11BB11spare, leave empty
C12BB12spare, leave empty
C13BB13spare, leave empty
C14BB14spare, leave empty
C15BB15spare, leave empty

FX knobs 1–4 are the top row of the effects bank from left to right, 5–8 the row below. FILTER / ENV knobs 1–2 are the top pair, 3–4 the lower pair. The displays are numbered the same way.

The displays

  • Both TCA9548A: VIN to 3V3, GND to GND, SDA / SCL to GPIO8 / GPIO9 (both boards in parallel), RST to GPIO14.
  • Switch 1: leave A0, A1 and A2 alone (address 0x70). Switch 2: solder A0 to VIN (address 0x71).
  • Each display has four wires: GND, VCC, SCL and SDA. Read the order off each module, because the 0.91" and 0.96" boards do not always agree. VCC to 3V3, GND to GND, SCL and SDA to one switch channel (SCn and SDn). Keep display leads under about 30 cm.

If switch 2's A0 is not tied to VIN, both switches answer at 0x70 and every display on switch 2 shows the same picture as its twin on switch 1. Nothing electrical reveals it, so check A0 before you power up.

Switch 1 · 0x70

ChannelTagDisplay
SD0 / SC0T1.0EFFECT display
SD1 / SC1T1.1FX display 1
SD2 / SC2T1.2FX display 2
SD3 / SC3T1.3FX display 3
SD4 / SC4T1.4FX display 4
SD5 / SC5T1.5FX display 5
SD6 / SC6T1.6FX display 6
SD7 / SC7T1.7FX display 7

Switch 2 · 0x71

ChannelTagDisplay
SD0 / SC0T2.0FX display 8
SD1 / SC1T2.1FILTER / ENV display 1
SD2 / SC2T2.2FILTER / ENV display 2
SD3 / SC3T2.3FILTER / ENV display 3
SD4 / SC4T2.4FILTER / ENV display 4
SD5 / SC5T2.5BANK display
SD6 / SC6T2.6PATCH display
SD7 / SC7T2.7MENU display (0.96")

Lid to base

Fix the six multiplexer boards to the underside of the lid, next to the controls they serve, with foam tape or hot glue. Then only one 16-wire harness crosses to the ESP32 in the base:

3V3 · GND · S0 S1 S2 S3 · SIG PA PB BA BB · SDA SCL RST · ENC CLK DT SW

End it in a 2 × 8 Dupont header at the ESP32, so the lid unplugs, and leave about 15 cm of slack so the lid can lie open beside the base while you work.

Order of work

  1. Fit tests. Print the knob adapter test. Try one pot, one button, one display and the encoder in the lid.
  2. Mount everything in the lid: pots, buttons, encoder and displays. Tighten the pot nuts before soldering anything.
  3. Rails: the bare 3V3 and GND wires along each row of pots, and a GND wire past every button.
  4. Multiplexer boards: fix the four 4067s and two TCA9548As to the lid. Solder A0 to VIN on switch 2.
  5. Signals: wire each pot's wiper and each button to its C pin, using the tables. Tick each one off on the bench sheet's panel map.
  6. Shared lines: daisy-chain S0–S3, 3V3, GND and EN across the four 4067s; SDA, SCL, RST, 3V3 and GND across both TCAs.
  7. Displays: four wires each to their channel.
  8. Harness to the ESP32. Before powering up, check with a meter that 3V3 and GND are not shorted, and that no two of S0–S3 beep together.
  9. Flash and test on a computer, before closing the box.

Firmware

The firmware is firmware/HitHappensController/HitHappensController.ino in the kit. It needs the Espressif esp32 core 3.3.11 and the U8g2 library.

With the Arduino IDE

  1. In Settings, add this board manager URL, then install esp32 by Espressif, version 3.3.11, in the Boards Manager:
    https://espressif.github.io/arduino-esp32/package_esp32_index.json
  2. Install U8g2 in the Library Manager.
  3. Open the .ino and choose these settings in the Tools menu:
    SettingValue
    BoardESP32S3 Dev Module
    USB ModeUSB-OTG (TinyUSB)
    USB CDC On BootDisabled
    Upload ModeUSB-OTG CDC (TinyUSB)
    Flash Size16MB (128Mb)
    PSRAMOPI PSRAM
    Partition Scheme16M Flash (3MB APP/9.9MB FATFS)
  4. The first time, put the board in its bootloader: hold BOOT, tap RST, let go of BOOT. Then choose its port and click Upload. If the screens stay dark afterwards, press RST.

From the command line

arduino-cli core install esp32:[email protected] --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
arduino-cli lib install U8g2
cd "firmware/HitHappensController" && ./flash.sh

flash.sh builds and flashes over the controller's USB port on macOS or Linux. Once the firmware is on the board, it restarts into the bootloader by itself when flashed again, so no buttons are needed. A new board needs BOOT and RST once, as above.

When it starts, every display shows its own tag and name (T1.3, FX 3), so a swapped channel is plain to see. Turning a knob shows its value on its own screen, or on the menu screen if it has none.

Testing

Open the controller's USB serial port in a serial monitor (the Arduino IDE's, or screen /dev/cu.usbmodem…). Every knob, button and encoder movement is printed as it happens. Then send these single letters:

KeyWhat it does
sA full report: every knob, button and display the firmware sees, and the encoder lines.
bChecks the display bus: for every switch channel, the SDA and SCL voltages and whether the display answers.
tTests the four select lines for shorts between them.
TThe same test, again and again for 20 seconds.
LShort locator: runs the select-line test 30 times a second for five minutes and shows SHORT or ok on the menu screen and the LED, so you can probe the wiring while you watch. L again stops it.
fShort finder: tests every display channel, both display switches and the select lines about 80 times a second, and names whatever fails on the menu screen, for example F/E 2 SCL LOW. A fault stays listed for a second, so a brief contact is not missed. Holding the encoder knob down while you plug the controller in starts it without a computer. The knob, or f again, stops it.
nMeasures how much each knob's reading jitters.
wTurns every display fully white and measures how much the knobs move: a test of the power supply.
dRedraws every display for 8 seconds.
rLooks for the displays again.
1 / 4Runs the display bus at 100 kHz or 400 kHz.
oTurns the displays upside down.
iReverses the encoder's direction.

Check that every knob reaches 0 and 127 and reads 127 fully clockwise (if it reads backwards, its outer legs are swapped), that every button prints a press and a release, that the encoder counts both ways and clicks, and that all 16 displays show their own names.

Using it

  • With Yellowstone: plug it in, and Yellowstone finds it by itself, on a Mac or an Android tablet. What every control does is in the user guide.
  • With any MIDI software: on its own, it sends on MIDI channel 15:
ControlMIDI
Pots on pot mux A (C0–C14)CC 70–84
Pots on pot mux B (C0–C14)CC 85–99
Buttons on button mux A (C0–C15)CC 2–17: 127 pressed, 0 released
Buttons on button mux B (C0–C6)CC 18–24
EncoderCC 25, relative: 64 plus or minus the steps turned
Encoder switchCC 26

Troubleshooting

Knobs on channels 4–15 copy each other, or some buttons never respond

Two select lines are touching, most often S2 and S3, which sit side by side on the 4067 header. The firmware tests for it at start-up. Send L and probe the joints with a toothpick while you watch SHORT or ok on the menu screen. A bridge that only closes when the lid flexes shows up this way and not on a meter.

Displays on switch 2 show the same picture as displays on switch 1

Switch 2's A0 is not connected to VIN, so both switches sit at 0x70 and open together.

One display stays dark, or the bus check shows SDA near 0 V on a channel

A lead the wrong way round (the display's GND on SDA) holds the line low; check the order printed on that module. A display that only works now and then usually has SDA and SCL swapped, or a long lead. If one switch channel is damaged, the firmware has a spare: a display wired straight to GPIO17 (SDA) and GPIO18 (SCL) is used in place of FILTER / ENV display 3 (T2.3).

A display, or the whole controller, stops when the lid is screwed down

A lead or a solder joint is pressed onto something under the lid, often a pot's ground lug. Start the short finder with the lid loose (hold the encoder knob down while you plug the controller in), then tighten the screws one at a time or press on the lid: the menu screen names the line the moment it shorts. Cover exposed joints with hot glue or kapton tape. A display line that shorts while the controller runs can stop the whole display bus until the controller restarts.

A knob jitters

The firmware averages its readings and pauses while the displays are being written, so a knob should hold steady. If one still wanders, check its ground leg and its rail. n measures it.

Buttons stop responding after about an hour

That was a bug in firmware 1.1: the button timing used a clock that rolls over after 72 minutes, and buttons used before that stopped answering until the controller was unplugged. Flash the firmware in the kit (1.2 or later). The s report names the version on its first line.

Yellowstone does not see the controller

Use the ESP32's port marked USB, not COM. The controller must appear as a MIDI device named "Hit Happens Controller": if it does not, flash the firmware again.

The board will not flash

Hold BOOT, tap RST, let go of BOOT and flash again. Check that the board is an N16R8 (16 MB flash, octal PSRAM): with another type, change Flash Size, PSRAM and the partition scheme to match.

The kit

case/Base, end cap, lid (with and without labels), screw caps, knob adapter and its fit test, as STL in millimetres
panel/The overlay for home printing and for a print shop, the same two with Yellowstone's names, and a drawing of where every control sits
firmware/The firmware and flash.sh
wiring.htmlThe bench sheet, to print and keep beside you

The v2 controller

A second controller, built for Yellowstone, with the same layout as this one. Everything sits on one board: the 30 pots, 23 tact switches with an RGB LED beside each, the 16 screens on sockets, the multiplexers and the ESP32, so there is no wiring inside. The screens run on two I²C buses, about six times faster than this controller draws. The lid is milled 2.5 mm aluminium, black anodised, with the artwork printed straight onto the metal; the base under it is 3D printed.

Not built yet. These are the files we are sending to the factories: JLCPCB for the board and its assembly, Schaeffer (Front Panel Express) for the lid. No board has been made or tested, so treat them as a design to study, not a proven kit. The ESP32 footprint follows Espressif's own DevKitC-1: check a clone's pin labels and row spacing before you solder it on. Still to come: printed button caps, pot spacer rings, screen supports and the v2 firmware.
The v2 lid: a Traffic yellow print on black anodised aluminium, with section frames, labels and the YELLOWSTONE wordmark knocked out in black and the contours of the caldera between the sections

The lid as it will look: Traffic yellow on black anodised aluminium, Yellowstone's caldera between the sections. The same artwork, redrawn for this controller's lid, is the Yellowstone sheet.

The v2 board in KiCad: 30 pots, 23 switches with LEDs, 16 screen sockets, four multiplexers, two I2C switches and the ESP32 footprint on one green board with a USB-C tab at the back

The board: 297 × 226 mm, two layers, every part on the top side.

FileWhat it is
Yellowstone-controller-v2-KiCad.zip
1.2 MB · SHA-256
The routed board for KiCad 10, with its design rules and footprints, and JLCPCB's production files: Gerbers, BOM and placement. Order assembly as Standard: the 2020 RGB LEDs are a Standard-only part.
Yellowstone-controller-v2-lid.fpd
1.2 MB · SHA-256
The lid for Schaeffer's Front Panel Designer, with the print placed: 325 × 250 × 2.5 mm aluminium, black anodised, 54 holes, 16 windows, 12 countersunk screw holes and 11 M3 studs on the back. Open it in Front Panel Designer to see the price and order.
Yellowstone-controller-v2-lid-print.pdf
1.2 MB · SHA-256
The artwork alone, a vector PDF at 1:1, for the UV print on the metal.
Yellowstone-controller-v2-base.stl
0.4 MB · SHA-256
The base, 325 × 250 × 26 mm in one piece. Print it standing on its left end, where it needs no supports, and press M3 heat-set inserts (4.0 × 6 mm) into its twelve posts for the lid's countersunk screws.
Yellowstone-controller-v2-fit-test.stl
0.4 MB · SHA-256
Two slices of board and lid, to try a real 0.91" and the 0.96" screen behind their windows before ordering the lid.

Questions: [email protected].