Skip to the content
2 layers296.5 × 175.3 mmTrill flex base, the printed circuit board in 3D

Trill flex base

ryos17/forearm-guitar

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

12

README

README.md

Forearm 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

text
forearm-guitar/
├── firmware/   Arduino firmware for the XIAO nRF52840
├── patches/    Surge XT synth patches ("Forearm Guitar" user area)
└── pcb/         KiCad hardware design files + fab outputs

firmware/

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 a mux_ts20_finder utility 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:

  1. Add the Seeed board package. In Preferences → Additional Boards Manager URLs, add:

    text
    https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
  2. 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).

  3. 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.

  4. 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:

text
patches/Forearm Guitar/
└── Patches/
    ├── Clean/        Lush, Sine
    ├── Distortion/   Default Lead, Rampage
    ├── FX/           Computer Language, Ritual, Water
    └── Pad/          Blue Pad, Slow Mono, Sparkle Mountain

The 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:

  1. Open Surge XT.
  2. In the top menu (gear/wrench icon), choose Set Custom User Data Path….
  3. Select the patches/Forearm Guitar folder from this repo (the one containing the Patches/ subfolder).
  4. Back in the menu, choose Refresh Patch List (or restart Surge).
  5. 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 at Forearm 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

  1. Power the controller over USB, or pair it over Bluetooth LE (BLE-MIDI build).
  2. In your DAW (or a standalone Surge XT instance), select the Forearm Guitar as the MIDI input.
  3. Load a patch — playing the touch frets sends notes; wrist motion drives the mapped CCs.

Parts

107
QtyValueFootprintReferences
1110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R8, R9, R14, R15, R22, R23, R25, R26, R27, R28
9TS20Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ11, J12, J13, J14, J15, J16, J17, J18, J19
8MountingScrewMountingHole:MountingHole_3.2mm_M3_PadH1, H2, H3, H4, H5, H11, H12, H13
50.1uFResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderC7, C8, C9, C13, C18
54.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR31, R32, R33, R34, R35
5TAJA106K016RNJeli_custom_footprints:TAJA106K016RNJC5, C6, C10, C11, C19
40RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR38, R39, R41, R42
410uFResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderC14, C15, C16, C17
4220RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR16, R17, R18, R19
4430450212eli_custom_footprints:CONN-TH_430450212CN1, CN2, CN3, CN4
30.1uCapacitor_SMD:C_0402_1005MetricC4, C20, C21
347kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR24, R30, R36
3KT-0805YLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD8, D11, D12
3PJ313Deli_custom_footprints:AUDIO-TH_PJ313DJ5, J6, J7
2100RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR20, R21
210keli_custom_footprints:RES-ADJ-SMD_L13.2-W3.0_RS08U111Z001RV8, RV9
21kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR12, R13
24.7nFResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderC3, C12
2470Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6, R11
2MountingScrewMountingHole:MountingHole_3.2mm_M3H6, H7
2NE5532DReli_custom_footprints:SOIC-8_L5.0-W4.0-P1.27-LS6.0-BLU8, U9
2TS20eli_custom_footprints:TSSOP-28_L9.7-W4.4-P0.65-LS6.4-BLU5, U11
2onboard_senseConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ10, J20
10RResistor_SMD:R_0603_1608MetricR40
1593eli_custom_footprints:BAT_593BT1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U7
1AMS1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U6
1AO3400APackage_TO_SOT_SMD:SOT-23Q1
1F0502-B-32-15T-Reli_custom_footprints:FPC-SMD_32P-P0.50-L6.1-W20.4_XFCN-F0502J4
1GTR_Fretboard_25.5in_22F_FixedWidtheli_custom_footprints:GTR_Fretboard_25.5in_22F_FixedWidth_DwgsUserFB1
1KT-0805GLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD9
1KT-0805RLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD10
1MountingScrewMountingHole:MountingHole_2.2mm_M2H8
1PJ-623A3-Geli_custom_footprints:AUDIO-TH_XKB_PJ-623A3-GU2
1Power In DANGERConnector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ9
1Power OutConnector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ8
1SS34Diode_SMD:D_SMAD6
1TCA9548APWRPackage_SO:TSSOP-24_4.4x7.8mm_P0.65mmU3
1TS-1187A-B-A-Beli_custom_footprints:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL_H1.5U4
1XIAO-nRF52840-DIPeli_custom_footprints:XIAO-nRF52840-DIPU10
1i2c_displayConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ21

More from ryos17/forearm-guitar

1
  • 2 layers94.5 × 57.6 mmTrill flex slider, the printed circuit board in 3D

    Trill flex slider

    ryos17/forearm-guitar

    Guitar in a form factor of a forearm strap!

    4 partsMIT

Similar boards

  • 4 layers25.4 × 75 mmFiit esp32-kit pcb, the printed circuit board in 3D

    Fiit esp32-kit pcb

    999matej999/fiit-esp32-kit

    FIIT ESP32 Kit

    81 partsGPL-3.0
  • 2 layers35.6 × 106.7 mmSignal head dense, the printed circuit board in 3D

    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 mmController Tv Lift, the printed circuit board in 3D

    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 mmFish pi, the printed circuit board in 3D

    Fish pi

    CXJ007/fish_pi

    全志H3的一个小项目

    214 parts5
  • 4 layers54 × 32.5 mmUltraTalker, the printed circuit board in 3D

    UltraTalker

    amundgr/batled

    63 parts
  • 2 layers121 × 75.5 mmJlctest, the printed circuit board in 3D

    Jlctest

    cjheath/jlcbasic

    JLC Basic parts library for Kicad fetched and converted from EasyEDA

    46 parts5
  • 2 layers140 × 105.5 mmRECUV02, the printed circuit board in 3D

    RECUV02

    TsunaHalo2001/RECUV

    Codigos de las estaciones meteorologicas del grupo GISMODEL

    77 parts2
  • 4 layers72.5 × 39.7 mmFOC RP2350, the printed circuit board in 3D

    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).