

EPD 3D G6
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.mdEPD 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
| Component | Detail |
|---|---|
| MCU | ESP32-C6 SuperMini |
| Stepper drivers | 3× TMC2209 (STEP/DIR mode, ENN hardwired LOW on PCB) |
| Actuators | 3× micro linear bipolar stepper |
| Pressure sensors | 4× FSR (R1 1kΩ + C 100nF RC filter per channel, R2 10kΩ pull-down) |
| Display | 0.91" OLED (SSD1306, I2C) |
| Charger | TP4056 Type-C |
| Boost converter | XL6009 → 5 V system rail |
| Battery | 1S LiPo 2000–3000 mAh |
| User input | 1× momentary mode button |
| BLE | NimBLE-Arduino 2.5.0 — advertises as EPD3DG6 |
Repository structure
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.mdFirmware — operational logic
The main firmware (firmware/main/) implements a full fitting cycle driven by one button:
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| Mode | Behaviour |
|---|---|
| CONNECTED | Idle; shows battery %, BLE status on OLED |
| MEASURING | Reads all 4 FSR channels, 7-sample median filter, computes relative load fractions |
| ACTUATING | Drives each actuator inversely proportional to region load — lowest load = largest extension |
| DONE | Holds position; unplug to use insole as-is |
| HOMING | Auto-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:
{"fsr1": 42, "fsr2": 18, "fsr3": 75, "mode": "MEASURING", "batt": 67}| BLE field | Value |
|---|---|
| Device name | EPD3DG6 |
| Service UUID | 4fa0c560-78a3-11ee-b962-0242ac120002 |
| Characteristic UUID | 4fa0c561-78a3-11ee-b962-0242ac120002 (NOTIFY + READ) |
| Notify rate | ~4 Hz (every 250 ms) |
| MTU | 185 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)
| GPIO | Function |
|---|---|
| 0 | FSR1 METATARSAL (ADC, 11 dB attenuation) |
| 1 | FSR2 ARCH (ADC, 11 dB attenuation) |
| 2 | FSR3 CALCANEUS (ADC, 11 dB attenuation) |
| 3 | FSR4 AUX (ADC, 11 dB attenuation) |
| 4 | MODE_BUTTON (INPUT_PULLUP) — boot-safe |
| 5 | VBAT_SENSE (ADC1 ch5, 11 dB attenuation, 1:2 divider) |
| 6 | OLED SCL (I2C) |
| 7 | OLED SDA (I2C) |
| 14 | ACT2_DIR |
| 15 | CONN_DETECT (INPUT_PULLDOWN) |
| 16 | ACT3_STEP |
| 17 | ACT3_DIR |
| 18 | ACT2_STEP |
| 19 | ACT1_DIR |
| 20 | ACT1_STEP |
Quick start
- Flash firmware: docs/FLASH_GUIDE.md
- Install Android app: docs/ANDROID_APP_GUIDE.md
- Firmware internals: docs/FIRMWARE_MAIN.md
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | , , , , , , , , , , , , | ||
| 13 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C3, C6, C8, C9, C11, C12, C14, C15, C16, C17, C18, C19, C20 |
| 4 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R3, R5, R7 |
| 4 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R4, R6, R8 |
| 3 | 100uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C7, C10, C13 |
| 2 | 100k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R9, R10 |
| 2 | 470uF | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C2, C4 |
| 2 | BTN1 | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J30, J31 |
| 2 | PWR- | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J18, J18 |
| 1 | 10uF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C5 |
| 1 | 20 PIN TO INSOLE | Connector_PinSocket_2.54mm:PinSocket_2x10_P2.54mm_Vertical | J9 |
| 1 | ACT3_DIR | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J24 |
| 1 | ACT3_STEP | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J25 |
| 1 | BOOST_OUT+ | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J15 |
| 1 | BOOST_OUT- | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J16 |
| 1 | BTN3 | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J21 |
| 1 | BTN4 | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J22 |
| 1 | J_ESP32_L | Connector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_Vertical | J1 |
| 1 | J_ESP32_R | Connector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_Vertical | J2 |
| 1 | OLED | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J10 |
| 1 | PWR+ | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J17 |
| 1 | TMC2209_1_L | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J3 |
| 1 | TMC2209_1_R | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J4 |
| 1 | TMC2209_2_L | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J5 |
| 1 | TMC2209_2_R | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J6 |
| 1 | TMC2209_3_L | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J7 |
| 1 | TMC2209_3_R | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J8 |
The 63 most common of 67 parts.
Similar boards
- 2 layers138.1 × 114.3 mm

- 2 layers133.1 × 53.8 mm

- 2 layers160 × 100.1 mm

Ardumower mega shield svn
Ardumower/ardumower
Develop an open source robotic lawn mower (HW+SW reference platform)
67 parts282 - 2 layers65 × 56 mm

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 mm

- 2 layers51 × 30 mm

- 2 layers93.5 × 55 mm

- 2 layers58.4 × 101.6 mm

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