The problem
Physiotherapy lives or dies on compliance and measurement: did the patient actually do the exercises, through the full range, holding each rep long enough? Today the answer is a paper diary and the therapist's eye — subjective, unverifiable, and blind between appointments. Meanwhile a six-axis IMU costing a few hundred rupees can measure limb angle continuously. This project straps an MPU6050 to the limb, fuses its accelerometer and gyroscope with a complementary filter on an ESP32, and streams the resulting joint angle to a dashboard: live dial, rep counter with hold-time checking against a therapist-set target band, per-session logging, and a progress view that plots max pain-free range of motion across weeks. It is explicitly an educational prototype — a final-year build demonstrating sensor fusion, embedded streaming and health-adjacent IoT — not a certified medical device, and the report and every page state that boundary plainly. For the viva, the interesting material is all real: why the accelerometer alone drifts, why the gyro alone wanders, and how the filter marries them.
Wears the strap-mounted IMU and performs the prescribed exercise.
Follow the working sequence
How it works
- The MPU6050 on the limb strap streams accelerometer and gyroscope data at 100 Hz to the ESP32 over I2C.
- A 3-second stillness capture at session start measures and subtracts gyro bias (drift correction).
- The complementary filter fuses the two: the accelerometer gives a drift-free gravity reference, the gyroscope gives fast response; blended 98/2 into a stable joint angle.
- The firmware detects rep peaks from the angle signal, times how long each rep holds inside the therapist's target band, and streams angle + rep events at 10 Hz over Wi-Fi.
- The dashboard renders the live dial, rep counter, target-band bar and session timer; completed sessions append to the log with max ROM and hold quality.
- The progress view aggregates sessions into the ROM trend chart and the weekly PDF export.
- The report's test procedure has the buyer verify angle accuracy against a protractor/goniometer at known positions — expected ±2–3° after calibration, measured on their own build.
Tech stack:
- MPU6050 6-axis IMU (accelerometer + gyroscope, I2C)
- ESP32 DevKit (Arduino-core firmware: complementary filter, rep detection, Wi-Fi streaming)
- Elastic limb strap mount with sensor housing
- Complementary filter sensor fusion (98/2 accel/gyro blend)
- Wi-Fi telemetry to local dashboard (no cloud)
- Single-file HTML/CSS/JS dashboard (live session + progress views)
- Weekly PDF session-summary export
| Parameter | Value |
|---|---|
| IMU | MPU6050, 6-axis, I2C, 100 Hz sampling |
| Fusion | Complementary filter, 98/2 accel/gyro blend |
| Angle accuracy | ±2–3° expected after calibration (buyer-verified vs goniometer) |
| Streaming | 10 Hz angle + rep events over Wi-Fi (local network) |
| Calibration | 3 s stillness gyro-bias capture per session |
| Rep detection | Peak detection with configurable target band + hold time |
| Exercises | 4 presets (shoulder, elbow, knee, hip), all editable |
| Logging | Per-session max ROM, reps, hold compliance, timestamps |
| Export | Weekly PDF summary for appointments |
| Classification | Educational prototype — NOT a medical device |
Project features
- [Live joint-angle tracking] MPU6050 accelerometer + gyroscope fused by a complementary filter (98/2 blend) into a continuous joint angle, streamed at 10 Hz to the dashboard dial.
- [Rep counting with hold check] Reps are detected from angle peaks; each rep's hold time inside the target band is checked — the "hold quality" metric therapists actually care about.
- [Therapist-set target bands] Target range (e.g. 70–90° for shoulder abduction) and hold time are configurable per exercise; the dial's green band shows the patient exactly where to be.
- [Session logging] Every session records max ROM, rep count, hold compliance and timestamps; the progress view charts max pain-free ROM across sessions with the therapist's milestone line.
- [Calibration routine] A 3-second stillness capture at session start zeroes gyro bias; the guide documents the expected ±2–3° accuracy after calibration — enough for rehab trends, not clinical diagnosis.
- [Exercise presets] Shoulder abduction, elbow flexion, knee extension and hip abduction presets with sensible default bands, all editable.
- [Weekly PDF summary] Per-session max ROM, rep counts, hold compliance and missed-session flags export as the weekly summary a patient carries to appointments.
- [Local-network privacy] All data stays on the local network; nothing is uploaded anywhere — stated explicitly for the viva's inevitable data question.
What is included
- Complete ESP32 firmware (IMU driver, complementary filter, calibration, rep detection, streaming)
- Strap-mount build guide (sensor housing, strap fitting, placement per exercise)
- Dashboard web app (live session + progress views)
- Calibration and accuracy-verification procedure (protractor/goniometer method)
- Project report PDF (background, sensor-fusion theory, system design, test procedure)
- PPT presentation for final review
- Viva Q&A preparation document (IMU principles, complementary vs Kalman filter, drift, calibration, rep detection)
- Setup guide (assembly, Wi-Fi provisioning, first session)
Limitations & prerequisites
- This is an educational prototype, not a medical device: it has no clinical certification and must never be presented as diagnostic or therapeutic equipment. It does not replace professional physiotherapy guidance.
- Expected accuracy is ±2–3° after calibration — fine for tracking rehab trends, not for clinical diagnosis or surgical planning.
- The IMU measures the strap's orientation, not the true anatomical joint angle: strap slip, soft-tissue movement and misplacement all add error the report discusses honestly.
- Magnetometer-free: heading/yaw is not tracked, only the fused pitch/roll-style joint angle — sufficient for the listed exercises.
- Single-joint tracking per build; multi-joint sessions need one unit per limb segment.
Frequently Asked Questions
How is the joint angle actually computed?
The MPU6050 streams accelerometer and gyroscope data at 100 Hz. The accelerometer gives a drift-free gravity reference but is noisy during motion; the gyroscope responds fast but its bias wanders. The complementary filter blends them 98/2 into a stable angle — the classic teaching example of sensor fusion.
How accurate is it?
Expected ±2–3° after the per-session calibration, verified by the buyer against a protractor or goniometer at known positions. That is enough to track rehab trends (is the range improving week to week?) but not for clinical diagnosis.
What does the calibration do?
A 3-second stillness capture at the start of each session measures the gyroscope's current bias and subtracts it — this is the drift correction. Without it, the angle would slowly wander even when the limb is still.
How are reps counted?
The firmware detects peaks in the angle signal as reps, and times how long each rep stays inside the therapist's target band — the hold-quality metric. A fast partial swing counts as a rep but scores poor hold quality.
Where does the data go?
Nowhere off the local network: the ESP32 streams to the dashboard over Wi-Fi and everything stays local. The weekly PDF summary is generated for the patient to carry to appointments.
Is this project suitable for a final-year project?
Yes — for Electronics, IoT and Biomedical-adjacent programs. It demonstrates IMU interfacing, sensor fusion, embedded signal processing, Wi-Fi telemetry and honest medical-adjacent scoping, all strong viva material. Suitable for B.E./B.Tech final-year projects in Electronics, IoT and Biomedical-adjacent programs.
Components & software requirements
- MPU6050 6-axis IMU (accelerometer + gyroscope, I2C)
- ESP32 DevKit (Arduino-core firmware: complementary filter, rep detection, Wi-Fi streaming)
- Elastic limb strap mount with sensor housing
- Complementary filter sensor fusion (98/2 accel/gyro blend)
- Wi-Fi telemetry to local dashboard (no cloud)
- Single-file HTML/CSS/JS dashboard (live session + progress views)
- Weekly PDF session-summary export
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.