<?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>Embassy on Antony Mapfumo</title><link>https://mapfumo.github.io/tags/embassy/</link><description>Recent content in Embassy on Antony Mapfumo</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 23 Nov 2026 07:30:00 +1000</lastBuildDate><atom:link href="https://mapfumo.github.io/tags/embassy/index.xml" rel="self" type="application/rss+xml"/><item><title>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><item><title>Building a LoRaWAN Sensor Network in Rust — STM32WL55, Embassy, and the Bugs That Taught Me the Most</title><link>https://mapfumo.github.io/posts/2026/april/building-a-lorawan-sensor-network-in-rust-stm32wl55-embassy-and-the-bugs-that-taught-the-most/</link><pubDate>Tue, 28 Apr 2026 12:21:14 +1000</pubDate><guid>https://mapfumo.github.io/posts/2026/april/building-a-lorawan-sensor-network-in-rust-stm32wl55-embassy-and-the-bugs-that-taught-the-most/</guid><description>&lt;h2 id="from-sensor-to-dashboard--without-a-line-of-c">From Sensor to Dashboard — Without a Line of C&lt;/h2>
&lt;p>My previous projects used the STM32F446RE — a capable workhorse, but one that needs an external LoRa radio module wired up separately. When I decided to go deep on LoRaWAN, I wanted a chip where the radio was part of the silicon itself. The STM32WL55JC1 delivers exactly that: an ARM Cortex-M4 application processor and a sub-GHz radio coexisting on the same die, talking to each other over an internal SPI bus that never leaves the package.&lt;/p></description></item><item><title>Building a Multi-Protocol Industrial IoT Gateway: LoRaWAN, Modbus TCP, and BACnet/IP</title><link>https://mapfumo.github.io/posts/2026/february/building-a-multi-protocol-industrial-iot-gateway-lorawan-modbus-tcp-and-bacnet-ip/</link><pubDate>Sun, 01 Feb 2026 17:01:44 +1000</pubDate><guid>https://mapfumo.github.io/posts/2026/february/building-a-multi-protocol-industrial-iot-gateway-lorawan-modbus-tcp-and-bacnet-ip/</guid><description>&lt;p>When industrial facilities need to monitor equipment and environmental conditions, they often face a challenge: different systems speak different languages. A temperature sensor in one part of the building might use Modbus TCP, while the HVAC system uses BACnet/IP, and wireless sensors communicate via LoRaWAN. Getting all this data into one place typically requires expensive proprietary gateways or complex integration projects.&lt;/p>
&lt;p>I built a solution that brings these three protocols together on a single platform, using open-source tools and commodity hardware.&lt;/p></description></item><item><title>From LoRa Modules to Native LoRaWAN the STM32WL Migration - Wk10</title><link>https://mapfumo.github.io/posts/week-10-from-lora-modules-to-native-lorawan-the-stm32wl-migration/</link><pubDate>Sun, 11 Jan 2026 13:50:05 +1000</pubDate><guid>https://mapfumo.github.io/posts/week-10-from-lora-modules-to-native-lorawan-the-stm32wl-migration/</guid><description>&lt;h2 id="the-challenge">The Challenge&lt;/h2>
&lt;p>For the first 9 weeks of this project, I&amp;rsquo;ve been using RYLR998 LoRa modules - simple AT command modules that handled the radio work while my STM32 focused on sensors. They worked beautifully for point-to-point communication (600m range, 95% success rate), but they had a fundamental limitation:&lt;/p>
&lt;p>&lt;strong>They weren&amp;rsquo;t LoRaWAN.&lt;/strong>&lt;/p>
&lt;p>LoRa (the physical layer) is great for custom networks. But &lt;strong>LoRaWAN&lt;/strong> (the MAC layer protocol) is what you need for:&lt;/p></description></item><item><title>From IoT to Industrial Automation: Modbus TCP and OPC UA [Open Platform Communications Unified Architecture] - Wk9</title><link>https://mapfumo.github.io/posts/modbus-opcua-week-9/</link><pubDate>Sun, 04 Jan 2026 12:49:44 +1000</pubDate><guid>https://mapfumo.github.io/posts/modbus-opcua-week-9/</guid><description>&lt;p>Week 9 represents a fundamental shift in the project. For the past eight weeks, we&amp;rsquo;ve been building IoT systems - MQTT, InfluxDB, Grafana, cloud-oriented architectures. Week 9 is different.&lt;/p>
&lt;p>&lt;strong>Week 9 is industrial automation.&lt;/strong>&lt;/p>
&lt;p>This isn&amp;rsquo;t about publishing sensor data to the cloud. It&amp;rsquo;s about &lt;strong>PLC integration&lt;/strong>, &lt;strong>SCADA systems&lt;/strong>, and &lt;strong>factory floor protocols&lt;/strong>. It&amp;rsquo;s about Modbus TCP - the protocol that&amp;rsquo;s been running industrial plants since the 1970s. It&amp;rsquo;s about OPC-UA - the modern standard for industrial interoperability.&lt;/p></description></item></channel></rss>