Skip to the content
2 layers290 × 210 mmT8-Sequencer, the printed circuit board in 3D

16-step ESP32 groovebox: two-layer 290x210 mm KiCad board, DRC-clean and fabrication-ready, with the Python scripts that generated and repaired it

Size
290 × 210 mm
Copper layers
2
Thickness
1.6 mm
Parts
104
Nets
137
Pads
523
Tracks, vias
2,570, 1,148
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
26 Sep 2026
Updated
26 Sep 2026

Overview

T8-Sequencer is an open-source printed circuit board by lluisestape-upc, from the lluisestape-upc/T8-Sequencer repository on GitHub, published under the MIT licence. It is a 2-layer board of 290 × 210 mm with 104 parts on 137 nets, routed with 2,570 tracks and 1,148 vias.

It is built around the 74AHCT1G125SE, CH340C and ESP32-WROOM-32, with the AMS1117-3.3, CD74HC4067M and WS2812B among its other parts. Its parts include 24 switches, 17 resistors, 17 diodes, 13 capacitors and 11 ICs. It belongs with the audio and music boards and the ESP32 boards of this library.

Main components

6

README

README.md

T-8 Groovebox

A 16-step hardware groovebox built around an ESP32-WROOM-32, designed from scratch in KiCad 10. Two copper layers, 290 × 210 mm, DRC-clean and fabrication-ready.

Status: designed, not yet fabricated. The layout passes DRC with 0 errors and 0 unconnected nets, and the Gerber + drill package in fab/ has been generated and checked. No board has been ordered yet, so nothing here has been measured on real hardware. Every performance figure in this README is a design intent, not a measurement.

Isometric render of the assembled board


What it is

A desktop groovebox in the spirit of the Roland T-8: sixteen step buttons with per-step RGB feedback, ten pots for live parameter control, a rotary encoder for menu navigation, a 2.4" colour display, MIDI in and out over TRS-A, and two independent audio outputs — a line-level I²S DAC and a class-D amplifier for a small onboard speaker. The whole thing is powered and programmed over a single USB-C connector.

The interesting part of this project is not the feature list, it is that the panel layout and most of the routing were generated and repaired with the KiCad Python API rather than drawn by hand. See How the board was built.

Board at a glance

Outline290.1 × 210.1 mm, with a 7 mm notch for the MIDI jacks
Copper layers2 (F.Cu / B.Cu), 1 oz
Footprints104
Pads523
Nets137
Tracks2,570 segments
Vias1,148 (0.6 mm pad / 0.3 mm drill)
Copper zones1 GND plane, poured on both layers
Min track / clearance0.20 mm / 0.20 mm
Min drill0.30 mm
Min copper-to-edge0.50 mm
Mounting6 × M3 (3.2 mm)
DRC0 errors, 0 unconnected, 12 cosmetic silkscreen warnings

Renders

TopBottom
TopBottom

Vector fabrication views: top · bottom

PDFs: schematic · PCB


Signal chain

mermaid
flowchart LR
  USB["USB-C J1"] --> UART["CH340C USB-UART"]
  USB --> LDO["AMS1117-3.3"]
  UART -->|UART0| ESP["ESP32-WROOM-32"]
  UART -.->|DTR / RTS via Q1, Q2| ESP
  LDO -->|3.3 V| ESP

  STEPS["16 step buttons"] --> EXP1["MCP23017 0x20"]
  FNKEYS["8 function buttons"] --> EXP2["MCP23017 0x21"]
  EXP1 -->|I2C| ESP
  EXP2 -->|I2C| ESP
  POTS["10 potentiometers"] --> MUX["CD74HC4067 16:1 mux"]
  MUX -->|ADC on GPIO34| ESP
  ENC["Rotary encoder + switch"] --> ESP

  ESP -->|GPIO16| LVL["74AHCT1G125 level shifter"]
  LVL -->|33 ohm series| LEDS["16x WS2812B"]
  ESP -->|SPI| DISP["ST7789 2.4in module"]
  ESP -->|I2S| DAC["I2S DAC header, line out"]
  ESP -->|I2S| AMP["MAX98357A module, speaker"]
  ESP -->|GPIO32| MOUT["MIDI OUT TRS-A, J3"]
  MIDIIN["MIDI IN TRS-A, J2"] --> OPTO["6N138 optocoupler"]
  OPTO -->|GPIO17| ESP

Hardware

Controls and indicators

QtyPartRole
166 mm tact switchStep buttons (SW1–SW16)
86 mm tact switchPLAY, REC, SHIFT, PATT, TEMPO, CLEAR, F1, F2 (SW17–SW24)
10Alps RK09K verticalParameter pots (RV1–RV10)
1Alps EC11E + switchMenu encoder
16WS2812B (PLCC-4, 5×5 mm)Per-step RGB feedback
1ST7789 2.4" moduleDisplay, on an 8-pin 2.54 mm header

