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.
- Active
- Wrote the hardware abstraction layer.
Stm32MotorHalandStm32SensorHalwrap the vendor drivers, and a simulated pair,SimSensorHalandSimMotorHal, share onePhysicsmodel 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 asbalance + velocity - turnfor the left wheel andbalance + velocity + turnfor the right. - Wrote the STM32 entry point: motor PWM at 25kHz and a loop meant to run at 200Hz using
delay_ms(5).
- Wrote the hardware abstraction layer.
- Active
- Finished the
Usartclass, which sends serial output and routesprintfthroughfputcso the firmware can print telemetry. - Wrote
Stm32SensorHal, which implements the hardware-independentISensorHalinterface by delegating to the IMU, encoder and battery classes, keeping vendor driver calls out of the control code.
- Finished the
- Active
- 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
- Active
- 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