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

    • Finished the firmware side of the serial command link: received bytes now go through a buffer and a parser in the main loop, and commands are clamped, rate-limited and dropped to zero if the link goes quiet for 250 ms.
    • Bench-tested it with the wheels off the ground. Arm and disarm keys still worked, a corrupted frame was rejected, and pausing the sender reported link loss after 251 ms. It has not driven on the floor yet.
    • Battery readings fell to 5.4-6.0 V with the motors off, unexplained so far; the pack needs a meter check.
    Active
  2. · Self-balancing robot AI summary

    • Wrote the tests for a serial link that will let a computer send drive commands to the robot: a frame parser with a checksum, a speed governor and a receive buffer. With only stub code behind them, 22 of the 94 host tests failed, as intended.
    • Checked the checksum values independently in Python, confirming that the example command frame in the plan was correct.
    • Pinned down edge cases in the tests, including the maximum frame length, Windows line endings, and how far speed may change after a long gap.
    Active
  3. · Self-balancing robot AI summary

    • Designed a watchdogged serial link for driving the car: checksummed command frames with a sequence number, a 20 Hz heartbeat and a 250 ms timeout. Losing the link zeroes the targets and keeps the car balancing rather than disarming it.
    • Set the initial limits at ±100 mm/s forward and ±30 deg/s turning. Not yet implemented.
    Active
  4. · Self-balancing robot AI summary

    • Enabled yaw-rate damping on hardware with YawRateP(1.0, 30, 100) holding a target of zero. Over 248 rows of travel the mean yaw rate was −0.1 deg/s forward and −0.3 deg/s backward, so recovering pitch no longer turned the car.
    • At kp=0.5, forward travel had yawed right on 45 of 47 rows, so the higher gain was kept.
    • Found that the left wheel free-spins about 10% faster than the right (580 vs 525 counts per 100 ms), so the car is expected to curve right at speed.
    Active
  5. · Self-balancing robot AI summary

    • Measured the gyro’s yaw-rate sign on the car: four left turns read +56.9 to +78.8 deg/s and four right turns −59.0 to −87.6 deg/s, so left-positive needed no sign flip.
    • Converted the gyro reading to deg/s in the hardware layer, so the application works in physical units.
    • Started a yaw-rate controller, YawRateP, as a stub returning 0. Its tests were not passing yet.
    Active
  6. · Self-balancing robot AI summary

    • Enabled the velocity integral at Ki 35 with a limit of 200. Over a 21.74 s capture the angle stayed between -8.39° and +8.42°, the peak motor command was 1040, and the car recovered from pushes.
    • A weaker Ki=4 trial had let the car creep backward with the integral pinned at its limit.
    • Verified that a stale sensor stops an armed car: with a fault injected, it disarmed exactly 25 ms after the last fresh sample and stayed stopped for 17.2 s.
    Active
  7. · Self-balancing robot AI summary

    • Confirmed the car already balances freely: arming it with a stands it up and it holds. No telemetry of a free run exists yet, so capturing one comes next.
    • Verified the explicit arm gate on hardware. 8 of 10 test rows passed and the other 2 were recorded as not run. Across 14 boots and 12 faults the car armed 11 times, each straight after an operator a byte, and never on its own.
    • Wrote a serial tool that sends raw keypresses while logging, so no CR/LF can follow an a and leave the car silently refusing to arm.
    Active
  8. · Self-balancing robot AI summary

    • Implemented arming over serial: only a clean a byte arms the car, every other byte or an a with a receive error disarms it, and disarm wins a tie. The car boots disarmed.
    • The UART interrupt now reads the status register before the data register, so a receive error is caught for the byte it belongs to.
    • All 57 host tests passed and the firmware built. Not yet tested on hardware.
    Active
  9. · Automating Garage Dreams AI summary

    • The monitor reported five green checks (26 records, newest run 23.2 hours old, last run published, in sync with the remote) and all three of those facts were wrong. The remote held 27 records, the newest was eight hours old, and it had skipped. Two defects compounded: the upstream check measured only whether the branch was ahead, so a purely behind checkout scored zero and printed “in sync”; and the record checks read the local working tree, which --fetch does not update. On the publishing host the tree and the remote coincide, so the machine the monitor was designed for is the one machine where the bug is invisible.
    • Nine burn-in drafts reviewed against their sources: three carried article-introduced faults, and all three had passed both reviewers. Each is the same shape: a fact kept and the qualifier that made it true discarded. One asserted a platform lineage the source paragraph exists to deny; one dropped “non verified test” from a top-speed figure; one rendered the end of Japan’s 280 PS advertising cap as a claim about the car’s power, beside a 308 PS figure.
    • That retracts an earlier conclusion. “Both reviewers reliably catch dropped qualifiers” was drawn from two runs in which they did, which is a definition rather than a sample: a run they catch gets revised into the record, a run they miss publishes silently. The observed miss rate is three in nine and that is a floor, not an estimate. It matters most at the next stage, when the draft step disappears and the reviewers become the only check.
    • Two further faults were source defects copied faithfully: a guide calling cast-iron brake discs carbon, and another calling a three-door hatchback a four-door. The pipeline behaved correctly in both cases, which is its own kind of finding.
    • The sync damage recurred at four times the size: eight tracked files deleted with (1) twins, including four published articles. The first method used to verify them reported all eight as differing, which would have meant eight files of real work to reconcile by hand. The method was wrong. Dumping a blob through a PowerShell redirect re-encodes it, so the comparison measures the shell rather than the files. Comparing object IDs the way git itself would showed all eight identical. Note the direction of that error: the broken method produced the alarming answer, and nobody double-checks bad news.
    • Added commands to move generated articles between draft and live in both directions, sharing one transaction that validates everything, holds the originals in memory and rolls back by exact path. It exists because after the draft stage is removed there is otherwise no route back for prose. The flip and its rollback do not differ by direction, so one function takes the source and target values and the round trip to the original bytes is asserted. There is deliberately no bulk form on the withdraw side.
    • All nine drafts are now live, published in one commit by the command rather than by hand.
    Active
  10. · Automating Garage Dreams AI summary

    • An unattended cover run failed its own integrity check and left nothing behind to diagnose it with: no candidate, no session record. Rendering the prompt locally and hashing variants identified it exactly: the attested digest is sha256(prompt + "\n"). That is the signature of hashing an echoed string in a shell. Switching the attestation from text to a digest a fortnight ago closed the Unicode serialisation boundary and not the shell’s trailing newline.
    • Ben’s call was to accept exactly one appended newline and nothing else. A second newline, a CRLF, a leading newline, a trailing space and a single dropped character all still fail, and both directions were mutation-checked.
    • The retry selected a different article, because the failed one was deprioritised by its own recorded failure, and it passed.
    • Second instance of the development-years fault: a cover for “The Development of the Mazda RX-8” asked for 2001-2003 for a car sold from 2003. Both instances are articles whose titles start “The Evolution of” or “The Development of”, which is a pattern rather than a coincidence. The images were correct both times.
    • A 23-minute article run outlived the 15-minute sudo credential, so the job queued behind it sat waiting for a human. Worth knowing before anything depends on two long steps in sequence.
    Active