Email me

Updates

What changed recently

Short progress summaries across all my projects, newest first. The detail lives in each project's articles.

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. · Self-balancing robot AI summary

    • Wrote the hardware abstraction layer. Stm32MotorHal and Stm32SensorHal wrap the vendor drivers, and a simulated pair, SimSensorHal and SimMotorHal, share one Physics model so the same control code runs on a PC.
    • Added AppControl, which reads the sensors, runs the balance, velocity and turn controllers, and mixes them as balance + velocity - turn for the left wheel and balance + velocity + turn for the right.
    • Wrote the STM32 entry point: motor PWM at 25kHz and a loop meant to run at 200Hz using delay_ms(5).
    Active
  2. · Self-balancing robot AI summary

    • Finished the Usart class, which sends serial output and routes printf through fputc so the firmware can print telemetry.
    • Wrote Stm32SensorHal, which implements the hardware-independent ISensorHal interface by delegating to the IMU, encoder and battery classes, keeping vendor driver calls out of the control code.
    Active
  3. · Self-balancing robot 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.
    Active
  4. · Self-balancing robot 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.
    Active