Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for ESP32 Self-Balancing Robot | MPU6050 & Motor Feedback

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

ESP32 Self-Balancing Robot | MPU6050 & Motor Feedback

An ESP32 balancing robot uses the MPU6050 to estimate tilt and commands the wheels to move the support point beneath the body.

Understand the concept

The key idea

The gyroscope responds quickly to rotation, while accelerometer readings help constrain tilt over longer intervals. Wheel motion changes the body dynamics, so timing and motor response affect whether the correction settles or grows.

What to remember

  • Tilt estimation uses complementary measurements.
  • A late or excessive wheel correction can amplify the fall.
Pause & think

Check your understanding

When the body tips forward, why do the wheels initially move forward?

Show the explanation

They move the support point toward the falling body to generate a corrective response.