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

    • Got the first green firmware build from GCC and CMake: 36.2 KB of the 256K flash (14%) and 2.5 KB of RAM (5%). It had not been flashed yet.
    • Added a _write retarget so printf reaches the UART under newlib.
    • Added a firmware build job to CI alongside the host tests, and both passed.
    Active
  2. · Automating Garage Dreams AI summary

    • Wrote the remaining-implementation plan for a less capable model to execute: complete code for every file, exact commands, nothing inferred. It ran steps 1 to 3 and the code matched the plan, but it left the generation script uncommitted, so the work existed only on disk.
    • The generation script hardcoded Ollama’s port. Swapped both the URL and the model name to environment variables, because the development machine runs llama.cpp on 8899 and the Pi will run something else.
    • localhost in that variable resolves to the dev container, not the host serving the model. host.docker.internal is the fix, and it is the kind of thing that reads as “the model is down”.
    • .devcontainer/devcontainer.json was listed as created in the previous session’s notes and did not exist. Described, never written. The first instance of a note recording an intention as a fact.
    Active
  3. · Self-balancing robot AI summary

    • Planned a GCC firmware build with arm-none-eabi-gcc, CMake and OpenOCD, running alongside the vendor’s Keil project.
    • Found the vendor already shipped a GCC startup file and linker script for the STM32F103RCT6, a Cortex-M3 with 256K flash and 48K RAM.
    • Vendored the CMSIS and peripheral library sources. Nothing had been compiled yet.
    Active
  4. · Self-balancing robot AI summary

    • Added unit tests for AppControl using mock sensor and motor interfaces, including the tilt cutoff at 45° and the normal drive path. All 14 test cases passed locally.
    • Fixed test discovery in the CMake build with enable_testing() and DISCOVERY_MODE PRE_TEST, committed the control changes, and CI passed.
    Active
  5. · Automating Garage Dreams AI summary

    • First conversion run over the 101 guides: 84 converted, 16 skipped, 1 error. The skips are folders holding more than one .docx and therefore colliding on slug, and the first file wins. The error is accord-euro-r.docx, whose zip structure is broken and which no reader can recover; that guide is simply absent.
    • Image extraction produced nothing, and it took a re-run to work out why: the photos sit beside the .docx in each folder rather than embedded inside it, so the converter’s image handler had nothing to find.
    • Decided the guides carry their real press photos while generated articles get a placeholder. The text is original either way; the split is honest about which pages had a human behind them.
    • astro dev without --host binds only to 127.0.0.1 inside the dev container, which the editor’s port forwarding cannot reliably reach. Minutes lost to a page that looked like it was building slowly.
    Active
  6. · Self-balancing robot AI summary

    • Wired the safety cutoff and the forward and turn commands (move_x, move_z) through AppControl::update, with the deadzone and clamp applied before the motors are driven.
    • A review found the commands were not yet passed into the velocity and turn controllers, and that was fixed. The changes were not yet built or committed.
    Active
  7. · Self-balancing robot AI summary

    • Fixed the simulator’s physics integration: each step overwrote the velocity with velocity_ = force * dt instead of accumulating it with +=.
    • Named the motor timer’s magic numbers, such as PWM_ARR = 2880 for 25kHz PWM.
    • Found that the control loop did not yet apply the motor deadzone, the PWM clamp or the safety cutoff.
    Active
  8. · Self-balancing robot AI summary

    • Added unit tests for the TurnPD controller covering zero input, gyro output and the move_z turn offset, alongside the existing VelocityPI tests.
    • Added a GitHub Actions workflow that builds with CMake and runs the tests with CTest on every push. It had not been pushed to GitHub yet.
    Active
  9. · Automating Garage Dreams AI summary

    • Surveyed the source material: 101 .docx buyer’s guides, each in its own folder with photos beside it. Section headings are bold paragraphs rather than Word heading styles, and the spec data is in real Word table elements, so it should survive conversion as markdown tables.
    • Decided the generator writes from one section rather than a whole guide: roughly 1,500 distinct chunks across the corpus, picked one a night. The guides themselves get published too, so the source is also the archive.
    • The brief’s cron line was node scripts/generate-article.js, which cannot run a TypeScript file. Corrected to tsx before it reached a Pi.
    Active
  10. · Self-balancing robot AI summary

    • Added a CMake build for the PC targets, the simulator and the unit tests, using C++17 with Google Test fetched at configure time. The STM32 firmware still built in Keil.
    • Added a Docker build environment and a VS Code devcontainer on the same Dockerfile.
    • Registered each test case with CTest through gtest_discover_tests.
    Active