ESP32 Web Server With MPU6050 Presentation
ESP32 Web Server With MPU6050 Presentation
MPU6050
• An Embedded System Design Presentation
• By: Atharv, Dhanush, Yuganth
Introduction
• • Embedded System: A system designed for
specific control tasks.
• • Goal: Use ESP32 to read MPU6050 sensor
data and display on a web server.
Block Diagram
• ESP32 <--I2C--> MPU6050
• ESP32 <--Wi-Fi--> Web Browser
• Web browser shows live sensor data from
MPU6050 via ESP32.
Components Used
• • ESP32 – Microcontroller with Wi-Fi
• • MPU6050 – Accelerometer + Gyroscope
• • Web Server – Hosted on ESP32
• • Power Supply – USB or battery
Working Principle
• • MPU6050 senses motion/orientation.
• • ESP32 reads sensor data via I2C.
• • ESP32 serves this data on a local web server.
• • Users access data using a browser.
Software Tools
• • Arduino IDE – Code and Upload
• • Libraries:
• - Wire.h (I2C)
• - WiFi.h (Wi-Fi)
• - WebServer.h
• - MPU6050.h
Code Overview
• 1. Wi-Fi Setup
• 2. MPU6050 Initialization
• 3. Web Server Code
• 4. Read Sensor Data
• 5. Display Data on Webpage
Web Page Output
• • Displays Acceleration (X,Y,Z)
• • Displays Gyroscope (X,Y,Z)
• • Updated live from ESP32
Applications
• • IoT Devices
• • Gesture Control
• • Robotics
• • Fitness Trackers
Challenges & Learnings
• • Wi-Fi and I2C Setup
• • Sensor calibration
• • Web server refresh logic
• • Learned embedded integration and real-
time data streaming
Conclusion
• • Real-world example of embedded systems
• • Combines hardware (sensors, ESP32) and
software (web server)
• • Demonstrates IoT and real-time data
handling
Q&A
• Thank you!
• Any questions?