
Part 4: Camera-Free Occupancy — One Bump, a Re-Recorded Dataset, and a Pass
Where Part 3 Left Off Part 3 ended with everything in place for Gate 4’s exit test: the model running on the STM32U585 in 8.2 ms, two debouncers turning frames into a decision, and a small screen on the pole showing that decision to whoever walks in. The sensor head had been knocked out of position during the display work, I had brought it back with the accelerometer and an alignment mode that compares the empty room against a reference, and a quick live check in the new pose looked fine. ...

Part 3: Camera-Free Occupancy — The Model on the Chip, and a Screen That Glowed but Never Drew
Where Part 2 Left Off In Part 2 the dataset was frozen: 70 sessions over three days of a VL53L5CX time-of-flight sensor and an AMG8833 thermal array looking down at my desk chair, two 8×8 grids per frame, three classes (empty, seated, present) that separate by eye. Part 2 promised the part all of that was for: train a model, score it honestly, and get it onto the STM32U585. This post does that, then keeps going: the model running live on the board, the one posture it got wrong and how more data fixed it, and a small screen on the pole that shows what the device has decided. The screen took a whole Saturday of its own, and most of that day was spent on faults I’d seen before. ...

Part 2: Camera-Free Occupancy — Doing It All Again, and the I2C Bus That Wouldn't Let Go
Where Part 1 Left Off In Part 1 I built the first half of a dataset for a room occupancy sensor that never sees a face: a VL53L5CX time-of-flight sensor and an AMG8833 thermal array, two 8×8 grids, read by Rust/Embassy firmware on an STM32U585 and pointed down at my desk chair at 49.9°. Getting that far took the bring-up before it — ST’s C driver linked over FFI, a header pinout that cost a full bench session, the mount angle measured by the board’s own accelerometer — and by the end of Part 1 I had 34 sessions across morning, afternoon and evening, three classes (empty, seated, present) that separated by eye, and a decision about what an invalid ToF zone means to a model. ...