← Hit Happens Controller build guide
30 pots, 23 buttons, 16 displays and the encoder, all run from the ESP32-S3. Pots and buttons go through four CD74HC4067 multiplexers that share four select wires. Displays all sit at I²C address 0x3C, so they hang off two TCA9548A switches, eight each.
Each control carries the tag of the mux pin it wires to. PA4 is pot mux A, pin C4; T2.5 is display switch 2, channel 5. Use From underneath while you solder: it is the lid flipped over, so left and right swap.
Everything lands on these. The pins skip the ones the S3 uses for flash, PSRAM, USB and booting (0, 3, 19–20, 26–37, 43–46).
| ESP32-S3 | Goes to | Wire |
|---|---|---|
| 3V3 | Every mux VCC, both TCA9548A VIN, every display VCC, encoder +, the right leg of every pot | red |
| GND | Every GND, every mux EN, the left leg of every pot, one leg of every button | 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, ADC1) | yellow |
| GPIO2 | SIG of pot mux B (analog, ADC1) | 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 |
| “USB” port | The ROCK 4 SE. Use the port marked USB, not COM/UART: the native one carries USB-MIDI. |
Each coloured line is one wire run. A dot is a solder joint; lines that cross without a dot do not touch. The four blue select wires and the power pair are shared: each one goes to the same pin on all four boards. Each yellow-coded SIG wire (drawn here in its mux’s colour) goes to one board only. Tap or hover a pin name on the ESP32 to light up its wire.
The header order on the 4067 boards (SIG, S3, S2, S1, S0, EN, VCC, GND) is the common breakout layout. Check the silkscreen on yours and wire by name, not by position. The easiest way to build the shared runs: one wire from the ESP32 to the first board, then short jumpers from board to board (daisy chain), soldering two wires into each S0–S3, VCC and GND hole.
A 4067 connects one of its sixteen C pins to SIG, chosen by the binary number on S0–S3. The ESP32 sets a number, reads the four SIG pins, and moves on, so 4 select wires and 4 signal wires cover 62 inputs.
| VCC | 3V3. Never 5 V: SIG would then reach 5 V and the ESP32 inputs are 3.3 V only. |
| GND | GND |
| EN | GND. It is active-low; left floating, the mux can switch itself off. |
| S0–S3 | GPIO4–7, shared by all four boards |
| SIG | Its own GPIO (table above) |
Pot: wiper (middle leg) to its C pin. Outer legs to 3V3 and GND. With the panel facing you and the legs pointing down, put GND on the left leg and 3V3 on the right, so clockwise turns it up.
Button: one leg to its C pin, the other to GND. The firmware turns on the ESP32's pull-up on the SIG pin, so no resistors are needed. A press reads low.
Chain power and ground along each row of pots with one bare tinned wire per rail, soldered leg to leg. That is two runs per row instead of sixty separate wires.
| Pin | Tag | Control |
|---|---|---|
| C0 | PA0 | EFFECT select |
| 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 |
| 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 |
| 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 |
| 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 effect bank from left to right, and 5–8 the row below. Filter/Env knobs 1–2 are the top pair, 3–4 the lower pair. Displays are numbered the same way.
Every SSD1306 answers at 0x3C, so they cannot share one bus. A TCA9548A is an I²C switch: the ESP32 tells it which of its eight channels to open, then talks to that display as if it were alone. Two switches at two addresses give sixteen channels, exactly what the panel has.
| VIN | 3V3 |
| GND | GND |
| SDA / SCL | GPIO8 / GPIO9, both switches in parallel |
| RST | GPIO14, both switches |
| A0 A1 A2 | Switch 1: leave all three alone, address 0x70. Switch 2: A0 to VIN, address 0x71. A1 and A2 stay low. |
If both switches stay at 0x70 they answer together, and two displays draw the same frame. Check A0 on switch 2 before power-up.
GND, VCC, SCL and SDA. Read the order off each module's silkscreen: the 0.91" and 0.96" boards do not always agree. VCC to 3V3, GND to GND, and SCL and SDA to one switch channel: SCn and SDn.
The channels need pull-ups, and the OLED modules already carry them. If one display comes up garbled or only now and then, the first suspect is a swapped SDA/SCL on that channel, then a long run. Keep display leads under about 30 cm.
| 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 |
| 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" |
The ESP32 sits on its standoffs at the back left of the base, USB toward the left end. I suggest putting all six mux boards on the underside of the lid instead of the base, with foam tape or hot glue, each next to the controls it serves. Then only one 16-wire harness crosses to the base instead of about a hundred:
3V3 · GND · S0 S1 S2 S3 · SIG PA PB BA BB · SDA SCL RST · ENC CLK DT SW
Terminate 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 stand open beside the base. The TCA standoffs printed in the base still work if you prefer them there. The cost is 64 display wires crossing to the base.
Power is fine from the ESP32's own 3V3 regulator. Sixteen OLEDs, the ESP32 and thirty 10 kΩ pots draw roughly 300 mA together, under what the DevKitC's regulator delivers. Expect it to run warm, not hot.