„Screw PID, it's for boomers” – challenge accepted (part 3)

As I said in Part 2, I tried to keep it dead simple: how to actually train your own ML model. I know ML purists would call it superficial - but let’s face it: I’m not here to teach you the secrets of deep learning. I want hardware devs to see a real-world way that works on actual silicon – without drowning in theory rabbit holes. Let’s move on. From ONNX to C code – let’s see what X-CUBE-AI does with it Open CubeMX. Make sure you have X-CUBE-AI installed (the add-on that turns ONNX models into C code – the language the MCU compiler actually speaks). It should show up in the Middleware section. Click “Add network”, name it something like “pid”, switch format from Keras to ONNX, browse to your file, set compression and optimization options, then hit “Analyze”. ...

January 23, 2026 · 6 min · Hax0rZmr0cku