

Trill flex base
Guitar in a form factor of a forearm strap!
- Size
- 296.5 × 175.3 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 107
- Nets
- 125
- Pads
- 429
- Tracks, vias
- 1,336, 73
- Pours
- 6
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 21 May 2026
- Updated
- 5 Jun 2026
Overview
Trill flex base is an open-source printed circuit board by ryos17, from the ryos17/forearm-guitar repository on GitHub, published under the MIT licence. It is a 2-layer board of 296.5 × 175.3 mm with 107 parts on 125 nets, routed with 1,336 tracks and 73 vias.
It is built around the NE5532DR-MS, TS20 and AMS1117-3.3, with the AMS1117-5.0, PJ-623A3-G and TS-1187A-B-A-B among its other parts. Its parts include 34 resistors, 22 connectors, 19 capacitors, 10 ICs and 6 diodes. It belongs with the audio and music boards and the nRF52 and nRF5x boards of this library.
Main components
12NE5532DR-MS
SOP-8-18V~18V -40℃~+85℃ 100nA 110dB 15MHz 2 200nA 2V~18V 300uV 5V/us 5nV/√Hz@1kHz 6mA SOP-8 Operational Amplifier ROHSMSKSEMIOperational AmplifierTS20
TSSOP-28-20℃~+75℃ 2.5V~5V 20 85uA 8kV 9uA Capacitive Touch、PWM Control、自动灵敏度校准、集成LED驱动器 TSSOP-28 Touch Sensors ROHSAD SemiconTouch SensorsAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsAMS1117-5.0
SOT-223-40℃~+125℃ 1 1.3V 15V 1A 5V 60dB Fixed Positive Short Circuit Protection、Thermal shutdown SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsPJ-623A3-G
插件-20℃~+70℃ 30V 500mA 6.35mm Headphone Jack 插件 Audio Connectors ROHSXKB ConnectionAudio Connectors (Headphones)TS-1187A-B-A-B
SMD-4P,5.1x5.1mm-30℃~+85℃ 1.5mm 1.6N 100,000 cycles 12V 5.1mm 5.1mm 50mA Gold No Round Button SPST Surface Mount,Vertical Without Bracket SMD-4P,5.1x5.1mm Tactile Switches ROHSXKB ConnectionTactile SwitchesTAJA106K016RNJ
CASE-A-3216-18(mm)-55℃~+125℃ 10uF 16V 3Ω@100kHz ±10% CASE-A-3216-18(mm) Tantalum Capacitors ROHSKyocera AVXTantalum CapacitorsKT-0805Y
0805-40℃~+85℃ 1.8V~2.4V 120° 175mcd 40mW 584nm~594nm 596nm Discrete Diode Water Clear Yellow 0805 LED Indication - Discrete ROHSHubei KENTO ElecLED Indication - DiscretePJ-313D-6A
SMD3.5mm Headphone Jack 30V 500mA Phosphor bronze Tin SMD Audio Connectors ROHSHRO ElectronicsAudio Connectors (Headphones)RS08U111Z001
SMD10kΩ 25mW 5V ±30% SMD Potentiometers, Variable Resistors ROHSALPSALPINEPotentiometers & Variable ResistorsAO3400A
SOT-23-55℃~+150℃ 1 N-channel 1.45V 1.4W 30V 48mΩ@2.5V 5.7A 50pF 630pF 75pF 7nC@10V N-Channel SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETsF0502-B-32-15T-R
SMD,P=0.5mm,卧贴-25℃~+85℃ 0.3mm 0.5mm 1.5mm 32P Bottom Contact Hinged Lid Surface Mount, Right Angle SMD,P=0.5mm,卧贴 FFC, FPC (Flat Flexible) Connector Assemblies ROHSXFCNFFC, FPC (Flat Flexible) Connector Assemblies
README
README.mdForearm Guitar
A wearable MIDI controller worn on the forearm. Capacitive touch pads along the arm act as frets/strings, and an onboard IMU turns wrist motion (pitch, roll, yaw, and shake) into expressive MIDI control. The device sends MIDI over USB or Bluetooth LE, so it can drive any soft synth — this repo ships a set of ready-made Surge XT patches tuned for it.
Hardware overview
- MCU: Seeed XIAO nRF52840 (USB + BLE).
- Motion: LSM6DS3 IMU (I²C
0x6A) for orientation and shake. - Touch sensing: a TCA9548A-style I²C mux (
0x70) fans out to 8 channels (one per fret), each hosting an Azoteq TS20 capacitive controller. The 20 decimation channels of each TS20 are binned into 6 guitar strings (E2, A2, D3, G3, B3, E4). - Output: Note-on/off plus continuous controllers — pitch → CC 102, roll → CC 103, yaw → CC 104, shake → CC 105.
Repository layout
forearm-guitar/
├── firmware/ Arduino firmware for the XIAO nRF52840
├── patches/ Surge XT synth patches ("Forearm Guitar" user area)
└── pcb/ KiCad hardware design files + fab outputsfirmware/
Arduino (.ino) sketches for the controller. Two build targets:
forearm_firmware/— USB MIDI (via Adafruit TinyUSB).forearm_firmware_bluetooth/— wireless BLE MIDI (via Adafruit Bluefruit).
Both share the same sensing/mapping core. Notable features: MONO/POLY play modes
(switchable at runtime over serial with mono / poly), an orientation
reset gesture (lay your hand flat across the fretboard to re-zero
pitch/roll/yaw), and a range of compile-time tuning flags at the top of each
sketch (latency vs. ghost-note robustness, string-mapping profile, debug print
modes, loop profiler).
Three revisions are kept:
final/— current, cleaned-up firmware for the custom PCB. Use this.prototype_2/— first firmware to run on this custom PCB.prototype/— earliest iteration, targeting the previous (pre-PCB) hardware. Includes amux_ts20_finderutility sketch for probing the I²C mux/TS20 addresses during bring-up.
Flashing the firmware (Arduino IDE)
The firmware targets the Seeed XIAO nRF52840 and uses Adafruit TinyUSB (USB build), Adafruit Bluefruit (BLE build), and the Seeed LSM6DS3 driver. First-time setup:
-
Add the Seeed board package. In Preferences → Additional Boards Manager URLs, add:
text https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json -
Install the board core. Open Tools → Board → Boards Manager, search for
seeed nrf52, and install Seeed nRF52 Boards (the non-mbed package — it's an Adafruit nRF52 fork that ships both TinyUSB and Bluefruit; the mbed core lacks them). -
Install the libraries. In Tools → Manage Libraries, install:
- Seeed Arduino LSM6DS3 (provides
LSM6DS3.h) — both builds. - MIDI Library by FortySevenEffects — USB build only.
TinyUSB and Bluefruit ship with the board core, so no separate install is needed.
- Seeed Arduino LSM6DS3 (provides
-
Upload. Plug the XIAO in over USB-C, open the sketch under
firmware/final/(forearm_firmware/for USB,forearm_firmware_bluetooth/for BLE), select the port under Tools → Port, and click Upload.
pcb/
KiCad projects for the two boards, each with production outputs (Gerbers, BOM, pick-and-place positions) and 3D models (STEP/STL):
trill-flex-base/REV_C2/— main base board.trill-flex-slider/REV-C1-KiCad/— flexible slider sensor board.
The production/ subfolders hold fab-ready zips; the timestamped *-backups/
folders are KiCad's auto-saves and can be ignored.
patches/
A Surge XT user area named Forearm Guitar, containing patches organized by category:
patches/Forearm Guitar/
└── Patches/
├── Clean/ Lush, Sine
├── Distortion/ Default Lead, Rampage
├── FX/ Computer Language, Ritual, Water
└── Pad/ Blue Pad, Slow Mono, Sparkle MountainThe patches respond to the controller's CC mappings (CC 102–105) for expressive control from wrist motion.
Using the patches in Surge XT
Surge XT scans a single "user data path" for patches, wavetables, and presets.
Point it at the Forearm Guitar folder in this repo:
- Open Surge XT.
- In the top menu (gear/wrench icon), choose Set Custom User Data Path….
- Select the
patches/Forearm Guitarfolder from this repo (the one containing thePatches/subfolder). - Back in the menu, choose Refresh Patch List (or restart Surge).
- The patches now appear in the patch browser under the Clean, Distortion, FX, and Pad categories.
Layout note: Surge only scans the
Patches/subfolder, so the category folders must live atForearm Guitar/Patches/<Category>/*.fxp. If you add more patches, drop them into a category folder there and refresh.
Alternatively, instead of repointing the user data path, you can copy the
contents of Forearm Guitar/Patches/ into your existing Surge user area
(default on Windows: Documents\Surge XT\Patches\).
Connecting the controller
- Power the controller over USB, or pair it over Bluetooth LE (BLE-MIDI build).
- In your DAW (or a standalone Surge XT instance), select the Forearm Guitar as the MIDI input.
- Load a patch — playing the touch frets sends notes; wrist motion drives the mapped CCs.
Parts
107| Qty | Value | Footprint | References |
|---|---|---|---|
| 11 | 10k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5, R8, R9, R14, R15, R22, R23, R25, R26, R27, R28 |
| 9 | TS20 | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J11, J12, J13, J14, J15, J16, J17, J18, J19 |
| 8 | MountingScrew | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4, H5, H11, H12, H13 |
| 5 | 0.1uF | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | C7, C8, C9, C13, C18 |
| 5 | 4.7k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R31, R32, R33, R34, R35 |
| 5 | TAJA106K016RNJ | eli_custom_footprints:TAJA106K016RNJ | C5, C6, C10, C11, C19 |
| 4 | 0R | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R38, R39, R41, R42 |
| 4 | 10uF | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | C14, C15, C16, C17 |
| 4 | 220R | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R16, R17, R18, R19 |
| 4 | 430450212 | eli_custom_footprints:CONN-TH_430450212 | CN1, CN2, CN3, CN4 |
| 3 | 0.1u | Capacitor_SMD:C_0402_1005Metric | C4, C20, C21 |
| 3 | 47k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R24, R30, R36 |
| 3 | KT-0805Y | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D8, D11, D12 |
| 3 | PJ313D | eli_custom_footprints:AUDIO-TH_PJ313D | J5, J6, J7 |
| 2 | 100R | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R20, R21 |
| 2 | 10k | eli_custom_footprints:RES-ADJ-SMD_L13.2-W3.0_RS08U111Z001 | RV8, RV9 |
| 2 | 1k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R12, R13 |
| 2 | 4.7nF | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | C3, C12 |
| 2 | 470 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R6, R11 |
| 2 | MountingScrew | MountingHole:MountingHole_3.2mm_M3 | H6, H7 |
| 2 | NE5532DR | eli_custom_footprints:SOIC-8_L5.0-W4.0-P1.27-LS6.0-BL | U8, U9 |
| 2 | TS20 | eli_custom_footprints:TSSOP-28_L9.7-W4.4-P0.65-LS6.4-BL | U5, U11 |
| 2 | onboard_sense | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J10, J20 |
| 1 | 0R | Resistor_SMD:R_0603_1608Metric | R40 |
| 1 | 593 | eli_custom_footprints:BAT_593 | BT1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U7 |
| 1 | AMS1117-5.0 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U6 |
| 1 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | F0502-B-32-15T-R | eli_custom_footprints:FPC-SMD_32P-P0.50-L6.1-W20.4_XFCN-F0502 | J4 |
| 1 | GTR_Fretboard_25.5in_22F_FixedWidth | eli_custom_footprints:GTR_Fretboard_25.5in_22F_FixedWidth_DwgsUser | FB1 |
| 1 | KT-0805G | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D9 |
| 1 | KT-0805R | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D10 |
| 1 | MountingScrew | MountingHole:MountingHole_2.2mm_M2 | H8 |
| 1 | PJ-623A3-G | eli_custom_footprints:AUDIO-TH_XKB_PJ-623A3-G | U2 |
| 1 | Power In DANGER | Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_Vertical | J9 |
| 1 | Power Out | Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_Vertical | J8 |
| 1 | SS34 | Diode_SMD:D_SMA | D6 |
| 1 | TCA9548APWR | Package_SO:TSSOP-24_4.4x7.8mm_P0.65mm | U3 |
| 1 | TS-1187A-B-A-B | eli_custom_footprints:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL_H1.5 | U4 |
| 1 | XIAO-nRF52840-DIP | eli_custom_footprints:XIAO-nRF52840-DIP | U10 |
| 1 | i2c_display | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J21 |
More from ryos17/forearm-guitar
1- 2 layers94.5 × 57.6 mm

Similar boards
- 4 layers25.4 × 75 mm

- 2 layers35.6 × 106.7 mm

Signal head dense
wsu-roboracer/traffic-signal-head
Script-generated KiCad LED boards and firmware for a 1/10 scale three-section traffic signal head
118 parts - 4 layers70 × 157.5 mm

Controller Tv Lift
vyrubaev/TV-Lift-Controller
TVLift Controller is an intelligent controller for TV lift and lower mechanisms, based on the ESP32 microcontroller.
103 parts - 4 layers75 × 55 mm

- 4 layers54 × 32.5 mm

- 2 layers121 × 75.5 mm

Jlctest
cjheath/jlcbasic
JLC Basic parts library for Kicad fetched and converted from EasyEDA
46 parts5 - 2 layers140 × 105.5 mm

- 4 layers72.5 × 39.7 mm

FOC RP2350
totaldesaster/SimpleFOC-Serial-Driver
Advanced dual BLDC driver based on the RP2350 and DRV8323S ICs, designed to be controlled from a trajectory controller over RS-485, RS-422 or TTL UART. Features a compact high power design with two stacked PCBs.
68 parts1GPL-3.0
Questions
How big is the Trill flex base PCB?
It measures 296.5 × 175.3 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Trill flex base use?
107 parts, built around the NE5532DR-MS, TS20, AMS1117-3.3 and AMS1117-5.0. 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 Trill flex base KiCad files?
From the ryos17/forearm-guitar repository on GitHub, at the commit this page was made from: the board is pcb/trill-flex-base/REV_C2/trill-flex-base.kicad_pcb and its schematic pcb/trill-flex-base/REV_C2/trill-flex-base.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Trill flex base 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).