BlogTrend

Hardware vibe coding: what works and what breaks

Hardware vibe coding means building physical devices by prompting an AI agent: firmware, circuit boards, parts, PLC code and robots. Where it works today, and where physics says no.

Hardware vibe coding means building physical things by describing them to an AI agent: firmware for microcontrollers, circuit boards, mechanical parts, chips, PLC programs and robots. You state what you want in plain language, the agent writes and fixes the code or the design, and you judge the result more than the code.

It works well today for prototypes and for the software-like parts of hardware. It works poorly where the physical world decides: timing, power, heat, tolerances, safety. A prompt can state intent. It cannot guarantee a physical outcome.

Where the term comes from

  • February 2025. Andrej Karpathy coins "vibe coding" for software: you describe, the AI writes, and you accept the result without reading every line.
  • April 2025. Arduino adds an AI assistant, built on Claude, to its cloud editor.
  • July 2025. A maker has Claude design an ESP32-S3 board through atopile, a tool that describes circuits as code. The design comes together after a few fixes, among them a capacitor the AI left out. The post ends before the board is manufactured.
  • November 2025. Anthropic publishes Project Fetch: two teams of researchers who are not roboticists program a robot dog. The team with Claude finishes more tasks, and faster.
  • Through 2025 and 2026. Open-source tools appear that connect coding agents to board design software, simulators and PLC engineering tools.
  • November 2026. Anthropic reports three devices designed by Claude and built by the board maker Diode Computers. The prototypes worked without fixes to their circuits. They have not been through electrical validation or certification.

Strictly, "vibe coding" means not reviewing the output. Many professionals who use AI for hardware do review it, and prefer "AI-assisted" or "agentic" engineering. In practice the phrase covers both.

Six layers

Layer What the AI produces State today, in our assessment
Firmware C, C++, MicroPython or Rust for microcontrollers Good for prototypes. Weak on timing and on vendor frameworks.
Electronics Schematic, part choice, board layout Simple boards work with review. Complex boards need an engineer.
Mechanical 3D models of parts and enclosures Simple parts work. Complex parts need manual work.
Chips Verilog and test benches An assistant inside expert teams. Verification remains the bottleneck.
Industrial control Structured Text and ladder logic for PLCs An assistant for engineers. Not accepted alone for safety functions.
Robots Control scripts, sensor integration, tasks Fast for integration and glue code. Precise physical skill is still hard.

"Circuits as code" matters here because coding agents are good at text. A board described in a text file can be generated, compared, reviewed and versioned like software. A board drawn by mouse in a graphical tool cannot.

The loop

  1. Describe. The goal, the exact board and parts, the pins, the constraints.
  2. Generate. The agent writes the code or the design.
  3. Build. Compile, or run design rule checks. Errors go back to the agent.
  4. Simulate. Run it in a simulator before touching hardware.
  5. Flash or fabricate. Load the firmware, print the part, order the board.
  6. Observe. Serial output, measurements, camera images and test results go back to the agent.
  7. Fix and repeat.

The most repeated lesson from people who work this way: the agent is only as good as its feedback. An agent that can compile, flash and read the serial port by itself corrects its own mistakes. An agent that only writes code and hopes does not.

What practitioners say helps:

  • Give exact hardware facts: board, chip, pin map, library versions, the relevant datasheet pages.
  • Keep a tight loop: compile after every change, simulate, test on the board.
  • Use version control, so a bad change can be undone.
  • Split the project into small parts, so the agent does not have to hold everything at once.

What it improves

  • Speed to a first working prototype. In Project Fetch, the team with Claude completed seven of eight tasks against six of eight, and took about half the time on the tasks both teams finished.
  • A lower entry barrier. People without an electronics or firmware background get a first result.
  • Reading datasheets. Models digest hundreds of pages and find the register or the timing value.
  • Boilerplate and glue. Initialisation code, communication stacks, build files.
  • Crossing disciplines. One person can produce firmware, a simple board and an enclosure.

What goes wrong

The physical world has no undo

What you are iterating on Time for one try Cost of a mistake
Web app Seconds Reload
Firmware in a simulator Seconds Nothing
Firmware on a board About a minute Sometimes a dead board
3D-printed part Hours Some plastic
Circuit board from a factory One to two weeks Money and weeks
Chip Months Very large
Machine in a plant It depends Downtime, damage, injury

These figures are rough and our own estimate. The pattern is what matters. Vibe coding depends on fast, cheap retries. Hardware makes retries slow and expensive, and some mistakes destroy parts.

The model is often wrong

EmbedBench, the benchmark from the EmbedAgent paper (ICSE 2026), tested ten models from early 2025 on 126 embedded tasks. The best model solved 55.6 percent on the first attempt when it was given the correct schematic, and 50.0 percent when it had to design the circuit too. When asked to port Arduino code to Espressif's ESP-IDF framework, the best result was 29.4 percent.

The reasons are not mysterious. Much embedded, PLC and chip code is tied to one chip or one vendor, and a lot of it was never published. Models invent hardware facts: wrong pins, registers that do not exist, libraries with a different interface. And many hardware bugs are not in the source code at all. The cause is timing, wiring or power, and an agent that can only edit code will keep editing code.

Things a prompt cannot guarantee

  • Timing and real-time behaviour, interrupts, memory limits.
  • Power, heat, electromagnetic interference, battery safety.
  • Mechanical strength and manufacturing tolerances.
  • That a factory can build it repeatedly.
  • Certification: CE, FCC, UL, functional safety.

Security

In 2025 Veracode tested more than 100 language models on 80 coding tasks. In 45 percent of the test cases the generated code contained a vulnerability from the OWASP Top 10, and in that report newer or larger models did no better. That study was not about firmware, and Veracode sells security tools. But firmware is updated rarely and lives for years, so a flaw that ships in a device stays there.

When the hardware is a machine

The same method is reaching industrial control. Vendors ship assistants that draft PLC code, and coding agents can be connected to PLC engineering tools. Research on language models that write PLC code keeps reaching the same conclusion: verify before it runs. One study, LLM4PLC, raised the generation success rate from 47 to 72 percent with a pipeline that adds fine-tuning and automated checks: a syntax checker, a compiler and a model checker. Success there means the code compiles, not that it is proven correct. PLCs explained for AI engineers covers what that code runs on.

This is where hardware vibe coding meets physical AI. More devices and more machine programs are being written by people who cannot fully check them, and more AI agents are being connected to physical equipment. Getting a simple device to a first working version has become much faster. Making it reliable, safe, manufacturable and certified has not.

Common questions

What is hardware vibe coding?

Building physical devices by describing them to an AI agent, which writes the firmware or the design, runs it, and fixes it from the results. It covers firmware, circuit boards, mechanical parts, chips, PLC programs and robots.

Can AI design a circuit board?

Yes, a simple one, with review. A coding agent can generate the circuit, meaning the parts and their connections, and in some setups the layout. In the hobby experiments cited here a person had to fix things the AI missed. In November 2026 Anthropic reported three Claude-designed prototypes that worked without fixes to their circuits, but they had not been through validation or certification. Complex boards still need an engineer.

Is AI-generated firmware safe to ship?

Not without review and testing. Benchmarks show models fail a large share of embedded tasks, and studies of generated code find known vulnerability classes in a large share of samples. Firmware is rarely updated once it ships.

What do I need to start?

A cheap development board, a coding agent that can run command-line tools, and a way to close the loop: compile, flash, and read the serial output. A simulator saves boards.

Sources