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
| Qty | Part | Notes |
|---|---|---|
| 1 | ESP32-S3-DevKitC-1, N16R8 (16 MB flash, 8 MB PSRAM) | Two USB ports: the one marked USB carries MIDI. |
| 4 | CD74HC4067 16-channel multiplexer board | Two for the knobs, two for the buttons. |
| 2 | TCA9548A I²C multiplexer board | Eight displays each. |
| 15 | 0.91" OLED display, 128 × 32, SSD1306, I²C (4 pins) | The knob screens. Any colour. |
| 1 | 0.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. |
| 30 | 10 kΩ linear (B10K) panel potentiometer, RK097 type | 7 mm threaded bushing, 12 × 12 mm body, 6 mm shaft. |
| 30 | Knobs for 6 mm shafts | At most 16 mm across, and 14 mm for the ten macros (M1–M10), which sit 20 mm apart. |
| 23 | 7 mm momentary push button, 2 pins, normally open | Panel mount with a nut. |
| 1 | Rotary encoder with push switch (EC11, or a KY-040 board) | The firmware's pull-ups mean a bare encoder works. |
| 28 | M3 × 12 screws, pan or button head | They cut their own thread in the printed posts. |
| about 8 | M2.5 × 6 screws | For 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 kg | PETG filament | PETG, 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.
| File | How to print it |
|---|---|
| controller_base.stl | The 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.stl | Closes the open end. Flat, held by two screws into the rails along the floor. |
| controller_lid_notext.stl | The 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.stl | The 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.stl | Caps that press into the lid's screw holes. Flat; print the spares too. |
| knob_adapter_fit_test.stl | Six 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.stl | For 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.

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-S3 | Goes to | Wire |
|---|---|---|
| 3V3 | Every multiplexer VCC, both TCA9548A VIN, every display VCC, the encoder's +, and one outer leg of every pot | red |
| GND | Every GND, every 4067 EN, the other outer leg of every pot, one leg of every button, the encoder's GND | black |
| GPIO4 | S0 on all four CD74HC4067 | blue |
| GPIO5 | S1 on all four | blue |
| GPIO6 | S2 on all four | blue |
| GPIO7 | S3 on all four | blue |
| GPIO1 | SIG of pot mux A (analog input) | yellow |
| GPIO2 | SIG of pot mux B (analog input) | yellow |
| GPIO15 | SIG of button mux A | yellow |
| GPIO16 | SIG of button mux B | yellow |
| GPIO8 | SDA on both TCA9548A | green |
| GPIO9 | SCL on both TCA9548A | purple |
| GPIO14 | RST on both TCA9548A, so the firmware can unstick the display bus | yellow |
| GPIO11 / 12 / 13 | Encoder CLK / DT / SW | yellow |
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
| Pin | Tag | Control |
|---|---|---|
| C0 | PA0 | EFFECT knob |
| C1 | PA1 | FX knob 1 |
| C2 | PA2 | FX knob 2 |
| C3 | PA3 | FX knob 3 |
| C4 | PA4 | FX knob 4 |
| C5 | PA5 | FX knob 5 |
| C6 | PA6 | FX knob 6 |
| C7 | PA7 | FX knob 7 |
| C8 | PA8 | FX knob 8 |
| C9 | PA9 | FILTER / ENV knob 1 |
| C10 | PA10 | FILTER / ENV knob 2 |
| C11 | PA11 | FILTER / ENV knob 3 |
| C12 | PA12 | FILTER / ENV knob 4 |
| C13 | PA13 | BANK |
| C14 | PA14 | PATCH |
| C15 | PA15 | spare, leave empty |
Pot mux B · SIG to GPIO2
| Pin | Tag | Control |
|---|---|---|
| C0 | PB0 | START |
| C1 | PB1 | ZOOM |
| C2 | PB2 | LOOP ST |
| C3 | PB3 | LOOP END |
| C4 | PB4 | FADE |
| C5 | PB5 | M1 |
| C6 | PB6 | M2 |
| C7 | PB7 | M3 |
| C8 | PB8 | M4 |
| C9 | PB9 | M5 |
| C10 | PB10 | M6 |
| C11 | PB11 | M7 |
| C12 | PB12 | M8 |
| C13 | PB13 | M9 |
| C14 | PB14 | M10 |
| C15 | PB15 | spare, leave empty |
Button mux A · SIG to GPIO15
| Pin | Tag | Control |
|---|---|---|
| C0 | BA0 | DELO |
| C1 | BA1 | NOTE |
| C2 | BA2 | PERF |
| C3 | BA3 | SF2 |
| C4 | BA4 | SYNTH |
| C5 | BA5 | SETL |
| C6 | BA6 | PEDAL |
| C7 | BA7 | SEQ |
| C8 | BA8 | SLICE |
| C9 | BA9 | CAPTURE |
| C10 | BA10 | ON/OFF |
| C11 | BA11 | PER NOTE |
| C12 | BA12 | AUTOLOOP |
| C13 | BA13 | SLICE ED |
| C14 | BA14 | MENU |
| C15 | BA15 | BACK |
Button mux B · SIG to GPIO16
| Pin | Tag | Control |
|---|---|---|
| C0 | BB0 | FLT/ENV |
| C1 | BB1 | PLAY |
| C2 | BB2 | REC |
| C3 | BB3 | RTZ |
| C4 | BB4 | LOOP |
| C5 | BB5 | CLICK |
| C6 | BB6 | UNDO |
| C7 | BB7 | spare, leave empty |
| C8 | BB8 | spare, leave empty |
| C9 | BB9 | spare, leave empty |
| C10 | BB10 | spare, leave empty |
| C11 | BB11 | spare, leave empty |
| C12 | BB12 | spare, leave empty |
| C13 | BB13 | spare, leave empty |
| C14 | BB14 | spare, leave empty |
| C15 | BB15 | spare, 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
| Channel | Tag | Display |
|---|---|---|
| SD0 / SC0 | T1.0 | EFFECT display |
| SD1 / SC1 | T1.1 | FX display 1 |
| SD2 / SC2 | T1.2 | FX display 2 |
| SD3 / SC3 | T1.3 | FX display 3 |
| SD4 / SC4 | T1.4 | FX display 4 |
| SD5 / SC5 | T1.5 | FX display 5 |
| SD6 / SC6 | T1.6 | FX display 6 |
| SD7 / SC7 | T1.7 | FX display 7 |
Switch 2 · 0x71
| Channel | Tag | Display |
|---|---|---|
| SD0 / SC0 | T2.0 | FX display 8 |
| SD1 / SC1 | T2.1 | FILTER / ENV display 1 |
| SD2 / SC2 | T2.2 | FILTER / ENV display 2 |
| SD3 / SC3 | T2.3 | FILTER / ENV display 3 |
| SD4 / SC4 | T2.4 | FILTER / ENV display 4 |
| SD5 / SC5 | T2.5 | BANK display |
| SD6 / SC6 | T2.6 | PATCH display |
| SD7 / SC7 | T2.7 | MENU 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
- Fit tests. Print the knob adapter test. Try one pot, one button, one display and the encoder in the lid.
- Mount everything in the lid: pots, buttons, encoder and displays. Tighten the pot nuts before soldering anything.
- Rails: the bare 3V3 and GND wires along each row of pots, and a GND wire past every button.
- Multiplexer boards: fix the four 4067s and two TCA9548As to the lid. Solder A0 to VIN on switch 2.
- 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.
- Shared lines: daisy-chain S0–S3, 3V3, GND and EN across the four 4067s; SDA, SCL, RST, 3V3 and GND across both TCAs.
- Displays: four wires each to their channel.
- 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.
- 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
- 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
- Install U8g2 in the Library Manager.
- Open the .ino and choose these settings in the Tools menu:
Setting Value Board ESP32S3 Dev Module USB Mode USB-OTG (TinyUSB) USB CDC On Boot Disabled Upload Mode USB-OTG CDC (TinyUSB) Flash Size 16MB (128Mb) PSRAM OPI PSRAM Partition Scheme 16M Flash (3MB APP/9.9MB FATFS) - 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:
| Key | What it does |
|---|---|
| s | A full report: every knob, button and display the firmware sees, and the encoder lines. |
| b | Checks the display bus: for every switch channel, the SDA and SCL voltages and whether the display answers. |
| t | Tests the four select lines for shorts between them. |
| T | The same test, again and again for 20 seconds. |
| L | Short 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. |
| f | Short 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. |
| n | Measures how much each knob's reading jitters. |
| w | Turns every display fully white and measures how much the knobs move: a test of the power supply. |
| d | Redraws every display for 8 seconds. |
| r | Looks for the displays again. |
| 1 / 4 | Runs the display bus at 100 kHz or 400 kHz. |
| o | Turns the displays upside down. |
| i | Reverses 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:
| Control | MIDI |
|---|---|
| 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 |
| Encoder | CC 25, relative: 64 plus or minus the steps turned |
| Encoder switch | CC 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.html | The 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.

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 board: 297 × 226 mm, two layers, every part on the top side.
| File | What 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].

