Co-Designing Hardware With an AI Collaborator
What it is actually like to design a multi-board embedded system, a shared communication protocol between the boards, and a 3D-printed enclosure with an AI working alongside as a genuine engineering collaborator, not just an autocomplete.
Table of contents
- Not a code assistant — a design partner
- Deciding how many brains the system needs
- Agreeing on a shared language between modules
- The enclosure is a design problem too
- Thinking about each module on its own terms
- Where the collaboration actually paid off
- Closing the loop between a change and seeing it
- Where this leaves things
I've been building a modular aquarium controller as a personal hardware project — custom circuit boards, a shared communication bus between them, firmware, and a 3D-printed enclosure. I'm keeping the project itself mostly off this blog for now; it's still a work in progress. What I do want to write about is something that surprised me while building it: how much of the actual engineering happened as a genuine back-and-forth with an AI collaborator, across every layer of the problem at once, not just as a faster way to generate code.
The shape every module on the bus has to agree to, regardless of what it actually does.
Not a code assistant — a design partner
Most people's mental model of "AI for hardware" is narrow: ask it to write some firmware, or explain a datasheet you don't want to read cover to cover. That's in here too, but it undersells what actually happened. The conversations that mattered most weren't about any single module — they were about the decisions that cut across all of them: how many independent boards the system should even be, what language those boards speak to each other, how a physical enclosure constrains both, and what each module is and isn't allowed to assume about the rest of the system. That's a different kind of help than autocomplete, and it's the part worth writing about.
Deciding how many brains the system needs
The first real design question had nothing to do with any particular sensor or feature: should this be one board that does everything, or several smaller boards that each do one thing and talk to each other? One board is simpler to wire and cheaper to build, but it's also a single point of failure — lose that board and you lose everything. Several boards cost more in connectors and copper, but a problem in one doesn't have to take down the rest, and you can add a new capability later without redesigning what already works.
Talking that through out loud — with something that could immediately list the second- and third-order consequences of each option rather than just the obvious ones — is what pushed the decision past "several boards feels right" into an actual design principle: every module has to be able to enforce its own safety behavior on its own, with or without the rest of the system. A coordinating module exists, but it coordinates — it isn't a dependency the rest of the system falls apart without.
Agreeing on a shared language between modules
A shared bus between boards sounds simple until you get to the edges. How does a module that just got plugged in introduce itself, without anyone having to flash it with an address by hand first? How does an urgent fault reach every other module within a fraction of a second, instead of waiting behind a backlog of routine chatter? What should a module do with a message it doesn't recognize, instead of just silently ignoring it or — worse — misinterpreting it?
Working through that collaboratively is where an AI design partner earned its keep the most. Not by inventing something novel — the ideas themselves (a small fixed set of message categories ranked by urgency, a self-assigning address scheme so swapping a module doesn't require touching firmware, a steady "still here" signal from every module so absence is detected quickly) are well-worn patterns from real industrial and automotive bus designs. The value was in stress-testing each decision before it became hardware: what happens if two brand-new modules try to claim an address in the same instant, what a module should do the first time it sees a value outside the range it was designed for, whether an alarm and a routine update could ever collide in a way that let the routine one win. Those are the kind of questions that are cheap to answer on paper and expensive to discover after boards are etched.
The enclosure is a design problem too
It's easy to treat the case as an afterthought — something you model once the electronics are "done." That didn't work here, because several modules needed to exist in parallel, and parallel design only works if everyone agrees on the footprint before anyone starts. So one of the earliest decisions, well before any specific module was drawn, was a strict physical contract: a fixed mounting profile, a fixed pitch between modules, a fixed connector position — the rules every board has to fit, regardless of what's on it.
From there it became a print-check-adjust loop: print a case revision, test-fit it against the actual board, note what's off, adjust, repeat. Having a collaborator track what changed between revisions and why — and catch when a case dimension quietly drifted out of sync with the board it was supposed to match — kept that loop from turning into a pile of almost-identical STL files with no memory of which one actually fit. Even small physical decisions, like how a status light should be visible without exposing bare circuitry, turned into a real conversation about trade-offs (a light pipe versus a direct opening versus relying on a translucent panel) rather than whatever was easiest to model first.
Thinking about each module on its own terms
Once the shared rules existed — the bus, the enclosure footprint, the autonomy principle — each module still needed its own design conversation, because each one has genuinely different priorities:
- The coordinating module. Owns talking to the outside world and keeping track of what every other module is doing — and deliberately owns nothing that's safety-critical by itself. If it's gone, nothing downstream should notice beyond losing its coordination.
- A sensing module. Noise and isolation got disproportionate attention here, because a sensor that's quietly wrong is far more dangerous than one that's obviously dead — it lies to everything downstream with total confidence.
- An actuation module. The interesting question wasn't "can the firmware turn this off," it was "what happens in the exact instant firmware isn't involved at all." That pushed the real safety cutoff into hardware, not code.
- A safety/alarm module. Deliberately has the simplest firmware of any board on the bus. The module most likely to matter in an actual emergency is the one you want to trust the smallest amount of software.
- A shared debug/communication module. Not glamorous, but every other module's hardest bugs got easier to chase down once there was one place to tap the bus and watch it live instead of guessing.
Where the collaboration actually paid off
A few patterns stood out as genuinely useful, not just convenient:
- Holding the whole system in view. A change to one module's power draw got checked against every other module sharing the same feed, immediately, without me having to remember to go do that arithmetic myself.
- Generating the repetitive, error-prone parts. Netlists, routing passes, and enclosure iterations from a description, rather than drawing every one by hand — which freed up time for the decisions that actually needed a human judgment call.
- A second reviewer on every board. Catching a mismatch between a part's footprint and its real pin orientation before it became an expensive fabrication mistake, instead of after.
- Knowing where to stop. Just as valuable as what it caught was what it explicitly flagged as needing a human to verify by hand against the actual datasheet — physical, easy-to-get-subtly-wrong details it didn't pretend to be more certain about than it was.
Closing the loop between a change and seeing it
One more piece came out of this that's worth a mention on its own: a small pipeline that watches the repository and, on every push that touches a board, automatically renders fresh schematic and board views and commits them back alongside the change. No one has to open the CAD tool just to see whether a routing pass made things better or worse — the rendered views are just there, versioned next to the design files they came from.
It sounds like a small convenience, but it changes how often you actually look. Reviewing a change used to mean firing up the design tool, waiting for it to load the right project, and finding the right view — annoying enough that it got skipped more often than it should have. Now it's just there in the diff. I'll probably write that pipeline up properly on its own at some point, since it ended up being its own small design problem — figuring out how to only re-render what actually changed, rather than redoing every view on every push, instead of the one-line idea it started as.
Where this leaves things
The hardware is still at an early revision, and there are open items I've deliberately left for a human pass rather than trusting blindly — a few footprint orientations to confirm against datasheets by eye before anything gets built. But the more interesting takeaway isn't about the parts an AI collaborator could draw faster than I could by hand. It's having a second set of eyes that could hold every discipline's constraints — electrical, firmware, mechanical — in view at once, every time something changed, across a project that spans all three.