
Julian Horsey at Geeky Gadgets writes about a hardware in the loop (HIL) development setup from Andreas Spiess that has an AI write ESP32 firmware and then test it on real hardware. It’s called the Embedded AI Harness, a framework that ties the AI together with the hardware and the test scripts. The AI writes the first version of the code, the tests run, and the results feed back in so the firmware is revised until it meets the spec.
The harness is connected to a Raspberry Pi testbench, so the code runs on an actual ESP32 instead of a simulator. Testing is in four tiers and includes fault injection, which simulates hardware and software failures to see how the firmware copes. Firmware is built with ESP-IDF, Espressif’s official development framework, and GitHub Actions automates steps in the workflow.
The example project is a smart meter sensor that decodes MBus data, publishes over MQTT, has a captive portal for setup, and takes over-the-air updates.
See the video below and more on geeky-gadgets.com.