A unique IoT-enabled fitness tracking system delivering real-time feedback on step count, ambient temperature, and humidity—using Arduino, sensors, and LCD display. Designed for athletes and fitness enthusiasts to monitor both activity and environmental conditions with high accuracy.
This project implements an IoT-based personal fitness trainer using Arduino Uno, combining accelerometer-based step tracking and environmental monitoring (temperature, humidity) on a single platform. The system provides accurate, real-time information to help users optimize their workouts and avoid hazardous conditions.
Online Simulation (Try it now!)
This project was fully developed and tested using the Wokwi online Arduino simulator, making it easy for anyone to run, share, and experiment with the design—even without real hardware.
- Open the project in Wokwi simulator
- View, run, and modify the simulation instantly online.
- Real-Time Step Counting: Accurately tracks steps using the MPU6050 accelerometer.
- Environmental Monitoring: Measures ambient temperature and humidity via DHT22 sensor.
- LCD Display: Real-time feedback on all metrics (steps, temperature, humidity).
- Peak Detection: Intelligent algorithm to detect steps based on accelerometer data.
- Instant Alerts: Displays warnings when temperature or humidity changes, supporting safer exercise.
- Scalable Design: Easily extendable for further metrics (heart rate, calories, etc).
- Arduino Uno (or compatible)
- MPU6050 Accelerometer (3-axis, I2C)
- DHT22 Temperature & Humidity Sensor
- LCD Display (20x4 I2C)
- Half Breadboard
- Wires & Jumper Cables
Add your circuit diagram in the images/ folder and link it here.
All code is provided in the code/arduino_personal_fitness_trainer.ino file.
Key features:
- Integrates step detection and environmental data acquisition.
- Displays updated values and step count on LCD.
- Provides alerts on significant environment changes.
- Modular, well-commented, and easy to expand.
- Connect the MPU6050 to Arduino I2C pins (SDA, SCL).
- Connect the DHT22 to digital pin 13.
- Connect the LCD (I2C, address
0x27) to appropriate I2C pins. - Use breadboard and wires for stable connections.
- Install Arduino IDE.
- Install libraries:
DHT,LiquidCrystal_I2C,Adafruit_MPU6050,Adafruit_Sensor - Load
code/arduino_personal_fitness_trainer.inointo the IDE. - Upload the code to Arduino Uno.
- LCD displays live data: steps, temperature, humidity.
- As you move, the step count increases in real time.
- If ambient temperature or humidity changes, you get an instant alert on the LCD.
- Monitor your physical activity and environment simultaneously for optimized and safe workouts.
Below are sample screenshots demonstrating the real-time output displayed on the LCD:
| Path | Description |
|---|---|
code/ |
Arduino source code (.ino) |
images/ |
Circuit diagrams, LCD screenshots |
README.md |
This file |
LICENSE |
License (default MIT) |
This project is licensed under the MIT License.