Active devices

RefPartPackageRole
U1ESP32-WROOM-32moduleMain MCU
U2—1×06 headerI²S DAC module, line out
U3ST7789 2.4"1×08 headerDisplay
U4CD74HC4067MSOIC-24W16:1 analog mux for the pots
U5AMS1117-3.3SOT-2233.3 V linear regulator
U6CH340CSOIC-16USB to serial
U7MCP23017DIP-28I/O expander, step buttons (0x20)
U86N138DIP-8MIDI IN isolation
U9MAX98357A1×07 headerClass-D amp module, speaker out
U10MCP23017DIP-28I/O expander, function buttons (0x21)
U1174AHCT1G125SOT-23-53.3 V to 5 V buffer for the LED data line
Q1, Q2NPNSOT-23Auto-reset (DTR/RTS to EN/IO0)

Connectors

RefConnectorNotes
J1USB-C receptacle, USB 2.0 14PPower + programming, with 5.1 kΩ CC pulldowns
J23.5 mm TRSMIDI IN, TRS-A (tip = DIN 5, ring = DIN 4)
J33.5 mm TRSMIDI OUT, TRS-A

Audio leaves the board through the connectors on the DAC and amplifier modules, not through board-mounted jacks.


ESP32 pin map

GPIONetFunction
0ESP_IO0Boot strap, driven by Q2 from RTS
1 / 3TX / RXUART0 to the CH340C
2DCDisplay data/command
4RESDisplay reset
5TFT_CSDisplay chip select
12MUX_S0Mux select bit 0
13MUX_S1Mux select bit 1
14MUX_S2Mux select bit 2
15DISP_MOSIDisplay data
16LED_DATAWS2812B chain, via the 74AHCT1G125
17MIDI_RXMIDI IN, from the 6N138
18SCLI²C clock
19ENC_AEncoder channel A
21ENC_BEncoder channel B
22I2S_DINI²S data out, shared by both audio devices
23SDAI²C data
25I2S_LCKI²S word clock
26I2S_BCKI²S bit clock
27MUX_S3Mux select bit 3
32MIDI_TXMIDI OUT
33DISP_SCKDisplay clock
34MUX_SIGPot mux output to ADC (input-only pin)
35ENC_SWEncoder push switch (input-only pin)
ENESP_ENReset, driven by Q1 from DTR

GPIO34 and GPIO35 are input-only on the ESP32, which is exactly how they are used here. GPIO12 is a boot strapping pin (MTDI); it is driven as a mux select with no external pull, so nothing holds it high at reset, but it is worth keeping in mind when writing the firmware.

I²C and mux map

Both expanders share SDA/SCL with RESET tied to 3.3 V. Buttons pull to ground, so enable the internal pull-ups (GPPU).

DeviceAddressPort APort B
U70x20steps 1–8steps 9–16
U100x21PLAY, REC, SHIFT, PATT, TEMPO, CLEAR, F1, F2free (8 spare inputs)

The CD74HC4067 uses 10 of its 16 channels (POT0–POT9), selected by MUX_S0..S3, with the common pin read on GPIO34. Allow for RC settling between the channel switch and the ADC read.

The WS2812B chain is wired as a serpentine, not in reference order:

text
D1 → D2 → D3 → D4 → D5 → D10 → D11 → D12 → D6 → D7 → D8 → D9 → D14 → D15 → D16 → D17

Firmware has to map logical step n onto this physical order.


Fabrication

fab/ holds the complete package, also zipped as T8Sequencer_fab.zip:

  • 7 Gerbers — F.Cu, B.Cu, F.Mask, B.Mask, F.Silkscreen, B.Silkscreen, Edge.Cuts
  • Excellon drill files, split PTH / NPTH
  • .gbrjob job file

Settings the design was checked against:

SettingValueWhy
Layers2
Thickness1.6 mm
Copper weight1 oz2 oz would raise the headroom of the 0.2 mm tracks from ≈0.74 A to ≈1.2 A, at higher cost
Min hole size0.3 mm0.2 mm crosses into a much more expensive price tier
Min track / spacing0.2 mm / 0.2 mm
Surface finishHASL

The ESP32 thermal vias were deliberately enlarged from 0.2 mm to 0.3 mm drill (0.7 mm pad) purely to stay under the cheaper drill tier.


Repository layout

text
T8Sequencer.kicad_pro          project
T8Sequencer.kicad_sch          schematic (single sheet)
T8Sequencer.kicad_pcb          layout
T8Sequencer.xml                netlist export
fp-lib-table                   project footprint libraries
sin_marco.kicad_wks            borderless worksheet, for clean plots
lib/Lluis.kicad_sym            custom symbols (module headers)
Lluis.pretty/                  custom footprints
LCD ST7789V.pretty/            the original FPC display footprint (superseded)
fab/                           Gerbers + drill
img/                           3D renders and 2D fabrication views
build_pcb.py                   board bring-up script
place_panel.py                 panel placement generator
scripts_arreglo/               the repair scripts, in the order they were run

