Skip to the content
2 layers40.3 × 21 mmLeft board, the printed circuit board in 3D

An open-source platform for head-mounted multimodal biofeedback in balance rehabilitation. VestiCore combines an ESP32-S3 wearable headset with dual high-frequency IMU sensors, real-time spatial audio and vibrotactile feedback, a Flutter companion app, and a Node.js data collection server.

Size
40.3 × 21 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
41
Pads
131
Tracks, vias
355, 27
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
1 Jan 2026
Updated
15 Feb 2026

Overview

Left board is an open-source printed circuit board by flof-codes, from the flof-codes/vesticore repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 40.3 × 21 mm with 20 parts on 41 nets, routed with 355 tracks and 27 vias.

It is built around the TS24CA. Its parts include 6 capacitors, 5 resistors, 5 ICs, 3 connectors and 1 switch. It belongs with the sensors and measurement and audio and music boards and the ESP32 boards of this library.

Main components

1

README

README.md

VestiCore

License: GPL-3.0 Version

An open-source platform for head-mounted multimodal biofeedback in balance rehabilitation. VestiCore combines an ESP32-S3 wearable headset with dual high-frequency IMU sensors, real-time spatial audio and vibrotactile feedback, a Flutter companion app, and a Node.js data collection server.

VestiCore headset

What VestiCore Does

VestiCore turns head orientation into real-time sound and vibration. A participant wears the headset, and the device continuously tracks head position using dual IMU sensors at 3840 Hz. When the head moves outside a configurable deadzone, the participant hears spatial audio cues (pitch, stereo balance, amplitude, timbre) and feels vibrotactile feedback guiding them back to center. Researchers configure exercises via JSON, control the device over BLE or USB Serial, and collect timestamped sensor data as CSV files.

Key strengths:

  • High-frequency dual-IMU sensor fusion at 3840 Hz with configurable complementary, Madgwick, or Mahony filters on a dedicated CPU core
  • Rich multimodal feedback with spatial audio (frequency, stereo, amplitude, timbre, pulse modulation) and dual vibrotactile motors
  • Flexible exercise configuration via comprehensive JSON schema with multi-segment exercises, adaptive deadzones, and configurable end conditions
  • Complete data pipeline from device through BLE binary streaming to app session capture and server-side CSV storage
  • Fully open-source under GPL-3.0, designed for research reproducibility

System Overview

Hardware

ComponentDetails
MCUESP32-S3 (Seeed Studio XIAO ESP32S3 Plus)
IMU Sensors2x ST LSM6DSV16X (6-axis, SPI, hardware-synced)
Audio2x MAX98357A I2S amplifiers driving bone conduction transducers
Haptics2 vibrotactile motors (PWM, 20 kHz)
CommunicationBLE 5.0 with binary streaming protocol + USB Serial (921600 baud)
PowerBattery with three-tier protection, deep sleep, power button wake

Firmware (device/)

Service-oriented C++ on ESP-IDF with a DeviceContext dependency injection container managing 18+ components. The feedback loop runs on Core 0 at 3840 Hz (timer-driven), while audio generation and BLE run on Core 1. Exercises are configured via JSON sent over BLE or Serial and support runtime parameter changes with set/get commands.

Companion App (app/)

Flutter app (iOS, Android, macOS) that connects to the device over BLE, sends exercise configurations, displays real-time orientation tracking, and captures session data including orientation, deadzone, home position, mode transitions, and console logs. Sessions are stored locally and can be uploaded to the server.

Data Server (server/)

Node.js/Express backend with TypeScript, PostgreSQL via Prisma ORM, and Docker support. Manages exercises with composite-key versioning, stores session data as CSV files on disk, and provides REST APIs for sessions, exercises, and participants.

Quick Start

bash
git clone https://github.com/flof-codes/vesticore.git
cd vesticore

Device

bash
cd device
pio run -e vesticore -t upload -t monitor

