Real AI agent use cases, with sources and setup prompts

How to build hardware projects with AI agents

Short answer: Pick a common board (ESP32 for Wi-Fi/Bluetooth, Arduino for simple sensors, Raspberry Pi when you need Linux), describe the device in plain words, and let Claude Code or Codex write firmware in small milestones. Install the free Arduino CLI or PlatformIO so the agent can compile, upload and read the serial log itself. Test logic first in the free Wokwi simulator, and give the agent a check script that builds the firmware and runs it in Wokwi from the terminal so it can prove each change works before you flash anything, then wire from a pin-by-pin table (watch 3.3 V vs 5 V), flash over USB and paste serial output back to the agent. When the breadboard works, use free KiCad for a schematic and PCB — and have a person check voltages, currents and footprints before you order boards.

Real builds where people paired a coding agent with hardware: ESP32 voice boxes and usage meters, Wokwi firmware tests, KiCad schematics, desk satellite trackers and agents that power-cycle boards overnight. 24 matching use cases below, each with a public source.

Looking for something else? Search all 1965 use cases or .

What you need

ToolWhat it does herePriceLink
Claude CodeCoding agent that writes firmware, runs compile/upload commands and reads the serial log back in your project folder.Needs Claude Pro: $20/mo, or $17/mo billed yearly ($200 up front)Official site
CodexOpenAI's coding agent alternative for the same compile–upload–debug loop on your computer.Included in ChatGPT plans (limits vary by Free / Go / Plus / Pro)Official site
Arduino CLICommand-line Arduino toolchain so an agent can compile, upload and open the serial monitor without clicking the IDE.Free (open source)Official site
PlatformIOPer-project build system with board, libraries and flags in platformio.ini. Works from the terminal or VS Code.Free (open source core)Official site
ESP32 boardCheap Wi-Fi and Bluetooth microcontroller with huge public example coverage — the easiest board for agents to get right.Low cost; varies by seller (often a few dollars)Official site
WokwiBrowser simulator for ESP32, Arduino and Pi Pico. Lets the agent test logic and wiring before you touch real parts.Community €0 (public projects); Hobby €5.6/mo, Hobby+ €8.1/mo, Pro €20/seat/mo (billed yearly)Official site
Wokwi CLI + agent skillsRuns your compiled firmware in Wokwi's cloud simulator from the terminal and exits with pass or fail, so the agent can test without a board. Free MIT skills teach Claude Code, Codex and Cursor to use it; it also has an experimental MCP server.Free CLI; CI simulation time is 50 min per rolling 30 days on the free plan (200 Hobby, 500 Hobby+, 2,000 Pro)Official site
KiCadFree schematic and PCB design once the breadboard prototype works. Agents can draft files; you still review them.Free (open source)Official site
Raspberry PiFull Linux computer when you need Python, cameras, local LLMs or Home Assistant instead of bare-metal firmware.Pi 5 16GB is $305 on raspberrypi.com (Nov 2026); 1-8GB models cost lessOfficial site

Prices are from each official page, checked 2026-11-28; they exclude tax and can change. Swipe the table sideways on a phone.

Path A — ESP32 with the Arduino CLI

Best when you want the agent to own compile, upload and serial monitor with plain shell commands. Steps follow the Arduino CLI getting started guide and Espressif's ESP32 Arduino package.

  1. Install the Arduino CLI. Use Homebrew on macOS, or the official install script on Linux and macOS:
    shell
    # macOS / Linux (Homebrew)
    brew install arduino-cli
    # or the official script
    curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
    arduino-cli version
  2. Add ESP32 board support. This adds Espressif's board package index and installs the ESP32 core.
    shell
    arduino-cli config init
    arduino-cli config add board_manager.additional_urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
    arduino-cli core update-index
    arduino-cli core install esp32:esp32
  3. Find the board's port. Plug the board in over USB. The port looks like /dev/ttyUSB0 or /dev/cu.usbserial-… on Mac/Linux, or COM3 on Windows.
    shell
    arduino-cli board list

    If nothing appears, install the USB-serial driver for your board (often CP210x or CH340) and try another cable — charge-only cables fail silently.
  4. Create, compile and upload a blink test. esp32:esp32:esp32 is the generic ESP32 Dev Module FQBN. Run arduino-cli board listall esp32 to find your exact board.
    shell
    arduino-cli sketch new MyGadget
    arduino-cli compile --fqbn esp32:esp32:esp32 MyGadget
    arduino-cli upload -p /dev/ttyUSB0 --fqbn esp32:esp32:esp32 MyGadget
  5. Read the serial log. Match the baud rate to Serial.begin() in the code (usually 115200). Paste this output back to the agent — most fixes come from it.
    shell
    arduino-cli monitor -p /dev/ttyUSB0 --config 115200
  6. Hand the loop to Claude Code or Codex. Open the agent in the sketch folder and paste the "Build the firmware step by step" prompt below. Tell it the FQBN, port and wiring table, and require a compile + serial read after every milestone.