Opening the project

The schematic depends on the custom symbol library in lib/Lluis.kicad_sym, which is not registered by a project-level sym-lib-table. Add it once under Preferences → Manage Symbol Libraries with the nickname Lluis, or point an existing entry at the copy in lib/. The footprint libraries resolve automatically through fp-lib-table.


How the board was built

The panel is a grid of 16 switches, 16 LEDs and 10 pots. Placing that by hand is tedious and error-prone, so the geometry is generated instead:

  • place_panel.py computes the panel grid and writes footprint positions straight into the board.
  • build_pcb.py handles board-level bring-up.
  • scripts_arreglo/ holds the repair passes in the order they were run — fix1–fix9, fix11, fix12 for connectivity and geometry, ruta–ruta4 for routing, esq for the schematic. Each one is a single, auditable change.

Two problems in there are worth reading if you ever script KiCad.

Duplicate-numbered pads. 73 pads in this design share a number with another pad in the same footprint — tact switches with two pads numbered 1 and two numbered 2, the USB-C shield with four SH pads, the ESP32 thermal pad split into eight. The netlist assigns a net to one of them, so the rest stay at net 0 and the copper never connects. Neither ERC nor the netlist reveals this. The fix walks every footprint, groups pads by number, and propagates the single non-zero net to its twins:

python
byn = collections.defaultdict(list)
for p in f.Pads():
    byn[p.GetNumber()].append(p)
for num, ps in byn.items():
    nets = {p.GetNetCode() for p in ps if p.GetNetCode() != 0}
    if len(nets) == 1 and any(p.GetNetCode() == 0 for p in ps):
        net = B.FindNet(nets.pop())
        for p in ps:
            if p.GetNetCode() == 0:
                p.SetNet(net)

GetTracks() is invalidated by Remove(). Iterating the track list while deleting from it segfaults the interpreter. Collect first, delete afterwards:

python
fuera = [t for t in B.GetTracks() if condicion(t)]
for t in fuera:
    B.Remove(t)

Design notes and open risks

Written down plainly, because none of it has been measured yet.

The 3.3 V regulator is the hot spot. The AMS1117 drops 5 V to 3.3 V linearly, so it burns 1.7 V times whatever the rail draws:

3.3 V loadDissipationRise over ambient (SOT-223)
300 mA0.51 W≈40 °C
500 mA0.85 W≈65 °C
800 mA1.36 Wtoo much

Quiescent operation is fine. With Wi-Fi transmitting (peaks around 500 mA) plus the display backlight, the package gets hot. This is the first thing to measure on a real board, and the obvious upgrade is a buck converter.

The LED ring can outdraw a USB port. 16 WS2812B at full white is roughly 960 mA on the 5 V rail, against the 500 mA a plain USB 2.0 port guarantees. Cap the brightness in firmware.

Every track sits at the 0.2 mm minimum. That is ≈0.74 A at 1 oz by IPC-2221 — adequate for the logic rails, with no margin on the 5 V LED rail. Widening the power tracks was attempted and produced 138+ clearance errors: the routing is dense enough that it needs manual rework, or 2 oz copper, or both.

Three module pinouts are assumed, not verified. The display (U3), the DAC (U2) and the amplifier (U9) are all 2.54 mm headers, and the pin order was taken from the common breakout variants. Check the silkscreen on the parts you actually buy against the schematic before soldering. The schematic carries a note to this effect on U9.

12 silkscreen warnings remain. Reference text on J2 and J3 overhangs the board edge near the MIDI notch. Cosmetic only, no effect on fabrication.


Next steps

  • Order the boards (1 oz, min hole 0.3 mm)
  • Buy the 8-pin 2.4" ST7789 module and verify its pin order
  • Verify the MAX98357A and I²S DAC module pinouts
  • Prototype the firmware in simulation before the boards arrive
  • Bring-up: power rails, regulator temperature, USB enumeration, auto-reset
  • Characterise: line-out THD+N and noise floor, I²S end-to-end latency, MIDI TRS jitter, LED current against brightness
  • Add silkscreen function labels for the pots and step buttons

License

MIT — see LICENSE.

Designed by Lluís Estapé. KiCad 10.0.1.

Parts

