Skip to the content
2 layers71.8 × 71.9 mmEPD 3D G6, the printed circuit board in 3D

Y2S2 Design Engineering Project - EPD 3D: Orthomate [SUTD Breakthough Innovation Award]

Size
71.8 × 71.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
67
Nets
35
Pads
178
Tracks, vias
548, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Apr 2026
Updated
23 Apr 2026

Overview

EPD 3D G6 is an open-source printed circuit board by lucyy05, from the lucyy05/orthomate_app repository on GitHub, published under the MIT licence. It is a 2-layer board of 71.8 × 71.9 mm with 67 parts on 35 nets, routed with 548 tracks and 0 vias.

Its parts include 21 connectors, 19 capacitors and 10 resistors. It belongs with the ESP32 boards of this library.

README

README.md

EPD 3D G6 — Orthomate

Battery-powered adaptive orthopedic insole controller. Redistributes plantar pressure in real-time using three micro linear stepper actuators driven by force sensor feedback. Includes a BLE companion Android app for live monitoring.

Hardware at a glance

ComponentDetail
MCUESP32-C6 SuperMini
Stepper drivers3× TMC2209 (STEP/DIR mode, ENN hardwired LOW on PCB)
Actuators3× micro linear bipolar stepper
Pressure sensors4× FSR (R1 1kΩ + C 100nF RC filter per channel, R2 10kΩ pull-down)
Display0.91" OLED (SSD1306, I2C)
ChargerTP4056 Type-C
Boost converterXL6009 → 5 V system rail
Battery1S LiPo 2000–3000 mAh
User input1× momentary mode button
BLENimBLE-Arduino 2.5.0 — advertises as EPD3DG6

Repository structure

text
orthomate/
├── Electronics Reference.txt   # Hardware design spec (v6.0)
├── BOM.txt                     # Bill of materials
├── firmware/
│   ├── main/                   # Full operational firmware (PlatformIO)
│   │   ├── platformio.ini
│   │   └── src/main.cpp
│   ├── ARDUINO IDE APP TEST/   # Minimal Arduino IDE sketch for BLE app testing
│   │   └── sketch_apr14a/sketch_apr14a.ino
│   ├── stepper_test/           # Single-axis stepper back-and-forth smoke test
│   ├── homing_test/            # Blind homing: retract to min, extend to 12 mm
│   ├── button_test/            # Button + OLED input test
│   └── oled_test/              # OLED display test
├── android_app/                # Kotlin/Compose BLE companion app
│   ├── app/src/main/java/com/epd3dg6/bleapp/MainActivity.kt
│   └── app/src/main/AndroidManifest.xml
├── kicad pcb/                  # KiCad schematic + layout files
├── drill files/                # Gerber drill files (latest PCB)
└── docs/
    ├── FIRMWARE_MAIN.md        # Detailed firmware walkthrough
    ├── FLASH_GUIDE.md          # PlatformIO build & upload instructions
    ├── ANDROID_APP_GUIDE.md    # Android app build & sideload instructions
    └── TMC2209_CURRENT_TUNING.md

Firmware — operational logic

The main firmware (firmware/main/) implements a full fitting cycle driven by one button:

text
DISCONNECTED ──[plug in]──► CONNECTED ──[btn]──► MEASURING
                                                      │ (auto)
                                                  MEASURED ──[btn]──► ACTUATING
                                                                           │ (auto)
                                                                         DONE ──[unplug]──► DISCONNECTED
                                                                         (insole retains shape)

On next plug-in with actuators extended:  DISCONNECTED ──► HOMING ──► CONNECTED
ModeBehaviour
CONNECTEDIdle; shows battery %, BLE status on OLED
MEASURINGReads all 4 FSR channels, 7-sample median filter, computes relative load fractions
ACTUATINGDrives each actuator inversely proportional to region load — lowest load = largest extension
DONEHolds position; unplug to use insole as-is
HOMINGAuto-triggered on reconnect when actuators are extended; retracts all to home

Extension formula: $ext_i \propto (1 - r_i)$ where $r_i = F_i / \sum F$

BLE — Android companion app

The ESP32 advertises a GATT service and notifies a JSON payload at ~4 Hz:

json
{"fsr1": 42, "fsr2": 18, "fsr3": 75, "mode": "MEASURING", "batt": 67}
BLE fieldValue
Device nameEPD3DG6
Service UUID4fa0c560-78a3-11ee-b962-0242ac120002
Characteristic UUID4fa0c561-78a3-11ee-b962-0242ac120002 (NOTIFY + READ)
Notify rate~4 Hz (every 250 ms)
MTU185 bytes