Path B — ESP32 with PlatformIO

A good fit when the agent manages the whole project, because the board, libraries and build flags live in one platformio.ini file. See the PlatformIO Core install docs.

  1. Install PlatformIO Core. Or install the PlatformIO extension in VS Code, which includes the same CLI.
    shell
    python3 -m pip install -U platformio
    pio --version
  2. Create the project. esp32dev is the generic ESP32 board ID. Find yours in PlatformIO's board list.
    shell
    mkdir my-gadget && cd my-gadget
    pio project init --board esp32dev
  3. Build, upload and monitor. The agent writes code in src/main.cpp, then runs:
    shell
    pio run
    pio run -t upload
    pio device monitor -b 115200
  4. Simulate first in Wokwi (optional). Paste the same sketch into a new ESP32 project on Wokwi to test logic and wiring virtually before you touch real parts. Several builders below let agents flash and test firmware on virtual chips first.
  5. Keep secrets out of git. Put Wi-Fi SSIDs, passwords and API keys in include/secrets.h (or PlatformIO build_flags from a local file) and add that file to .gitignore before the first commit.
    cpp
    // include/secrets.h — DO NOT COMMIT
    #pragma once
    #define WIFI_SSID "your-ssid"
    #define WIFI_PASS "your-password"

Path C — Raspberry Pi over SSH (Linux gadgets)

Use this when you need a full OS: Python GPIO, cameras, a local LLM, Home Assistant or a desk gadget that talks HTTPS. The agent SSHs in and edits files on the Pi.

  1. Flash and boot the Pi. Use the official Raspberry Pi Imager to write Raspberry Pi OS, enable SSH in the imager's settings, and put the Pi on your network.
  2. Connect from your computer. From the machine where Claude Code or Codex runs:
    shell
    ssh pi@raspberrypi.local
    # or: ssh pi@192.168.x.x
    sudo apt update && sudo apt install -y python3-pip python3-gpiozero git

    Prefer SSH keys over passwords. Do not paste your Pi password into the chat.
  3. Give the agent a project folder on the Pi. Clone or create a repo the agent can edit, then open Claude Code / Codex with SSH access (or mount the folder). Start with a GPIO blink or a tiny Flask/FastAPI status page before any fancy hardware.
    shell
    mkdir -p ~/gadgets/desk-meter && cd ~/gadgets/desk-meter
    python3 -m venv .venv && source .venv/bin/activate
    pip install gpiozero flask
  4. Let the agent iterate on-device. Paste the "Raspberry Pi gadget" prompt below. Require the agent to run the script, show stdout/stderr, and only then change wiring or buy parts. For Home Assistant gadgets, see our [Home Assistant + AI agent guide](/how-to/how-to-connect-an-ai-agent-to-home-assistant.html).

Path D: let the agent test its own firmware in Wokwi (no board needed)