App

bash
cd app
flutter pub get
flutter run

Server

bash
cd server
npm install
cp .env.example .env       # Edit DATABASE_URL
npm run db:migrate:dev      # Required before first run
npm run dev

Device Commands

Single-word commands (available anytime):

text
calibrate       Calibrate IMUs (keep device stationary)
home            Set current orientation as home position
info            System information
get battery     Battery status
stop            Stop current exercise
status          Print current status
reset           Reset system
help            Show help

Runtime parameter commands (during exercise, except volume):

bash
set volume 0.8                                      # Master volume (anytime)
set audio.gain 1.5                                   # Dot notation
set deadzone.pitch.static.size_deg.target 2.0        # Nested parameters
set audio {"gain": 1.5}                              # JSON replacement
get audio.gain                                       # Query parameter
get all                                              # All parameters as JSON

Exercise Configuration

Exercises are defined as JSON and sent to the device. See docs/device-interface/device-config-reference.md for the complete schema.

json
{
  "protocolSchemaVersion": "1.0",
  "name": "Balance Test",
  "countdown_sec": 3,
  "home": {
    "homing_contribution_norm": 0.5,
    "adaptation_mode": "ema",
    "ema_tc_ms": 100000
  },
  "frequency": {
    "imu_sampling_hz": 3840,
    "orientation_output_hz": 100
  },
  "segments": [
    {
      "max_duration_ms": 30000,
      "audio": {
        "gain": 1.0,
        "frequency": { "inputs": [{ "axis": "pitch" }] },
        "stereo_balance": { "inputs": [{ "axis": "roll" }] },
        "amplitude": { "inputs": [{ "axis": "pitch" }, { "axis": "roll" }] }
      },
      "deadzone": {
        "shape": "ellipse",

Testing

bash
# Device
./run_all_tests.sh                # All tests
pio test -e test_native           # Unit tests (no hardware)

# App
flutter test && flutter analyze

# Server
npm test

Documentation

Device Interface

Hardware

Architecture

Platform Design

Requirements

  • Hardware: ESP32-S3 development board, 2x LSM6DSV16X IMUs, 2x MAX98357A amplifiers, bone conduction transducers, vibrotactile motors
  • Software: PlatformIO, Flutter SDK 3.8.0+, Node.js 18+, PostgreSQL 14+
  • Platforms: macOS/Linux/Windows for development; iOS/Android/macOS for the app

Roadmap

The following features are designed but not yet fully implemented. See docs/vision.md and docs/future_specs/ for details.

  • Programs framework - Composable rehabilitation sequences combining exercises, rest periods, and questionnaires into structured programs with nesting support
  • User and permission system - Manager/User roles with sharing controls (public, private, shared) and JWT authentication
  • Template system - Exercise templates with configurable fields that can be resolved at program creation or runtime
  • Analysis and charts - Built-in chart types (StandardDeviation, PhaseComparison, ImprovementSummary) for session analysis
  • Program versioning - Immutable program and exercise snapshots for research reproducibility
  • Server-side program management - Program CRUD, execution tracking, and progress persistence

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for development setup, coding standards, and the pull request process. This project follows the Contributor Covenant Code of Conduct.

Citing

If you use VestiCore in your research, please cite it:

Florian Fritz. VestiCore: An Open-Source Research Platform for Head-Mounted Multimodal Balance Feedback (Version 1.0.0). 2026. https://github.com/flof-codes/vesticore

See CITATION.cff for machine-readable citation metadata.

License

GNU General Public License v3.0 (GPL-3.0-only). See LICENSE.

Contact

Author: Florian Fritz Email: me@flof.codes

Parts

20
QtyValueFootprintReferences
4100pPCM_JLCPCB:C_0402C3, C4, C5, C6
2100kPCM_JLCPCB:R_0402R1, R5
210uPCM_JLCPCB:C_0402C2, C7
2470kPCM_JLCPCB:R_0402R2, R3
1210kPCM_JLCPCB:R_0402R4
1Board ConnectorVestiCore_lib:IDC-Header_2x05_P2.54mm_Wire_to_BoardJ3
1LSM6DSV16X LEFTPackage_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4yU4
1MAX98357A LEFTPackage_DFN_QFN:TQFN-16-1EP_3x3mm_P0.5mm_EP1.23x1.23mmU2
1MAX98357A RIGHTPackage_DFN_QFN:TQFN-16-1EP_3x3mm_P0.5mm_EP1.23x1.23mmU3
1Seed Studio ESP32S3 PlusVestiCore_lib:Seed Studio ESP32S3 PlusU1
1Speakers LeftConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1TS24CAeasyeda2kicad:SW-SMD_2P-TS24CASW1
1TSP3809K33Package_TO_SOT_SMD:SOT-23U5
1TactileConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalJ7

More from flof-codes/vesticore

1
  • 2 layers10 × 19 mmRight board, the printed circuit board in 3D

    Right board

    flof-codes/vesticore

    An open-source platform for head-mounted multimodal biofeedback in balance rehabilitation. VestiCore combines an ESP32-S3 wearable headset with dual high-frequency IMU sensors, real-time spatial audio and vibrotactile…

    6 parts2GPL-3.0

Similar boards

  • 2 layers87.9 × 98.7 mmBitdoglab smd, the printed circuit board in 3D

    Bitdoglab smd

    BitDogLab/BitDogLab

    Open-source educational hardware for embedded systems, programming, electronics, and physical computing.

    138 parts203
  • 6 layers44.5 × 36 mmDefcon-34-v3, the printed circuit board in 3D

    Defcon-34-v3

    bunnie/dc34-core-hw

    Core module hardware design

    187 parts10CERN-OHL-W-2.0
  • 4 layers33.5 × 24 mmUSBPowerMeter, the printed circuit board in 3D

    USBPowerMeter

    JunKimmmy/USBPowerMeter

    A compact USB-C passthrough power meter that displays real-time voltage, current, and power on an integrated 128×64 OLED screen.

    84 parts8
  • 4 layers82.7 × 77.8 mmGlowCorePanel, the printed circuit board in 3D

    GlowCorePanel

    LEDs-by-glowingkitty/GlowCore

    The easiest way to control your DIY LED project.

    472 parts6GPL-3.0
  • 4 layers30 × 40 mmGlowCoreMini PCB, the printed circuit board in 3D

    GlowCoreMini PCB

    LEDs-by-glowingkitty/GlowCore-Mini

    A small PCB for controlling an LED strip via USB-C or DC power. WLED compatible and with an integrated microphone for sound reactive animations!

    89 parts6GPL-3.0
  • 2 layers255.8 × 122.5 mmSplitfox, the printed circuit board in 3D

    Splitfox

    speedypotato/SplitFox-Pro

    Split-style Pro Leverless Controller

    143 parts6
  • 2 layers142.9 × 80.2 mmBifrost left, the printed circuit board in 3D

    Bifrost left

    hringdrifi/bifrost

    KiCad source files for the left half of Bifrǫst.

    66 parts5CERN-OHL-P-2.0
  • 2 layers71.4 × 75.1 mmPanel, the printed circuit board in 3D

    Panel

    cupcake08/Rift

    A 34 key column staggered split wireless keyboard with aggressive pinky stagger which supports nice!views and rotatory encoders

    356 parts4CERN-OHL-S-2.0

Questions

How big is the Left board PCB?

It measures 40.3 × 21 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Left board use?

20 parts, built around the TS24CA. 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 Left board KiCad files?

From the flof-codes/vesticore repository on GitHub, at the commit this page was made from: the board is device/hardware/left_board/left_board.kicad_pcb and its schematic device/hardware/left_board/left_board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Left board design in my own project?

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