104
QtyValueFootprintReferences
16SW_PushSW_PUSH_6mmSW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8, SW9, SW10, SW11, SW12, SW13, SW14, SW15, SW16
16WS2812BLED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D14, D15, D16, D17
1010kPotentiometer_Alps_RK09K_Single_VerticalRV1, RV2, RV3, RV4, RV5, RV6, RV7, RV8, RV9, RV10
8100nFC_0805_2012MetricC20, C21, C22, C23, C24, C27, C29, C30
6MountingHole_3.2mm_M3MountingHole_3.2mm_M3H1, H2, H3, H4, H5, H6
510kΩR_0805_2012MetricR3, R4, R20, R21, R22
310µFC_0805_2012MetricC25, C26, C28
34.7kΩR_0805_2012MetricR7, R23, R24
25.1kΩR_0805_2012MetricR1, R2
2Q_NPN_BCESOT-23Q1, Q2
110kR_0805_2012MetricR25
110ΩR_0805_2012MetricR9
11N4148D_DO-35_SOD27_P7.62mm_HorizontalD13
11kΩR_0805_2012MetricR6
12.7kR_0805_2012MetricR26
1220R_0805_2012MetricR10
133ΩR_0805_2012MetricR8
1470ΩR_0805_2012MetricR5
16N138DIP-8_W7.62mmU8
174AHCT1G125SOT-23-5U11
1AMS1117-3.3SOT-223-3_TabPin2U5
1BTN_CLEARSW_PUSH_6mmSW22
1BTN_F1SW_PUSH_6mmSW23
1BTN_F2SW_PUSH_6mmSW24
1BTN_PATTSW_PUSH_6mmSW20
1BTN_PLAYSW_PUSH_6mmSW17
1BTN_RECSW_PUSH_6mmSW18
1BTN_SHIFTSW_PUSH_6mmSW19
1BTN_TEMPOSW_PUSH_6mmSW21
1CC_0805_2012MetricC1
1CD74HC4067MSOIC-24W_7.5x15.4mm_P1.27mmU4
1CH340CSOIC-16_3.9x9.9mm_P1.27mmU6
1C_PolarizedCP_Radial_D10.0mm_P5.00mmC2
1ESP32-WROOM-32ESP32-WROOM-32U1
1MAX98357A (modulo)PinHeader_1x07_P2.54mm_VerticalU9
1MCP23017 0x21DIP-28_W7.62mmU10
1MCP23017x-x-SPDIP-28_W7.62mmU7
1MIDI IN (TRS-A)Jack_3.5mm_CUI_SJ1-3523N_HorizontalJ2
1MIDI OUT (TRS-A)Jack_3.5mm_CUI_SJ1-3523N_HorizontalJ3
1RotaryEncoder_SwitchRotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmRE1
1ST7789 2.4in moduloPinHeader_1x08_P2.54mm_VerticalU3
1USB_C_Receptacle_USB2.0_14PUSB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1~PinHeader_1x06_P2.54mm_VerticalU2

Similar boards

  • 2 layers50 × 50 mmRfid uhf wifi reader, the printed circuit board in 3D

    Rfid uhf wifi reader

    OpenLaundry/wifi-rfid-uhf-reader

    Portable long range RFID uhf reader with WIFI based on esp32

    23 parts8
  • 4 layers85.1 × 53.3 mmEsp32-faerfly V2.0, the printed circuit board in 3D

    Esp32-faerfly V2.0

    low-poly-studio/esp32-faerfly

    Imogen Wren Business Card Light Show PCB

    103 parts5
  • 2 layers100 × 100 mmDesktop light, the printed circuit board in 3D

    Desktop light

    rmingon/desktop-light

    Desktop light ws2812b with warm setting and text writing

    95 parts
  • 2 layersTopBoard, the printed circuit board in 3D

    TopBoard

    Libre-Talk/Wave

    Smart Speaker satellite

    184 parts22
  • 2 layers85 × 50 mmUDP w5500, the printed circuit board in 3D

    UDP w5500

    SameSameIndustry/STM32_UDP2CAN_controller

    STM32G431 + WIZnet W5500(Ethernet) を使い、PC(Python)から UDP で直接 CAN バス上のアクチュエータ (DJI C610 ESC / TTL サーボ / 差動ワイヤ機構モータ) を制御するための、基板設計(KiCad)・ファームウェア (STM32CubeMX + CMake)・PC側ツール一式です。

    98 parts
  • 2 layers60 × 40 mmAstra board, the printed circuit board in 3D

    Astra board

    verIdyia/astra-board

    ESP32-C3 development board: a documented AI-assisted PCB experiment

    53 parts

Questions

How big is the T8-Sequencer PCB?

It measures 290 × 210 mm and has 2 copper layers, 1.6 mm thick.

What parts does the T8-Sequencer use?

104 parts, built around the 74AHCT1G125SE, CH340C, ESP32-WROOM-32 and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the T8-Sequencer KiCad files?

From the lluisestape-upc/T8-Sequencer repository on GitHub, at the commit this page was made from: the board is T8Sequencer.kicad_pcb and its schematic T8Sequencer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the T8-Sequencer design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).