Skip to the content
4 layers130 × 90 mmLochord hw, the printed circuit board in 3D

An open-source version of the popular midi device: HiChord

Size
130 × 90 mm
Copper layers
4
Thickness
1.6 mm
Parts
91
Nets
110
Pads
387
Tracks, vias
1,483, 464
Pours
4
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Mar 2026
Updated
11 Sep 2026

Overview

Lochord hw is an open-source printed circuit board by kiwifruit0, from the kiwifruit0/LoChord repository on GitHub. It is a 4-layer board of 130 × 90 mm with 91 parts on 110 nets, routed with 1,483 tracks and 464 vias.

It is built around the ES8388, AMS1117-3.3 and LP5907MFX-3.3, with the USBLC6-2SC6, EC11E15244G1 and 100UF 10V 4*7 among its other parts. Its parts include 32 capacitors, 27 resistors, 10 switches, 5 ICs and 5 connectors. It belongs with the audio and music boards of this library.

Main components

8

README

README.md

LoChord

A real-time MIDI chord controller for ESP32-P4, with chord generation, looping, and parameter control. Inspired by the HiChord, but not a clone — see CLAUDE.md for how the two differ.

LoChord is both a firmware project and a hardware project developed together in one repo.

Mid-migration. The project moved from the ESP32-S3-WROOM-1 to the WT0132P4-A1 (ESP32-P4) module during design. PINOUT.md is written against the P4; firmware/include/config.h and the KiCad schematic are not yet. See PINOUT.md's "Migration delta" for the work list, and the root CLAUDE.md for why the move was made.

Hardware at a glance

  • WT0132P4-A1-N16R32 module — ESP32-P4, dual-core RISC-V, 16MB flash, 32MB in-package PSRAM, no radio
  • 7× Kailh Choc v1 chord switches + 1× loop button, hand-soldered, direct GPIO
  • 3× ALPS EC11 clickable rotary encoders (1 UI, 2 control)
  • Nintendo Switch joystick module on a 5-pin FPC
  • 428×142 2.79" NV3007 TFT LCD, SPI, LVGL UI built in EEZ Studio
  • ES8388 stereo I2S codec with integrated headphone amp, driving a 3.5mm jack
  • Native USB, MIDI only — recording is via the headphone jack into an audio interface
  • 4-pin USB-Serial-JTAG debug header (works concurrently with USB MIDI)

Repository layout

text
/
├── firmware/     ESP32-P4 PlatformIO project (Arduino framework, via pioarduino)
├── lochord_hw/   KiCad hardware project (schematic + PCB)
└── PINOUT.md     Single source of truth for every pin/net crossing the firmware↔hardware boundary

Each directory has its own CLAUDE.md with more detail; start with the root CLAUDE.md for the full picture.

Firmware

Built against pioarduino/platform-espressif32, not the official platformio/espressif32 platform. The official platform never picked up Arduino-ESP32 3.x (needed for USB MIDI) and has no ESP32-P4 support.

A custom board JSON is required — no stock definition matches the N16R32 (16MB flash / 32MB PSRAM) module.

Development commands

Run from firmware/:

Generate compile_commands.json:

text
pio run -t compiledb

Build and upload:

text
pio run -t upload

Serial monitor:

text
pio device monitor

Exit with Ctrl+A then Ctrl+X

Host tests:

text
pio test -e native

Hardware

The schematic (lochord_hw.kicad_sch) and PCB (lochord_hw.kicad_pcb) live in lochord_hw/. After a fresh clone, run:

text
git submodule update --init

to pull in the Kailh switch footprint library — without it, KiCad can't resolve the switch footprints.

Note that the switches are Choc v1 (PG1350). Any Choc v2 footprint still present in the schematic is left over from an earlier revision and is wrong.

Commit convention

Commits are prefixed by which side of the repo they touch:

  • fw: — firmware-only changes
  • hw: — hardware-only changes (including schematic/PCB edits)
  • chore: — repo-wide changes that aren't feature work on either side (restructuring, docs, tooling)
  • fw+hw: — changes that necessarily touch both sides together (e.g. reassigning a pin)

e.g. fw: add strum direction toggle, hw: swap choc v2 footprints for v1, fw+hw: renumber gpio for esp32-p4.

Parts

