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
ESP32 on its breakout
half breadboard
DAC (taped down, jumpers to the breadboard)
MCP23017 expander
hangs from the top plate
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
GPIO
Goes to
Notes
13
OLED SDA (MOSI)
HSPI, same as the office box
14
OLED SCL (CLK)
HSPI
27
OLED CS
26
OLED DC
25
OLED RST
18
DAC BCK
I²S bit clock
19
DAC LCK
I²S word select
23
DAC DIN
I²S data
21
MCP23017 SDA
I²C
22
MCP23017 SCL
I²C
34
MCP23017 INTA
input-only pin; MCP set to mirror both ports onto INTA
36 (VP)
Fader OTA
ADC1, the only analog input
16
PREV button
internal pull-up; button closes to GND
17
PLAY / PAUSE button
internal pull-up
32
NEXT button
internal pull-up
39 (VN)
SOURCE button
input-only: 10 kΩ pull-up to 3.3 V on the breadboard
35
ECHO encoder push (throw)
input-only: 10 kΩ pull-up to 3.3 V
33
BT status LED
through 330 Ω
4
LED-ring transistor base
through 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
From
To
Notes
Rear USB-B panel mount
DevKitC USB port
short USB cable inside; carries power and lets you flash firmware without opening the box
Breakout 5V
breadboard top rail (+)
5 V rail: encoders, DAC, LED rings
Breakout 3V3
breadboard bottom rail (+)
3.3 V rail: OLED, MCP23017, fader, pull-ups
Breakout GND
both 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 pin
To
Notes
VIN
5 V rail
GND
GND rail
LCK
GPIO 19
DIN
GPIO 23
BCK
GPIO 18
SCK
GND rail
must be grounded: the chip then makes its own clock
LINE OUT jack
3.5 mm panel-mount extension → rear AUDIO OUT
then 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 pin
To
GND
GND rail
VCC
3.3 V rail
SCL
GPIO 14
SDA
GPIO 13
RST
GPIO 25
DC
GPIO 26
CS
GPIO 27
Fader (HW-233)
Fader pin
To
Notes
VCC
3.3 V rail
use one channel (the GND / VCC / OTA group)
GND
GND rail
OTA
GPIO 36
the 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.
From
To
Notes
PREV · NO
GPIO 16
C wire of each button → GND rail
PLAY · NO
GPIO 17
NEXT · NO
GPIO 32
SOURCE · NO
GPIO 39 + 10 kΩ to 3.3 V
C → GND; its LED ring is unused in v1
PREV / PLAY / NEXT · LED +
5 V rail
the rings are rated 5–24 V
PREV / PLAY / NEXT · LED −
2N2222 collector
all three together
2N2222 base
1 kΩ → GPIO 4
2N2222 emitter
GND rail
pin 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 pin
To
1 · VDD
5 V rail (optional 100 nF across pins 1 and 6)
2 · A
1 kΩ → divider node → MCP pin (table below)
3 · B
1 kΩ → divider node → MCP pin
4 · switch
MCP pin (ECHO: GPIO 35)
5 · switch
GND rail
6 · GND
GND rail
MCP23017 pins
Knob
A (divided)
B (divided)
Push
LOW
PA0
PA1
PA2
MID
PA3
PA4
PA5
HIGH
PA6
PB0
PB1
FILTER
PB2
PB3
PB4
ECHO
PB5
PB6
GPIO 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 pin
To
VCC
3.3 V rail (keeps its I²C at the ESP32's level)
GND
GND rail
SDA
GPIO 21
SCL
GPIO 22
INTA
GPIO 34
Back panel
Jack
Inside connection
USB-B
USB cable to the DevKitC (see Power)
BT antenna
u.FL → RP-SMA pigtail from the ESP32 module's u.FL socket
AUDIO OUT
3.5 mm panel-mount extension from the DAC's LINE OUT
Optical, coax
empty in v1 (digital inputs come later)
Breadboard parts
Qty
Part
For
10
1 kΩ
series resistor on each encoder A and B line
10
2 kΩ
pulldown on each divider node
2
10 kΩ
pull-ups on GPIO 35 (echo push) and 39 (SOURCE)
1
1 kΩ
transistor base
1
330 Ω
BT LED
1
2N2222 (or similar NPN)
switches the LED rings
1
PCM5102A DAC
off the breadboard; six female–male jumpers from its header