Clark's DJ Table · wiring · v1 (Bluetooth only) · updated Oct 9, 2026

Inside layout & wiring

Where each board sits on the tray floor, and every connection from the ESP32 out to the controls and jacks. The Build page walks through the same wiring one stage at a time.

Inside layout

FRONT · you sit here BACK WALL BT ANT USB-B OPTICAL (v2) COAX (v2) AUDIO OUT LOW encoder MID encoder HIGH encoder FILTER encoder ECHO encoder PREV PLAY NEXT SRC BT LED FADER OLED ESP32 * DevKitC on terminal breakout USB ▸ ◂ u.FL HALF BREADBOARD dividers · pull-ups · LED driver DAC * jack ▴ MCP23017

To scale, looking down with the top plate off; front edge at the bottom. Floor-to-plate clearance left over: ~23 mm under FILTER/ECHO, ~30 mm under the EQ row, ~28 mm under the buttons, ~45 mm under the OLED. Sizes marked * are estimates. v1 boards stick down with double-sided foam tape (the breadboard has its own adhesive), so these positions are a guide, not fixed mounts.

ESP32 pin map

GPIOGoes toNotes
13OLED SDA (MOSI)HSPI, same as the office box
14OLED SCL (CLK)HSPI
27OLED CS
26OLED DC
25OLED RST
18DAC BCKI²S bit clock
19DAC LCKI²S word select
23DAC DINI²S data
21MCP23017 SDAI²C
22MCP23017 SCLI²C
34MCP23017 INTAinput-only pin; MCP set to mirror both ports onto INTA
36 (VP)Fader OTAADC1, the only analog input
16PREV buttoninternal pull-up; button closes to GND
17PLAY / PAUSE buttoninternal pull-up
32NEXT buttoninternal pull-up
39 (VN)SOURCE buttoninput-only: 10 kΩ pull-up to 3.3 V on the breadboard
35ECHO encoder push (throw)input-only: 10 kΩ pull-up to 3.3 V
33BT status LEDthrough 330 Ω
4LED-ring transistor basethrough 1 kΩ

19 pins. None of the boot-strapping pins (0, 2, 5, 12, 15) and none of the flash pins (6–11) are used.

Power

FromToNotes
Rear USB-B panel mountDevKitC USB portshort USB cable inside; carries power and lets you flash firmware without opening the box
Breakout 5Vbreadboard top rail (+)5 V rail: encoders, DAC, LED rings
Breakout 3V3breadboard bottom rail (+)3.3 V rail: OLED, MCP23017, fader, pull-ups
Breakout GNDboth breadboard rails (−)one ground for everything

Never put 5 V on the OLED (its logic tops out at 3.5 V) or on any ESP32 pin.

DAC (PCM5102A)

DAC pinToNotes
VIN5 V rail
GNDGND rail
LCKGPIO 19
DINGPIO 23
BCKGPIO 18
SCKGND railmust be grounded: the chip then makes its own clock
LINE OUT jack3.5 mm panel-mount extension → rear AUDIO OUTthen a 3.5 mm → RCA cable to the amp

Pads on the back (H1L–H4L): FLT low, DEMP low, XSMT high (otherwise it's muted), FMT low. Check before soldering; many boards ship already set. Header soldered pins up; each pin takes a female–male jumper to the breadboard or the ESP32 breakout.

OLED (SH1122)

OLED pinTo
GNDGND rail
VCC3.3 V rail
SCLGPIO 14
SDAGPIO 13
RSTGPIO 25
DCGPIO 26
CSGPIO 27

Fader (HW-233)

Fader pinToNotes
VCC3.3 V railuse one channel (the GND / VCC / OTA group)
GNDGND rail
OTAGPIO 36the other channel's pins stay empty

Buttons & LEDs

FILN pigtail wires: C = common, NO = switch, + / − = LED ring. The pigtail ends in a small MX1.25 plug: cut it off and strip the wires, or use MX1.25-to-jumper adapters.

FromToNotes
PREV · NOGPIO 16C wire of each button → GND rail
PLAY · NOGPIO 17
NEXT · NOGPIO 32
SOURCE · NOGPIO 39 + 10 kΩ to 3.3 VC → GND; its LED ring is unused in v1
PREV / PLAY / NEXT · LED +5 V railthe rings are rated 5–24 V
PREV / PLAY / NEXT · LED −2N2222 collectorall three together
2N2222 base1 kΩ → GPIO 4
2N2222 emitterGND railpin order varies by part: PN2222A is E·B·C and P2N2222A is C·B·E (flat face toward you, legs down). Check yours.
BT LED, long leg (+)330 Ω → GPIO 33
BT LED, short leg (−)GND rail

Encoders (CS19D32B) → MCP23017

Each encoder runs on 5 V and its A/B outputs swing 0–5 V, so every A and B line goes through a divider on the breadboard first: 1 kΩ in series from the encoder, 2 kΩ from that node to GND, and the node to the MCP23017 pin. That gives 3.3 V. The push switch is a plain contact and needs no divider. Same wiring as the office box's volume knob.

Encoder pinTo
1 · VDD5 V rail (optional 100 nF across pins 1 and 6)
2 · A1 kΩ → divider node → MCP pin (table below)
3 · B1 kΩ → divider node → MCP pin
4 · switchMCP pin (ECHO: GPIO 35)
5 · switchGND rail
6 · GNDGND rail

MCP23017 pins

KnobA (divided)B (divided)Push
LOWPA0PA1PA2
MIDPA3PA4PA5
HIGHPA6PB0PB1
FILTERPB2PB3PB4
ECHOPB5PB6GPIO 35 + 10 kΩ to 3.3 V

PA7 and PB7 stay empty: on current MCP23017 chips they work as outputs only. Firmware turns the MCP's internal pull-ups on for the push pins and off for the A/B pins (the dividers set those levels).

MCP23017 board

MCP pinTo
VCC3.3 V rail (keeps its I²C at the ESP32's level)
GNDGND rail
SDAGPIO 21
SCLGPIO 22
INTAGPIO 34

Back panel

JackInside connection
USB-BUSB cable to the DevKitC (see Power)
BT antennau.FL → RP-SMA pigtail from the ESP32 module's u.FL socket
AUDIO OUT3.5 mm panel-mount extension from the DAC's LINE OUT
Optical, coaxempty in v1 (digital inputs come later)

Breadboard parts

QtyPartFor
101 kΩseries resistor on each encoder A and B line
102 kΩpulldown on each divider node
210 kΩpull-ups on GPIO 35 (echo push) and 39 (SOURCE)
11 kΩtransistor base
1330 ΩBT LED
12N2222 (or similar NPN)switches the LED rings
1PCM5102A DACoff the breadboard; six female–male jumpers from its header
5 (optional)100 nF ceramicacross each encoder's VDD and GND