Skip to content
Trending eventPast event

Developer open-sources ESP32 stepper-motor self-balancing robot code

1 reports1 sources12 days agoUpdated

What happened

AI overview

Developer /u/XA_Mechatronics has published the project and source code for their self-built self-balancing robot on Reddit r/robotics. The robot uses an ESP32 as the main controller, paired with 2 NEMA 17 stepper motors, 2 DRV8825 drivers and an MPU6050, running at 16× microstepping; the balancing algorithm uses the MPU6050 to estimate angle, PID control, and generates step pulses through hardware timer interrupts and direct GPIO register access. The project also includes wireless control and a web interface for adjusting PID parameters and angle offset, with reference to YARB and B-ROBOT EVO2. The developer says it has been tested on two body sizes and is satisfied with the current results.

AI 根据报道生成 · 12 days ago更新

Reporting timeline

Follow the reporting to explore different perspectives.

11月17日
  1. Reddit r/robotics
    Open-source self-balancing robot project built with ESP32 and NEMA 17 stepper motors

    A developer built a self-balancing robot using an ESP32, 2 NEMA 17 stepper motors, 2 DRV8825 drivers, and an MPU6050, and released the source code. The robot runs at 16× microstepping, uses the MPU6050 to estimate angle and PID control for balancing, generates step pulses via hardware timer interrupts and direct GPIO register access, and includes wireless control plus a web interface for adjusting PID parameters and angle offset. The project references YARB and B-ROBOT EVO2 and has been tested on two body sizes.