Email me
Updates
← Self-balancing robot

Updates

Self-balancing robot

Every update on this project, newest first.

32 updates

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.

  1. AI summary

    • Fixed the motor PWM clamp(), whose second condition used max instead of min.
    • Finished the Imu class: it reads the DMP’s FIFO and converts the quaternion to roll, pitch and yaw.
    • Wrote a Battery class that reads the pack voltage through ADC1 and the board’s voltage divider, and designed a Usart class for serial output.
  2. AI summary

    • Reviewed the C++ port of the kit’s motor driver and fixed three bugs in setPWM, including the right motor’s pins checking pwm_left instead of pwm_right.
    • Wrote an Encoder class that reads wheel counts from TIM3 and TIM4 in encoder mode.
    • Began an Imu class around the MPU6050’s on-chip motion processor (DMP). Reading samples was not written yet.