The Android app (android_app/) displays real-time FSR forces as animated colour circles, current mode, battery %, and BLE status. See docs/ANDROID_APP_GUIDE.md for build and install instructions.

GPIO assignment (ESP32-C6 SuperMini, Hardware Ref v6.0)

GPIOFunction
0FSR1 METATARSAL (ADC, 11 dB attenuation)
1FSR2 ARCH (ADC, 11 dB attenuation)
2FSR3 CALCANEUS (ADC, 11 dB attenuation)
3FSR4 AUX (ADC, 11 dB attenuation)
4MODE_BUTTON (INPUT_PULLUP) — boot-safe
5VBAT_SENSE (ADC1 ch5, 11 dB attenuation, 1:2 divider)
6OLED SCL (I2C)
7OLED SDA (I2C)
14ACT2_DIR
15CONN_DETECT (INPUT_PULLDOWN)
16ACT3_STEP
17ACT3_DIR
18ACT2_STEP
19ACT1_DIR
20ACT1_STEP

Quick start

Design rules

  • Charging and actuator operation are mutually exclusive — never simultaneous.
  • Never start all 3 motors simultaneously — stagger motor starts by 75 ms.
  • Sample FSRs only when motors are idle; use 7-sample median filtering with 4 ms settling per sample.
  • ADC attenuation must be set to 11 dB (ADC_11db) on all analog pins for correct readings at the operating voltage range.
  • VBAT < 3.35 V → disable actuators; VBAT < 3.5 V → show low battery warning.
  • OLED updates are content-cached — only redraws when text changes (prevents I2C writes during motor current spikes).

License

MIT — see LICENSE

Parts

67
QtyValueFootprintReferences
13, , , , , , , , , , , ,
13100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC3, C6, C8, C9, C11, C12, C14, C15, C16, C17, C18, C19, C20
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3, R5, R7
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R4, R6, R8
3100uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC7, C10, C13
2100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR9, R10
2470uFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC2, C4
2BTN1Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ30, J31
2PWR-Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ18, J18
110uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC5
120 PIN TO INSOLEConnector_PinSocket_2.54mm:PinSocket_2x10_P2.54mm_VerticalJ9
1ACT3_DIRConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ24
1ACT3_STEPConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ25
1BOOST_OUT+Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ15
1BOOST_OUT-Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ16
1BTN3Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ21
1BTN4Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ22
1J_ESP32_LConnector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_VerticalJ1
1J_ESP32_RConnector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_VerticalJ2
1OLEDConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ10
1PWR+Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ17
1TMC2209_1_LConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ3
1TMC2209_1_RConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ4
1TMC2209_2_LConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ5
1TMC2209_2_RConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ6
1TMC2209_3_LConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ7
1TMC2209_3_RConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ8

The 63 most common of 67 parts.

Similar boards

  • 2 layers138.1 × 114.3 mmSilakka54, the printed circuit board in 3D

    Silakka54

    Squalius-cephalus/silakka54

    54-key column staggered split keyboard

    67 parts638MIT
  • 2 layers133.1 × 53.8 mmELEC PANEL, the printed circuit board in 3D

    ELEC PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    67 parts431
  • 2 layers160 × 100.1 mmArdumower mega shield svn, the printed circuit board in 3D

    Ardumower mega shield svn

    Ardumower/ardumower

    Develop an open source robotic lawn mower (HW+SW reference platform)

    67 parts282
  • 2 layers65 × 56 mmZpui shld wg12864b, the printed circuit board in 3D

    Zpui shld wg12864b

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    67 parts253GPL-3.0
  • 2 layers138.1 × 89.7 mmTPS42, the printed circuit board in 3D

    TPS42

    crehmann/TPS42

    An ergonomic split keyboard with TrackPoint support

    67 parts236
  • 2 layers51 × 30 mmPicociaa, the printed circuit board in 3D

    Picociaa

    ciaa/Hardware

    Hardware de la CIAA

    67 parts216
  • 2 layers93.5 × 55 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    67 parts208
  • 2 layers58.4 × 101.6 mmDual VCA #2 Main, the printed circuit board in 3D

    Dual VCA #2 Main

    mzuelch/CATs-Eurosynth

    Analog Synth Eurorack Modules

    67 parts166MIT

Questions

How big is the EPD 3D G6 PCB?

It measures 71.8 × 71.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the EPD 3D G6 use?

67 parts. 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 EPD 3D G6 KiCad files?

From the lucyy05/orthomate_app repository on GitHub, at the commit this page was made from: the board is Controller PCB KiCad Files/EPD 3D G6/EPD 3D G6.kicad_pcb and its schematic Controller PCB KiCad Files/EPD 3D G6/EPD 3D G6.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the EPD 3D G6 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).