Project contents
← Self-balancing robot
Updates
Self-balancing robot
Every update on this project, newest first.
Updates are bullet-point summaries generated with AI from my commits and build notes, then checked by me. Project articles and learning notes are written by me.
-
- Fixed the motor PWM
clamp(), whose second condition usedmaxinstead ofmin. - Finished the
Imuclass: it reads the DMP’s FIFO and converts the quaternion to roll, pitch and yaw. - Wrote a
Batteryclass that reads the pack voltage throughADC1and the board’s voltage divider, and designed aUsartclass for serial output.
- Fixed the motor PWM
-
- Reviewed the C++ port of the kit’s motor driver and fixed three bugs in
setPWM, including the right motor’s pins checkingpwm_leftinstead ofpwm_right. - Wrote an
Encoderclass that reads wheel counts fromTIM3andTIM4in encoder mode. - Began an
Imuclass around the MPU6050’s on-chip motion processor (DMP). Reading samples was not written yet.
- Reviewed the C++ port of the kit’s motor driver and fixed three bugs in