Skip to main content
Simulated robot braking over the black marker, overlay showing the state BRAKING
AI

AI in engineering: robot demo from CAD, code and simulation

Robot demo from CAD data, real microcontroller code and physics simulation, built headless with AI on a vacation afternoon, with no CAD suite at all.

Automatically translated from German · Read the original

Julian Weyer
Julian Weyer August 28, 2026 · 1 min read
AI ·AI ·Engineering ·1 min read

AI in engineering: a small, simple robot demo built from CAD data, real microcontroller code and physics simulation. Done on a vacation afternoon.

I really only wanted to find out what would theoretically be needed for a project like this (.. hiking gives you ideas, must be the good mountain air…). And after a bit of research it was clear: you’re just going to try this now.

Robby has two drive motors, an ESP32 microcontroller and a brightness sensor. The task: drive off, and brake again when you cross the black line.

Side view: The robot accelerates to 0.6 m/s and brakes as soon as the sensor detects the 30 mm wide marker.

The code that controls Robby is exactly the same code you could deploy to real hardware. The physics simulation takes masses and geometry into account.

Close-up of the reflection sensor, 125 mm ahead of the axle and 4 mm above the ground. Top right: the ADC value against the switching threshold.

CAD data and code were created “headless” with the help of AI. I didn’t need a CAD suite.

I’ll keep experimenting!
Putting it in perspective

AI has potential and took a lot of work off my hands in this demo, including creating the CAD data and the firmware source code.

But: without prior engineering knowledge and my own expertise, the result would not have turned out the way it did. What helped me enormously is that I have solid knowledge of both classical engineering disciplines and software engineering (although I’m neither a full-blooded design engineer nor a full-blooded software developer). That meant that when I watched the AI agent “think” and reason, I could step in whenever I noticed the process heading in a direction that wasn’t appropriate.