91
QtyValueFootprintReferences
11100nFCapacitor_SMD:C_0402_1005MetricC4, C6, C10, C11, C13, C14, C16, C18, C20, C23, C26
1110kResistor_SMD:R_0402_1005MetricR1, R5, R6, R7, R8, R9, R10, R11, R12, R13, R24
710uFCapacitor_SMD:C_0603_1608MetricC9, C12, C15, C17, C19, C21, C22
610nFCapacitor_SMD:C_0402_1005MetricC27, C28, C29, C30, C31, C32
433RResistor_SMD:R_0402_1005MetricR18, R19, R20, R21
31uFCapacitor_SMD:C_0402_1005MetricC1, C7, C8
3EC11E15244G1Rotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm_CircularMountingHolesRE1, RE2, RE3
210RResistor_SMD:R_0402_1005MetricR25, R26
2220uF/6.3VCapacitor_SMD:CP_Elec_6.3x5.4C24, C25
222uF/25VCapacitor_SMD:C_0805_2012MetricC3, C5
24.7kResistor_SMD:R_0402_1005MetricR22, R23
25.1kResistor_SMD:R_0402_1005MetricR2, R3
256RResistor_SMD:R_1206_3216MetricR15, R27
1100RResistor_SMD:R_0402_1005MetricR17
1100kResistor_SMD:R_0402_1005MetricR16
1100uF/10VCapacitor_SMD:CP_Elec_5x5.4C2
122RResistor_SMD:R_0402_1005MetricR14
1470RResistor_SMD:R_0402_1005MetricR4
1600R@100MHzInductor_SMD:L_0603_1608MetricFB1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1BOOTlochord:SW_SMD_TS-1088-AR02016_3.9x3.0mmSW2
1CHORD1Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_2.00uSW3
1CHORD2Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_2.00uSW4
1CHORD3Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_2.00uSW5
1CHORD4Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_2.00uSW6
1CHORD5Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_1.50uSW7
1CHORD6Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_1.00uSW8
1CHORD7Switch_Keyboard_Kailh:SW_Kailh_Choc_V1_1.50uSW9
1DEBUG USJConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1ENlochord:SW_SMD_TS-1088-AR02016_3.9x3.0mmSW1
1ER-TFT2.79-1lochord:Display_ER-TFT2.79-1_2.79in_142x428M2
1ES8388lochord:QFN-28-1EP_4x4mm_P0.45mm_EP2.6x2.6mm_ThermalViasU5
1GREENLED_SMD:LED_0603_1608MetricD1
1JOYSTICK_NSlochord:FPC_1x05_P0.50mm_Horizontal_ZIFJ3
1JOYSTICK_NS_MODULElochord:Joystick_NintendoSwitch_ModuleM1
1LCD_ER-TFT2.79-1lochord:FPC_1x10_P0.50mm_Horizontal_ZIFJ4
1LOOPSwitch_Keyboard_Kailh:SW_Kailh_Choc_V1_1.00uSW10
1LP5907MFX-3.3Package_TO_SOT_SMD:SOT-23-5U3
1PJ-320DConnector_Audio:Jack_3.5mm_PJ320D_HorizontalJ5
1SI2302Package_TO_SOT_SMD:SOT-23Q1
1U0RXDTestPoint:TestPoint_Pad_D1.5mmTP4
1U0TXDTestPoint:TestPoint_Pad_D1.5mmTP3
1USB-C 16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U4
1USB_HS_DMTestPoint:TestPoint_Pad_D1.5mmTP1
1USB_HS_DPTestPoint:TestPoint_Pad_D1.5mmTP2
1WT0132P4-A1-N16R32lochord:WT0132P4-A1U1

Similar boards

  • 4 layers99.5 × 65 mmEcho, the printed circuit board in 3D

    Echo

    rh1tech/echo

    Echo: ESP32-Based VGA Board

    181 parts4
  • 4 layers32 × 74 mmFrankless, the printed circuit board in 3D

    Frankless

    arlaneenalra/pi-pico-boards

    A place to keep various pi-pico-board experiments

    124 parts
  • 4 layers55 × 55 mmFrank core2 proto, the printed circuit board in 3D

    Frank core2 proto

    rh1tech/frank

    RP2350 Based Hardware Emulation Platform

    133 parts66GPL-3.0
  • 4 layers85.8 × 85.8 mmMinifrank rm1p2h, the printed circuit board in 3D

    Minifrank rm1p2h

    rh1tech/frank-archive

    Archive of FRANK Boards

    204 parts3
  • 2 layers56.8 × 38.8 mmF302 minimal, the printed circuit board in 3D

    F302 minimal

    SourceLizi/F302-minimal

    STM32F302硬件设计

    50 parts4MIT
  • 2 layers100 × 60 mmGatewayPlus V1.4, the printed circuit board in 3D

    GatewayPlus V1.4

    maivananh111/PCB_GatewayPlus_V1.4

    278 parts
  • 2 layers100 × 50 mmAnalog Redial v2, the printed circuit board in 3D

    Analog Redial v2

    sdylewski/Analog-Redial

    A circuit board for old telephones to come back to life. Plug one or two phones in, and you can call the other phone, use bluetooth, connect to others via voip, and do a variety of other things with a plain old rotary…

    77 parts46
  • 4 layers60 × 30 mmOpenmotorbridge omm intercom, the printed circuit board in 3D

    Openmotorbridge omm intercom

    schmidtmt/openmotorbridge

    The comprehensive technical specification is split into 18 logically organized chapters:

    21 parts

Questions

How big is the Lochord hw PCB?

It measures 130 × 90 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Lochord hw use?

91 parts, built around the ES8388, AMS1117-3.3, LP5907MFX-3.3 and USBLC6-2SC6. 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 Lochord hw KiCad files?

From the kiwifruit0/LoChord repository on GitHub, at the commit this page was made from: the board is lochord_hw/lochord_hw.kicad_pcb and its schematic lochord_hw/lochord_hw.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lochord hw design in my own project?

Its repository states no licence, so its author keeps all rights: ask kiwifruit0 before reusing the design.