StrideMate is a wearable lower-limb exoskeleton prototype that helps with walking. Each leg has its own ESP32 with a distance sensor, a motion sensor and a motor. The two boards talk over Wi-Fi, and a phone dashboard shows live data and lets you set how much the motors help.
Status: complete and on hold (October 2026). This was my M.Tech project at IIT Hyderabad, which has finished. The firmware compiles (see the badge above); the open points are listed under Project status below.
Warning
Research prototype, not a medical device. It hasn't been clinically validated or certified. Never test it on a person without supervision.
👉 If you are about to work on this, read BEFORE-YOU-FLASH-THIS.md first.
It is the honest state of the project: what is measured, what is guessed, and what has never been switched on. Then docs/safety.md before powering the motors.
New to the code? Start with GUIDE.md, a plain-English tour of how it works and where to make changes.
| Controllers | 2 × ESP32 (one per leg), linked over Wi-Fi |
| Sensing | VL53L1X time-of-flight distance sensor + MPU6050 accelerometer/gyroscope on each leg |
| Actuation | Windshield-wiper DC motors driven by BTS7960-style H-bridges |
| Structure | CNC-machined aluminium thigh links, 3D-printed housings (CAD files) |
| Weight / cost | Under 4 kg · prototype about ₹15–18k (target retail about ₹40,000) |
| Interface | Phone web dashboard (no app, no internet needed): live data, motor load, assist strength, sensitivity, motor enable, STOP |
| Updates | Password-protected over-the-air (OTA) firmware updates |
flowchart LR
subgraph R["Right leg ESP32 (10.210.60.121)"]
RT[VL53L1X ToF] --> RC[Assist controller]
RM[MPU6050] --> RC
RC --> RD[H-bridge + motor]
RW[Web dashboard]
end
subgraph L["Left leg ESP32 (10.210.60.122)"]
LT[VL53L1X ToF] --> LC[Assist controller]
LM[MPU6050] --> LC
LC --> LD[H-bridge + motor]
end
P((Phone browser)) <-- "dashboard, sliders, STOP" --> RW
R <-- "GET /data every 100 ms<br/>GET /set (settings)" --> L
- The distance sensor measures a distance (in mm) that changes as the leg moves. The firmware filters it and works out how fast it's changing (the velocity).
- When the distance is between 50 and 450 mm and the velocity is above the sensitivity threshold, the motor gets a command:
duty = 80 + 2.5 × |velocity|^1.5. That value is capped at the assist strength, capped again by the remaining thermal budget, and smoothed so the motor ramps up gently.Since v1.3.0 the default is the proportional curve (
ASSIST_CURVE_MODE 1): velocity in mm/s, rising evenly across the speed range. The original per-sample curve is still available as mode 0. how-it-works.md has the numbers. - The sign of the velocity sets the motor direction.
- The right leg hosts the dashboard and passes your settings on to the left leg.
Full details: docs/how-it-works.md.
firmware/
right_leg/ Right-leg ESP32 firmware + dashboard (maintained)
left_leg/ Left-leg ESP32 firmware (reconstructed, untested)
original/
right_leg_original/ Prototype code exactly as handed over (Wi-Fi password removed)
docs/
getting-started.md Install, configure, flash, first run
hardware.md Components and wiring (pin map)
how-it-works.md Control algorithm and parameters
api.md HTTP endpoints of both boards
safety.md Safety features and first-test checklist
changes-from-original.md What changed from the prototype code, and why
- Install the Arduino IDE, the esp32 by Espressif board package (version 3.x) and the Adafruit VL53L1X library.
- In each firmware folder, copy
secrets.example.htosecrets.hand fill in your Wi-Fi name, password and keys.secrets.his never uploaded to GitHub. - Open
firmware/right_leg/right_leg.ino, select ESP32 Dev Module and upload. Do the same forfirmware/left_leg/left_leg.inoon the second board. - Connect your phone to the same Wi-Fi and open http://10.210.60.121/. Log in with the dashboard user and password from
secrets.h. - The motors start disabled. Tap Enable motor only when the device is fitted and safe.
Step-by-step guide: docs/getting-started.md.
- ✅ Working prototype built (mechanics + electronics + dashboard).
- ✅ Right-leg firmware cleaned up, secured and compile-checked (see changes).
- ✅ Safety and security review applied: sensor-gap re-seeding, velocity clamp, H-bridge enables dropped on stop, I²C timeouts, control-loop watchdog, POST + same-origin on control endpoints.
⚠️ Left-leg firmware is reconstructed. The original wasn't available, so it hasn't been tested on hardware yet.⚠️ The refactored right-leg firmware compiles but hasn't been re-tested on the physical device.⚠️ Thermal fold-back ships off (THERMAL_PROTECTION false): the constants are simulated, not measured. The load estimate still runs and shows on the dashboard so you can calibrate it. See docs/safety.md.- ✅ Gyro and accelerometer fused for tilt (
USE_GYRO_FUSION). - ✅ Firmware support written for motor current sensing and motor-pack voltage. Both ship disabled, waiting on the wiring. See the open issues.
- 🔜 Possible next steps: detect gait phases, log sessions, settle
ASSIST_CURVE_MODE.
The hardware is at IIT Hyderabad, with B Dileep Kumar
(@Dileep195). The open issues labelled
needs-bench-test and hardware stay open because they need the physical
device: the software half of each is written and ships disabled, and what
remains is wiring, measuring and flashing.
Anyone continuing from there is doing their own work on it and holds the copyright in what they write. See NOTICE.md.
- Falak Ameesh Patel (@falakpat3l): co-founder. Product, clinical research and mechanical design.
- B Dileep Kumar (@Dileep195): co-founder, technical lead. Wrote the original electronics and firmware.
- Mechanical CAD (Fusion 360 / STEP / STL): falakpat3l/Stridemate_3D_files_IITH
Released under the PolyForm Noncommercial License 1.0.0: free for personal, research, educational, charitable and government use; commercial use needs a separate licence. For one, contact the copyright holder.
This is not an OSI-approved open-source licence, because no OSI-approved licence restricts commercial use.
original/is B Dileep Kumar's work and his copyright. NOTICE.md records what is still outstanding on that.
Mechanical CAD lives in Stridemate_3D_files_IITH under CC BY-NC-SA 4.0.