<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Time-of-Flight on Antony Mapfumo</title><link>https://mapfumo.github.io/tags/time-of-flight/</link><description>Recent content in Time-of-Flight on Antony Mapfumo</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 24 Nov 2026 07:45:00 +1000</lastBuildDate><atom:link href="https://mapfumo.github.io/tags/time-of-flight/index.xml" rel="self" type="application/rss+xml"/><item><title>Part 2: Camera-Free Occupancy — Doing It All Again, and the I2C Bus That Wouldn't Let Go</title><link>https://mapfumo.github.io/posts/2026/november/camera-free-occupancy-part-2-the-dataset-is-done/</link><pubDate>Tue, 24 Nov 2026 07:45:00 +1000</pubDate><guid>https://mapfumo.github.io/posts/2026/november/camera-free-occupancy-part-2-the-dataset-is-done/</guid><description>&lt;h2 id="where-part-1-left-off">Where Part 1 Left Off&lt;/h2>
&lt;p>In &lt;a href="https://mapfumo.github.io/posts/2026/november/camera-free-occupancy-building-the-dataset/">Part 1&lt;/a> I built the first half of a dataset for a room occupancy sensor that never sees a face: a &lt;strong>VL53L5CX&lt;/strong> time-of-flight sensor and an &lt;strong>AMG8833&lt;/strong> 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&amp;rsquo;s C driver linked over FFI, a header pinout that cost a full bench session, the mount angle measured by the board&amp;rsquo;s own accelerometer — and by the end of Part 1 I had 34 sessions across morning, afternoon and evening, three classes (&lt;code>empty&lt;/code>, &lt;code>seated&lt;/code>, &lt;code>present&lt;/code>) that separated by eye, and a decision about what an invalid ToF zone means to a model.&lt;/p></description></item><item><title>Part 1: Teaching a Camera-Free Sensor to Tell Empty from Seated — 34 Sessions, Three Dayparts, and a Zero That Lied</title><link>https://mapfumo.github.io/posts/2026/november/camera-free-occupancy-building-the-dataset/</link><pubDate>Mon, 23 Nov 2026 07:30:00 +1000</pubDate><guid>https://mapfumo.github.io/posts/2026/november/camera-free-occupancy-building-the-dataset/</guid><description>&lt;h2 id="the-setup">The Setup&lt;/h2>
&lt;p>I&amp;rsquo;m building a room occupancy sensor that never sees a face. No camera, no images — just two 8×8 sensors pointed at a desk and a chair:&lt;/p>
&lt;ul>
&lt;li>a &lt;strong>VL53L5CX&lt;/strong> time-of-flight sensor, which measures distance in 64 zones;&lt;/li>
&lt;li>an &lt;strong>AMG8833 Grid-EYE&lt;/strong>, which measures radiated heat in 64 pixels.&lt;/li>
&lt;/ul>
&lt;p>Both sit on one I2C bus on a &lt;strong>B-U585I-IOT02A&lt;/strong> (STM32U585, Cortex-M33), running Rust firmware on Embassy. ST&amp;rsquo;s C driver for the ToF is linked in over FFI. The end goal is a small model running on the microcontroller that says &lt;em>empty&lt;/em>, &lt;em>seated&lt;/em> or &lt;em>present&lt;/em>, feeding the same BACnet/MQTT/Grafana pipeline as my earlier projects.&lt;/p></description></item></channel></rss>