PCB Insole Design


Created a project, 2 project docs
Parkinson Gait Monitor - Insole Sensor
Thin in-shoe sensor PCB with four FSR voltage dividers, MPU-6050 motion sensing, and an 8-conductor cable interface to the ankle hub.

Project Specification

View Document

Project Specification Design Summary
Status: Draft / Review / Approved
Manufacturing target: Prototype / EVT / DVT / PVT / Production
Software / firmware: repository link
Scope
Purpose
In scope
Out of scope
System context Requirements Functional Electrical Mechanical / environmental Key constraints Dependencies and risks

Power Budget

View Document

Power Budget
Preliminary architecture: one-cell LiPo powers the Seeed XIAO ESP32S3 Sense through its documented battery input. The XIAO's regulated 3.3 V output powers the ADS1115, insole MPU-6050 breakout, FSR dividers, status LED, and microSD interface where compatible. Final current figures and battery-life estimates will be updated after exact library modules are selected.
Design constraint: size battery and cable for ESP32-S3 radio current peaks plus microSD write peaks; do not treat average sensor current as the power-path requirement.
Created the two-board project structure:
  • Renamed the current project to Parkinson Gait Monitor – Ankle Hub
  • Created Parkinson Gait Monitor – Insole Sensor
  • Added Project Specification and preliminary Power Budget documents to the ankle-hub project
  • The insole schematic executor completed its task, but I could not inspect and verify its final report
  • The ankle-hub schematic executor was still working when execution stopped
Still required:
  • Review both schematics and resolve any ERC/connectivity issues
  • Confirm exact parts, connector pinout, GPIO mapping, I²C pull-up loading, and BOM
  • Agree on the mechanical PCB setup—especially rigid segmented versus flex construction for the insole
  • Size, place, and route both boards
  • Run final DRC and confirm zero airwires
  • Prepare manufacturing outputs
Execution stopped because your ACUs ran out.
"Ankle Hub Schematic" completed.
The Ankle Hub Schematic executor completed, but I could not access its report or inspect the resulting schematic during this session. Therefore, its electrical correctness, connector mapping, ERC status, and compatibility with the insole board remain unverified; no additional project changes were made.
Execution stopped because your ACUs ran out.

Waiting for input


No schematic drawn yet

Your and are available in the table tabs. Ask Flux to draw the schematic, or draw it yourself.

Firmware Getting Started
Toolchain
  • Arduino IDE or PlatformIO with the Espressif ESP32 Arduino core.
  • Board target: XIAO_ESP32S3.
  • Libraries: Adafruit_ADS1X15, Adafruit_MPU6050 (or chosen MPU-6050 library), SD, SPI, and Wire.
Pin Map

Table


FunctionXIAO pinGPIO
microSD CSD01
status LEDD12
I2C SDAD45
I2C SCLD56
SPI SCKD87
SPI MISOD98
SPI MOSID109
GPIO3/D2 is intentionally unused because it is an ESP32-S3 strapping pin.
Peripheral Addresses
  • ADS1115: 0x48 with ADDR tied to GND.
  • Remote MPU-6050: 0x68 if AD0 low, 0x69 if AD0 high.
Arduino Initialization Skeleton

Cpp


#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <Adafruit_ADS1X15.h>

constexpr int PIN_SD_CS = 1;
constexpr int PIN_LED   = 2;
constexpr int PIN_SDA   = 5;
constexpr int PIN_SCL   = 6;
constexpr int PIN_SCK   = 7;
constexpr int PIN_MISO  = 8;
constexpr int PIN_MOSI  = 9;

Adafruit_ADS1115 ads;

void setup() {
  pinMode(PIN_LED, OUTPUT);
  digitalWrite(PIN_LED, LOW);

  Wire.begin(PIN_SDA, PIN_SCL);
  Wire.setClock(400000); // reduce to 100 kHz if cable integrity requires it

  if (!ads.begin(0x48, &Wire)) {
    // signal ADC fault
  }

  SPI.begin(PIN_SCK, PIN_MISO, PIN_MOSI, PIN_SD_CS);
  pinMode(PIN_SD_CS, OUTPUT);
  digitalWrite(PIN_SD_CS, HIGH);
  if (!SD.begin(PIN_SD_CS, SPI)) {
    // signal SD fault
  }
}
FSR Channel Map

Cpp


int16_t heel       = ads.readADC_SingleEnded(0);
int16_t midfoot    = ads.readADC_SingleEnded(1);
int16_t forefoot   = ads.readADC_SingleEnded(2);
int16_t metatarsal = ads.readADC_SingleEnded(3);
Select ADS1115 gain so the expected FSR divider voltage remains inside both the ADS1115 full-scale range and the 0-3.3 V powered-input limit.
  1. Configure status LED off.
  2. Start I2C and scan for 0x48 plus the chosen MPU-6050 address.
  3. Initialize ADS1115 gain and data rate.
  4. Start SPI and mount the SD filesystem.
  5. Create/open a log file and write a header.
  6. Start periodic sampling.
  7. Buffer records and flush in batches.
  8. Use short LED pulses for status rather than continuous illumination.
Suggested Log Record

Text


timestamp_ms,heel,midfoot,forefoot,metatarsal,ax,ay,az,gx,gy,gz
Power-Aware Operation
Keep radio use optional, avoid camera/microphone initialization when not needed, use ADS1115 single-shot conversions where suitable, and batch SD writes to improve battery runtime.
  • Toolchain

  • Pin Map

  • Peripheral Addresses

  • Arduino Initialization Skeleton

  • FSR Channel Map

  • Recommended Startup Sequence

  • Suggested Log Record

  • Power-Aware Operation