Engineering notes · Embedded · AI-assisted builds

Building hardware and software with AI.

Documenting my journey of building projects with AI - where code meets creativity and human ideas merge with artificial intelligence

12 min read

Packing a Product onto an ESP32-C3: Fonts, OOM Battles, and Zero-Cloud Discovery

At the end of Part 7 and Hardware as Code, Stuffy Meter was running firmware v1.0. It worked well on my desk, mostly because I had a CLI on my Mac, knew every IP on my Wi-Fi, and didn’t mind plugging in a USB-C cable whenever something broke.

Since then, the firmware has grown from v1.0 to v2.1.2. The project now has a proper product page at cmwang.dev/stuffy-meter and a bilingual Quickstart Guide on GitHub. If you want a clean tour of what Stuffy Meter does—7-day history, air-quality insights, Telegram alerts, Home Assistant integration, and automatic updates—start there.

This post is about the development journey and tradeoffs behind those features: how to fit a real, everyday product onto a single-core ESP32-C3 (4 MB flash, ~400 KB RAM) while keeping everything 100% local—no cloud server, no accounts, and no mobile app.

Read article →
9 min read

Hardware as Code: How AI Agents Built My CO2 Monitor

In Part 7 I mentioned, almost in passing, that I didn’t type most of the new board myself. This post is about how that actually worked.

Some context: I’m a software engineer, not a hardware engineer. Before this, my only PCB was the module carrier board from Part 6, drawn by hand in EasyEDA. Now there’s a board on my desk that JLCPCB assembled from files that AI agents generated, running firmware that was tested before the board existed. The project finally has a name too: StuffyMeter.

The short version: AI agents became useful for hardware once the hardware became code. I built all of it with AI agents in Antigravity, Google’s agentic development platform.

Read article →
6 min read

DIY Smart CO2 Monitor Part 7: The V2 Board, Assembled by JLCPCB

At the end of Part 6 I had a custom PCB, but it was really just a carrier board for modules: an ESP32 dev board, a sensor breakout and an OLED module, all soldered on by hand. It worked, but I wanted to get rid of the soldering completely. So this time the plan was simple to say and harder to do: design a board that JLCPCB assembles for me, from bare parts, so it arrives ready to flash.

It’s finally here, and it’s the first version of this project that I’d call almost production.

Read article →
6 min read

DIY Smart CO2 Monitor Part 6: Custom PCB Design and Manufacturing

After successfully miniaturizing our CO2 monitor with a 3D printed enclosure in Part 5, it was time to tackle the final stage outlined in our original roadmap: Stage Three - Custom PCB & Cost Optimization for Potential “Mass Production”. What I discovered during this journey was that custom PCB design and manufacturing is far more accessible and affordable than I ever imagined!

Read article →
5 min read

DIY Smart CO2 Monitor Part 5: From Breadboard to Miniaturized 3D Printed Enclosure

After successfully integrating the SCD41 sensor in Part 4, it was time to tackle the next major challenge: miniaturization. The goal was to transform our bulky breadboard prototype into a sleek, compact device that could fit into a custom 3D printed enclosure. This journey introduced me to the world of CAD modeling, 3D printing technique, and opened up an entirely new hobby!

Read article →