RehabLab is an innovative wearable solution designed to track and analyze movements during rehabilitation or training activities. It utilizes 3D gyroscope technology to accurately measure limb and joint angles, providing real-time feedback and progress tracking to ensure correct form and reduce injury risk.
- Precise Angle Measurement: Tracks joint movements with high accuracy using gyroscopic sensors
- Real-time Feedback: Alerts users when movements deviate from prescribed ranges
- Progress Tracking: Logs and visualizes rehabilitation progress over time
- Customizable Exercises: Supports personalized rehabilitation programs
- Cloud Integration: Stores data securely in Firebase for remote monitoring
- Portable Design: Compact Arduino-based module that fits in a pocket
- ESP8266 WiFi module for connectivity
- MPU-6050 6-axis gyroscope/accelerometer
- Arduino-compatible microcontroller
- LCD display (I2C interface)
- Firebase Realtime Database for cloud storage
- NTP client for accurate timestamping
- Serial communication between devices
- Data visualization dashboard (future implementation)
- Arduino IDE (v1.8.19 or later)
- ESP8266 board support package
- Required libraries:
- FirebaseESP8266
- NTPClient
- WiFiUDP
- Wire
- LiquidCrystal_I2C
- Connect the MPU-6050 gyroscope to the Arduino via I2C (SDA/SCL)
- Connect the ESP8266 module for WiFi connectivity
- Connect the LCD display via I2C (address 0x27)
-
Update WiFi credentials in
ESP_.ino:#define WIFI_SSID "your_SSID" #define WIFI_PASSWORD "your_password"
-
Configure Firebase settings:
#define FIREBASE_HOST "your_firebase_url" #define FIREBASE_AUTH "your_firebase_auth_token"
-
Set your UTC offset for accurate timekeeping:
const long utcOffsetInSeconds = 7200; // Adjust for your timezone
- Power on the device
- The system will automatically:
- Connect to WiFi
- Synchronize with NTP time server
- Initialize the gyroscope sensors
- Perform calibration movements when prompted
- Begin your rehabilitation exercises
- View real-time angle data on the LCD display
- Data is automatically uploaded to Firebase for progress tracking
The Firebase database is organized by date and time:
/DD-MM-YYYY/HH:MM:SS/
- roll: [value]
- pitch: [value]
- yaw: [value]
- WiFi Connection Issues: Ensure correct credentials and strong signal
- Firebase Errors: Verify authentication token and database rules
- Sensor Inaccuracies: Perform recalibration routine
- Serial Communication: Check baud rate (115200) and physical connections
- Mobile app integration for enhanced visualization
- Gamification elements to improve user engagement
- Multi-language support
- AI-based movement prediction and correction suggestions
This project is licensed under the MIT License - see the LICENSE file for details.