Agents write firmware fast but can't see an LED blink. This path gives them a single command that builds the code, runs it in the Wokwi simulator, presses virtual buttons and fails on a crash. Example: an ESP32 with an LED on GPIO2 and a button on GPIO4, built with PlatformIO (Path B). We compiled this project and checked every pass and fail branch of the script on Nov 28, 2026.

  1. Install the Wokwi CLI and set a token. Create a token on the Wokwi CI dashboard. A valid token starts with wok_ and is 44 characters long. Put it in your shell profile, not in the project.
    shell
    curl -L https://wokwi.com/ci/install.sh | sh
    # Windows PowerShell: iwr https://wokwi.com/ci/install.ps1 -useb | iex
    wokwi-cli --version
    export WOKWI_CLI_TOKEN=wok_your_token_here   # add to ~/.zshrc or ~/.bashrc
  2. Point Wokwi at the PlatformIO build. wokwi.toml sits in the project root next to platformio.ini. Wokwi doesn't compile anything; it runs the file pio run produces. (wokwi-cli init can write this file for you.)
    toml
    [wokwi]
    version = 1
    firmware = '.pio/build/esp32dev/firmware.bin'
    elf = '.pio/build/esp32dev/firmware.elf'
  3. Describe the circuit in diagram.json. This is the virtual breadboard: the board, a 220 Ω resistor and LED on GPIO2, and a button from GPIO4 to ground. Run wokwi-cli lint to catch wrong part names or pins.
    json
    {
      "version": 1,
      "author": "KitRank example",
      "editor": "wokwi",
      "parts": [
        { "type": "board-esp32-devkit-c-v4", "id": "esp", "top": 0, "left": 0, "attrs": {} },
        { "type": "wokwi-led", "id": "led1", "top": -60, "left": 150, "attrs": { "color": "red" } },
        { "type": "wokwi-resistor", "id": "r1", "top": 20, "left": 140, "rotate": 90, "attrs": { "value": "220" } },
        { "type": "wokwi-pushbutton", "id": "btn1", "top": 120, "left": 150, "attrs": { "color": "green" } }
      ],
      "connections": [
        [ "esp:TX", "$serialMonitor:RX", "", [] ],
        [ "esp:RX", "$serialMonitor:TX", "", [] ],
        [ "esp:2", "r1:1", "green", [] ],
        [ "r1:2", "led1:A", "green", [] ],
        [ "led1:C", "esp:GND.1", "black", [] ],
        [ "esp:4", "btn1:1.l", "blue", [] ],
        [ "btn1:2.l", "esp:GND.2", "black", [] ]
      ]
    }
  4. The firmware under test. Prints READY at boot and toggles the LED on each button press. Your agent replaces this with your real project; keep the READY line so the test knows it booted.
    cpp
    #include <Arduino.h>
    
    const int LED_PIN = 2;      // GPIO2 -> 220 ohm resistor -> LED -> GND
    const int BUTTON_PIN = 4;   // GPIO4 -> button -> GND (internal pull-up)
    
    bool ledOn = false;
    int lastButton = HIGH;
    
    void setup() {
      Serial.begin(115200);
      pinMode(LED_PIN, OUTPUT);
      pinMode(BUTTON_PIN, INPUT_PULLUP);
      digitalWrite(LED_PIN, LOW);
      Serial.println("READY");
    }
    
    void loop() {
      int b = digitalRead(BUTTON_PIN);
      if (b == LOW && lastButton == HIGH) {   // pressed (falling edge)
        ledOn = !ledOn;
        digitalWrite(LED_PIN, ledOn ? HIGH : LOW);
        Serial.println(ledOn ? "LED ON" : "LED OFF");
        delay(50);                            // simple debounce
      }
      lastButton = b;
    }
  5. Write a scenario test. Scenarios press buttons, set sensor values and check pins and serial output. Save as button.test.yaml. Scenarios are in alpha, so check the scenario docs if a step name changes.
    yaml
    name: 'Button toggles the LED'
    version: 1
    steps:
      - wait-serial: 'READY'
      - expect-pin:
          part-id: esp
          name: 2
          value: 0
      - set-control:
          part-id: btn1
          name: pressed
          value: 1
      - delay: 100ms
      - set-control:
          part-id: btn1
          name: pressed
          value: 0
      - wait-serial: 'LED ON'
      - expect-pin:
          part-id: esp
          name: 2
          value: 1
      - set-control:
          part-id: btn1
          name: pressed
          value: 1
      - delay: 100ms
      - set-control:
          part-id: btn1
          name: pressed
          value: 0
      - wait-serial: 'LED OFF'
  6. Add the one-command check. Save as check.sh and run chmod +x check.sh. It exits 0 only if the build passes, the board boots and prints READY without a crash ("Guru Meditation"), and every *.test.yaml passes. A hang ends with exit code 3 instead of running forever.
    bash
    #!/usr/bin/env bash
    # check.sh - build the firmware, then run it in the Wokwi simulator.
    # Exit 0 = pass. Anything else = fail; the agent must read sim.log and fix the code.
    set -uo pipefail
    cd "$(dirname "$0")"
    mkdir -p build
    : "${WOKWI_CLI_TOKEN:?Set WOKWI_CLI_TOKEN (create one at https://wokwi.com/dashboard/ci)}"
    
    echo "== 1/3 build =="
    if ! pio run > build/build.log 2>&1; then
      tail -n 30 build/build.log; echo "FAIL: build"; exit 1
    fi
    
    echo "== 2/3 boot test (must print READY, must not crash) =="
    wokwi-cli . --timeout 10000 --expect-text "READY" --fail-text "Guru Meditation" \
      --timeout-exit-code 3 --serial-log-file build/sim.log -q
    rc=$?
    if [ $rc -ne 0 ]; then tail -n 30 build/sim.log; echo "FAIL: boot (exit $rc)"; exit 2; fi
    
    echo "== 3/3 scenario tests =="
    for t in *.test.yaml; do
      [ -e "$t" ] || continue
      wokwi-cli . --timeout 20000 --scenario "$t" --fail-text "Guru Meditation" \
        --timeout-exit-code 3 --serial-log-file "build/${t%.yaml}.log" -q
      rc=$?
      if [ $rc -ne 0 ]; then tail -n 30 "build/${t%.yaml}.log"; echo "FAIL: $t (exit $rc)"; exit 2; fi
      echo "pass: $t"
    done
    echo "PASS: build + simulation"
  7. Make the agent use it. Add these lines to CLAUDE.md (Claude Code) or AGENTS.md (Codex, Cursor) in the project root.
    markdown
    ## Firmware rules
    - After every code change run ./check.sh. A task is not done until it prints PASS.
    - If it fails, read build/build.log or build/*.log, fix the cause, and run it again.
    - For each new feature, add a *.test.yaml scenario that proves it works.
    - Never edit check.sh or delete a test to make it pass. Ask me first.
    - Only flash the real board (pio run -t upload) after ./check.sh passes, and ask before you do.
  8. Optional: Wokwi skills and MCP for Claude Code. The free Wokwi agent skills teach the agent to decode ESP32 crash backtraces, find memory leaks and screenshot-test displays. The experimental MCP server lets it start a simulation, read serial and press buttons step by step. Run the first two lines inside Claude Code, the last one in your terminal.
    shell
    /plugin marketplace add wokwi/skills
    /plugin install wokwi@wokwi-skills
    
    # MCP server (needs WOKWI_CLI_TOKEN set in your shell)
    claude mcp add --transport stdio --env WOKWI_CLI_TOKEN=$WOKWI_CLI_TOKEN wokwi -- wokwi-cli mcp
  9. Optional: run the same test on every GitHub push. Add the token as a repository secret named WOKWI_CLI_TOKEN, then save this as .github/workflows/firmware.yml. It uses the official wokwi-ci-action.
    yaml
    name: firmware
    on: [push, pull_request]
    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-python@v5
            with:
              python-version: '3.12'
          - run: pip install platformio && pio run
          - uses: wokwi/wokwi-ci-action@v1
            with:
              token: ${{ secrets.WOKWI_CLI_TOKEN }}
              timeout: 20000
              scenario: 'button.test.yaml'
              fail_text: 'Guru Meditation'

Further reading: How to design and 3D print things with AI Have your agent design the case as OpenSCAD code and check it before printing.

Further reading: How to test your app with AI agents The same self-check idea for web and mobile apps, using Playwright.

Further reading: How to connect an AI agent to Home Assistant Hook your finished ESP32 sensor into Home Assistant and let an agent use it.

Further reading: How to build a smart home and voice assistant with AI Turn ESP32 boards into local voice satellites.

Copy-paste prompts

Written for this setup. Replace anything in [brackets] before you send it.

1. Plan my hardware project

Start here, before buying parts.

I want to build: [describe what it does, where it lives, how it's powered]. I already have: [boards, sensors, tools]. Budget: [amount].
Give me: the board you recommend and why; a parts list with exact part types; a pin-by-pin wiring table with voltages (flag any 5 V part on a 3.3 V pin); the power budget and expected battery life if it runs on battery; and the main risks. Don't write code yet.

2. Build the firmware step by step

Use in Claude Code or Codex in the project folder, with the board plugged in.

Build firmware for this project: [paste the plan and wiring table]. Use [Arduino CLI with FQBN esp32:esp32:esp32 / PlatformIO with board esp32dev] on port [port].
Work in small milestones: 1) serial print and blink, 2) read one sensor, 3) add the display or network, 4) add power saving. After each one, compile, upload, read the serial monitor and show me the output before moving on. Ask before installing any library. Never hardcode my Wi-Fi password; put it in a secrets header that's ignored by git.

3. Check my wiring before power-on

Send a clear photo of the breadboard plus your wiring table.

Before I plug this in, check my wiring. Photo: [attach]. Intended wiring table: [paste]. Board: [model]. Look for: wrong voltage on any pin, shorts between power and ground, missing ground connections, pull-up resistors for I2C, the right current-limiting resistors for LEDs, and pins that are input-only or used during boot on this board. List every problem you can see, and say which wires you can't see clearly.

4. Debug from the serial log

When it compiles but doesn't work.

My [board] project compiles and uploads but [what goes wrong]. Here is the serial output from boot: [paste]. Here is the code: [paste or point to files]. Wiring: [table]. Find the most likely cause, explaining what each error or reset reason in the log means. Suggest the smallest change or test to confirm it before rewriting anything.

5. Simulate it in Wokwi first

Before you buy parts or while waiting for shipping.

Turn this plan into a Wokwi ESP32 project I can paste into wokwi.com: [paste plan + wiring]. Give me: the diagram.json wiring, the sketch that proves the logic (serial prints for every state), and a short test checklist. Flag anything Wokwi can't simulate (exact RF, battery life, some sensors) so I know what still needs real hardware.

6. Turn the prototype into a KiCad board

When the breadboard version works.

My breadboard prototype works: [wiring table, parts list, photo]. Help me turn it into a KiCad schematic and a two-layer PCB. List every component with a footprint suggestion, flag parts that are hard to hand-solder, add decoupling capacitors and a programming header, and give the board size and mounting holes for a [case or enclosure]. Point out anything I should test on the prototype before ordering boards. Do not claim the board is ready to manufacture until I have reviewed voltages and footprints.

7. Raspberry Pi gadget

Path C, with SSH to the Pi.

I have a Raspberry Pi at [host] with SSH key access. Project folder: [path]. Goal: [desk meter / voice box / camera gadget / HA bridge].
Write a small Python app using gpiozero (or the Pi camera stack if needed). Create a venv, a README with pin wiring, and a systemd user service so it starts on boot. Run it, show me the logs, and stop if anything needs root or exposes a port to the whole LAN — ask me first. Keep secrets in a chmod 600 env file, not in the repo.

8. Set up the self-test loop

Once per project, in Claude Code or Codex, before writing features.

Set up Wokwi testing for this PlatformIO project so you can check your own work without my board. Board: [esp32dev]. Parts and pins: [paste wiring table].
1) Write wokwi.toml pointing at .pio/build/[env]/firmware.bin and .elf.
2) Write diagram.json with the same parts and pins as my wiring table, then run wokwi-cli lint and fix every error.
3) Make the firmware print READY at the end of setup().
4) Create check.sh that runs pio run, then wokwi-cli with --expect-text READY --fail-text "Guru Meditation" --timeout-exit-code 3, then every *.test.yaml scenario.
5) Run ./check.sh and show me the output. Don't flash the real board.

9. Write a scenario test for each feature

After the agent adds a feature such as a button, sensor threshold or menu.

Write a Wokwi scenario file named [feature].test.yaml that proves this feature works: [describe the behaviour, e.g. when temperature goes above 30 C the fan pin goes HIGH and serial prints FAN ON].
Use wait-serial for messages, set-control to press buttons or change sensor values, delay with units (e.g. 200ms), and expect-pin on the board pin. Then run ./check.sh. If the test fails, fix the firmware, not the test, unless the test itself is wrong; if so, explain why before changing it.

10. Fix a crash from the backtrace

When serial shows "Guru Meditation Error" or the board keeps rebooting.

My ESP32 crashes. Here is the full serial output, including the Backtrace line: [paste]. The ELF file is .pio/build/[env]/firmware.elf.
Decode the backtrace into function names and line numbers (use xtensa-esp32-elf-addr2line from the PlatformIO toolchain, or pio's esp32_exception_decoder monitor filter). Tell me the root cause in one sentence, fix it, add a scenario test that reproduces the crash, and run ./check.sh until it passes.

11. Plan battery life and deep sleep

Before you put the gadget on a battery.

This gadget will run on [battery type and capacity, e.g. 2,000 mAh LiPo]. It needs to [wake every X minutes, read the sensor, send over Wi-Fi]. Board: [model]. Other parts: [list].
Estimate the current in each state (active, Wi-Fi transmit, deep sleep) with your source for each number, then the battery life. Change the firmware to use deep sleep between readings, turn off anything not needed, and list the hardware changes (power LED, regulator choice) that would matter most. Mark every estimate that I should measure with a USB power meter.

12. Review my board before I order it

Before you upload KiCad Gerbers to a PCB maker.

Review this KiCad project before I order boards: [attach the .kicad_sch and .kicad_pcb, or paste the netlist and BOM].
Check: every IC has the right supply voltage and a decoupling capacitor near its power pin; no 5 V signal goes to a 3.3 V-only pin; footprints match the exact parts in the BOM (package size, pin order); trace widths suit the current; the USB, antenna and mounting holes have clearance; ERC and DRC are clean. Give me a numbered list of problems, worst first. Don't change any files.

Safety checklist

Related guides: How to design and 3D print things with AI · How to connect an AI agent to Home Assistant (Claude, ChatGPT, Claude Code, Codex, 2026) · How to take your robot vacuum off the cloud with AI (Valetudo, Matter, Home Assistant) · How to run local LLMs with AI agents (Claude Code, Codex and OpenCode on Ollama, LM Studio or llama.cpp) · How to build a smart home and voice assistant with AI agents · How to self-host AI agents at home on a Raspberry Pi, Mac mini or old PC · How to check if your devices are spying on you with AI (Nmap, Pi-hole, TV ACR) · How to fix Wi-Fi and secure your home network with AI (Nmap, Pi-hole, NextDNS, UniFi) · How to make 3D scenes and models with AI and Blender (Blender MCP, Claude, Codex): step-by-step · How to port or remake a classic game with AI

What it costs

The Daily 5

Get five new use cases like these tomorrow morning

Five new real AI use cases every morning. Free. Unsubscribe any time.

Real examples (24)

Dev & opsHacker News · ofrzeta

Let Claude design schematics and PCBs in KiCad

Konnect is a KiCad 10 plugin that lets Claude and other assistants design schematics and PCBs over MCP: 228 tools for schematic capture, layout, routing, ERC/DRC checks, JLCPCB part search and manufacturing exports, with skills that teach Claude KiCad conventions.

See pricing page1 hourAdvanced
Personal & lifeX · @Lumesssss

Make your PS5 less annoying with Claude Code and a home DNS blocker

The PS5 has no developer mode, so instead of touching the console he had Claude Code build everything around it: a DNS blocker on an always-on Raspberry Pi or mini PC that blocks promo and tracking domains for the whole house, wake-from-phone, streaming to a laptop, and Home Assistant showing the console status and putting it to sleep at 1am.

$17/mo1 eveningIntermediate

Common questions

How do you build hardware projects with AI agents?
Pick a common board (ESP32 for Wi-Fi/Bluetooth, Arduino for simple sensors, Raspberry Pi when you need Linux), describe the device in plain words, and let Claude Code or Codex write firmware in small milestones. Install the free Arduino CLI or PlatformIO so the agent can compile, upload and read the serial log itself. Test logic first in the free Wokwi simulator, and give the agent a check script that builds the firmware and runs it in Wokwi from the terminal so it can prove each change works before you flash anything, then wire from a pin-by-pin table (watch 3.3 V vs 5 V), flash over USB and paste serial output back to the agent. When the breadboard works, use free KiCad for a schematic and PCB — and have a person check voltages, currents and footprints before you order boards.
Can AI write Arduino or ESP32 code?
Yes. Coding agents such as Claude Code and Codex write, compile and debug Arduino and ESP32 firmware when they can run the Arduino CLI or PlatformIO and read the serial monitor. Give them your exact board and parts, and paste serial output back when something fails.
Do I need electronics experience?
It helps, but many builders below started as beginners. Ask the agent for a pin-by-pin wiring table with voltages, start with one component at a time, and check voltages before powering on. Use Wokwi to prove the logic before you buy parts.
Can AI design a circuit board?
Agents can draft KiCad schematics and board layouts and suggest footprints — builders below do this, and some even edit KiCad live through its API. A person still needs to check voltages, clearances, footprints and the BOM before you order boards.
Arduino CLI or PlatformIO — which should I pick?
Arduino CLI is simpler if you already think in sketches. PlatformIO is better when the agent owns the project long-term, because board, libraries and flags live in one `platformio.ini`. Both are free; pick one and stay consistent.
ESP32 or Raspberry Pi?
ESP32 (or Arduino) when you want a cheap, low-power gadget with Wi-Fi or Bluetooth firmware. Raspberry Pi when you need Linux, Python, a camera, a local model or Home Assistant. You can mix them: an ESP32 sensor talking to a Pi.
Is it safe to let an agent flash my board?
Only flash boards you can recover (USB bootloader, spare blank chip). Start with blink + serial print. Never let an agent design or wire mains (110–240 V). Keep lithium battery charging on a proper protection circuit, and keep Wi-Fi passwords out of shared repos.
Can an AI agent test firmware without the real board?
Yes. Give it the free Wokwi CLI and a token, and it can build the firmware, run it in Wokwi's simulator, press virtual buttons, set sensor values and check pins and serial output from the terminal. Path D above shows a check.sh that exits 0 only when everything passes. You still test on the real board before you trust it.
Does Wokwi simulate Wi-Fi and Bluetooth?
Wi-Fi yes, Bluetooth no. Wokwi's ESP32 docs list Wi-Fi as simulated on the ESP32, S3, C3, C5, C6 and P4, and Bluetooth as not implemented. Test Bluetooth features on real hardware.
How much does Wokwi testing cost?
The simulator on wokwi.com is free for public projects. Running it from the CLI or CI uses simulation time: 50 minutes per rolling 30 days on the free plan, 200 on Hobby (€5.6/mo yearly), 500 on Hobby+ (€8.1/mo) and 2,000 on Pro (€20/seat/mo). Free and Hobby sessions are capped at 5 minutes each, so keep tests short with --timeout.
Does Wokwi keep my firmware?
Wokwi says the CI server receives your firmware binary, simulates it and deletes it when the simulation finishes. If you can't upload firmware to a cloud service, Wokwi offers on-premises CI by request.
Which AI tools do people use to build hardware projects?
Across the 24 sourced use cases in this guide, the most used tools are Claude Code, ESP32, Grok Bot, Claude, Home Assistant.
How much does it cost to get started?
5 of the 24 use cases can start on a free plan. The most common paid starting price is $17/mo (7 use cases). Prices come from each tool's official pricing page.
How long does setup take?
4 of the 24 use cases list a setup time of an hour or less. Each card shows the setup time the builder reported.
Are these real examples?
Yes. Every use case links to its public source (an X post, a Hacker News thread or a GitHub repo) with the author and date, so you can check it yourself.

The Daily 5

Liked this guide? Get five new use cases tomorrow morning

Five new real AI use cases every morning. Free. Unsubscribe any time.

More how-to guides

How to make faceless YouTube videos with AI: tools, commands, prompts and YouTube's 2026 rules · How to automate work with n8n and AI · How to vibe code an app with Claude Code · How to build AI agents for SEO and ads · How to run multiple coding agents at once (git worktrees, tmux, Claude Code agent teams, Codex and Cursor) · How to build an MCP server for AI agents · How to add memory to Claude Code, Codex and Cursor: CLAUDE.md, AGENTS.md, auto memory and shared MCP memory (2026) · How to secure a vibe-coded app before you launch · How to observe and debug AI agents · How to build agent memory and context layers · How to control Claude Code and Codex from your phone (Remote Control, ChatGPT app, SSH and tmux) · How to add payments to vibe-coded apps · How to run local LLMs with AI agents (Claude Code, Codex and OpenCode on Ollama, LM Studio or llama.cpp) · How to set up Grok Bot agents for real work: first Bot, routines, webhooks and a team of Bots, with prompts · How to build with Gemini 4 Argon (API, Antigravity CLI, and the Dec 1 2026 price) · How to use AI for taxes, bills and budgets: build a budget from bank CSVs, catch bill increases and check your tax return · How to make AI video ads and Reels with agents · How to set up Hermes Agent workflows · How to vibe code a game with AI: one-file browser games, Phaser 4 and Godot 4.7, with an AI playtest loop and 13 prompts · How to replace SaaS subscriptions with vibe-coded tools · How to use AI agents for errands, calls and shopping · How to use Cursor agents and automations · How to make 3D scenes and models with AI and Blender (Blender MCP, Claude, Codex): step-by-step · How to use Claude Code skills and plugins · How to cut Claude Code, Codex and Cursor costs: commands, settings and prompts that save tokens (Nov 2026) · How to automate a small business with AI agents · How to compare AI models on the same prompt (Arena, OpenRouter, promptfoo and a blind test) · How to make an AI music video for your song (Suno, Grok Imagine, Kling, Veo) · How to use AI agents with Obsidian notes (CLI, Claude Code, MCP) · How to build apps and games for your kids with AI · How to use ChatGPT for real projects and everyday tasks · How to make AI agents ask for approval before they act · How to build AI trading and investing agents (Alpaca MCP and a six-agent Grok Bot desk) · How to build AI agents that make and answer phone calls · How to plan meals and groceries with AI (weekly plan, shopping list, Instacart cart in ChatGPT, Claude or Gemini) · How to use AI agents for fitness and health · How to undo, checkpoint and stop runaway coding agents · How to use AI agents for job hunting · How to automate social media posts with AI agents · How to build a smart home and voice assistant with AI agents · How to make money with AI agents: 4 setups real people get paid for (local websites, affiliate sites, digital products, freelance gigs) · How to build a website with AI agents · How to use AI agents for research: literature reviews, citations and papers (Claude, Zotero, Elicit) · How to build an iPhone or Android app with AI · How to automate email and your inbox with AI agents · How to use AI agents on Linux servers and homelabs safely (Claude Code, Codex, SSH, Proxmox) · How to build Telegram, Discord and WhatsApp bots with AI · How to research memecoins and crypto with AI agents (read-only first, 2026) · How to remove ads and bloatware from your smart TV with AI (Android TV, Google TV, Samsung, LG) · How to scan and organize receipts and paperwork with AI (ChatGPT, Paperless-ngx) · How to organize and search your photo library with AI (Immich, Google Photos, Videre) · How to check a medical bill for errors and appeal an insurance denial with AI · How to set up local AI security cameras with Frigate, Ollama and Home Assistant (no cloud) · How to set up a Jellyfin media server with AI help (free Plex alternative): Docker, hardware transcoding, remote access · How to lower your electric bill with Home Assistant and AI: energy dashboard, smart plugs, time-of-use automations · How to self-host AI agents at home on a Raspberry Pi, Mac mini or old PC · How to find and cancel subscriptions you forgot about with AI · How to run a private ChatGPT at home on your own computer (Ollama + Open WebUI) · How to build and install your own app on a Samsung TV with AI · How to fix a printer that won't print with AI · How to learn anything with an AI tutor: ChatGPT Study mode, Gemini Guided Learning, NotebookLM flashcards and Anki (2026) · How to build an AI second brain (Karpathy-style LLM wiki) with Obsidian and Claude Code: setup, prompts and costs · How to reverse-engineer and revive old devices with AI · How to edit videos with Claude Code and Codex: cut footage with ffmpeg, Whisper and auto-editor, find scenes and bad frames, drive DaVinci Resolve over MCP (2026) · How to set up an AI family assistant · How to make a Godot or Unity game with AI: Godot AI, Unity CLI and MCP setups for Claude Code and Codex · How to build a custom Android TV or Google TV launcher with AI (manifest, adb commands, HDMI inputs and prompts) · How to use Claude Code and Codex together (Codex plugin, shared AGENTS.md, worktrees, auto cross-review and GitHub Actions) · How to build your own invoicing and bookkeeping app with AI · How to make a browser arcade game with AI (Claude Code, Codex, three.js, 2026) · How to make a product demo or launch video with AI (Claude Code, Remotion, HyperFrames and Playwright) · How to fix Wi-Fi and secure your home network with AI (Nmap, Pi-hole, NextDNS, UniFi) · How to control Claude Code and Codex by voice (built-in /voice, local Whisper and hands-free setups) · How to design a PCB and electronics with AI · How to save, share and resume coding agent sessions · How to run AI coding agents in a sandbox · How to make a multiplayer game with AI · How to let AI control your computer: Claude, Codex, Windows-MCP and Playwright setups with prompts · How to build a Mac menu bar app with AI · How to port code to another language with AI (Claude Code or Codex, golden tests, C to Rust) · How to make an AI animated short film or anime (Seedance, Kling, Grok Imagine, Claude Code) · How to build your own coding agent or harness (Claude Agent SDK, a 60-line loop, Pi, mini-swe-agent and Terminal-Bench) · How to get notified when Claude Code or Codex needs you · How to build a Chrome extension with AI (Claude Code, Codex or Cursor, tested Manifest V3 code) · How to use AI agents with Excel and Google Sheets · How to run Claude Code and Codex in a desktop app (T3 Code, Codex app, Claude Desktop) · How to make a song or album with AI · How to vibe code classroom apps and quizzes as a teacher · How to plan and book a trip with an AI agent · How to make motion graphics and animated videos with Claude Code or Codex (Remotion, HyperFrames, Manim, 2026) · How to mod and reverse engineer games with AI · How to run AI agents overnight while you sleep · How to negotiate bills and get refunds with an AI agent · How to let an AI agent use your phone: Grok Bot phone tools, Android over ADB, iPhone Mirroring, a safe emulator test and repeatable Maestro flows, with prompts · How to build a Polymarket bot with AI (and Kalshi): step-by-step with the official SDKs · How to use Claude Duet: setup, connectors, standing instructions, prompts and real examples (2026) · How to build private apps just for yourself with AI · How to design and 3D print things with AI · How to automate customer support with AI agents: real setups · How to find leads and automate sales outreach with AI agents · How to run a Shopify or online store with AI agents · How to launch an app and get your first users with AI · How to build a team of AI agents with a chief of staff · How to make a hand-tracking or gesture-controlled game with AI · How to test your app with AI agents (Playwright MCP, Claude Code, Codex, 2026) · How to give an AI agent a budget or a card safely · How to share passwords and logins with an AI agent safely · How to get AI code review on your pull requests (Claude Code, Codex, Copilot, CodeRabbit and open-source PR-Agent) · How to review contracts, leases and fine print with AI · How to make slides and presentations with AI · How to take meeting notes and track follow-ups with AI · How to scrape websites and extract data with AI agents · How to make a podcast with AI: two-host episodes, cloned voices, clean audio, transcripts and clips · How to use AI agents for security scans and threat intel · How to build a dashboard with AI (Claude Code, Streamlit, Grok Bot Pages and Metabase) · How to clone your voice and make AI voiceovers · How to make AI images, thumbnails and product photos · How to write a CLAUDE.md or AGENTS.md file: one rules file for Claude Code, Codex, Cursor, Copilot and Gemini, with templates · How to build an AI chatbot for your own documents · How to port or remake a classic game with AI · How to build a VST plugin or synth with AI (Claude Code, Codex, JUCE): step-by-step · How to trigger AI agents with webhooks and events · How to find a home or rental with AI (Zillow, Redfin and Apartments.com in ChatGPT and Claude) · How to track Claude Code and Codex usage limits · How to build a daily AI briefing or news digest · How to check if your devices are spying on you with AI (Nmap, Pi-hole, TV ACR) · How to track smart-money wallets and copy trade with AI: Polymarket leaderboard, Solana and Ethereum wallet alerts and convergence rules · How to translate and localize your app or content with AI (i18next, Claude Code, DeepL and fastlane) · How to write and publish a book with AI: editing setup, KDP rules, EPUB commands and prompts · How to control your TV with an AI agent (ADB, Roku ECP, Samsung/LG, Home Assistant) · How to take your robot vacuum off the cloud with AI (Valetudo, Matter, Home Assistant) · How to connect an AI agent to Home Assistant (Claude, ChatGPT, Claude Code, Codex, 2026) · How to let an AI agent do your bookkeeping (Xero, QuickBooks, MCP) · How to run an AI agent 24/7 on an old Android phone or TV box (Termux, 2026) · How to see all your bank accounts in one place with AI