Design an ESP32 display PCB as code with Claude Code

A first-time PCB designer had Claude Code write a Python-defined KiCad board, checked and simulated it, and ordered five assembled boards…

Used for
Creative
Skill needed
Requires coding
Shown in video
Partial demo
Summary based on
Transcript

AI Designed My First PCB for My ESP32 Project

Published Oct 28, 20269:43515 views7 likes

Key moments

  • 5:2312 V-safe cutoff added after design finished
  • 6:10Power simulation with wrong voltage
  • 8:18Five assembled boards ordered for $63

What they made

Five assembled boards arrived from JLCPCB after passing three design checks and a power simulation; power-up and 24 V test deferred to Part 2.

$63 for five boards (~$12.60 each) before shipping

8:18

How they did it

  1. Human

    Listed requirements for a backpack board: one cable for power and programming, overvoltage protection, amp socket, status LEDs, removable SD card, small enough for the droid head.

    Creator-reported
  2. AI

    Wrote the whole board as code: every component and connection in one Python file, with a second script driving KiCad to place every trace.

    Creator-reported · Claude Code
  3. AI5:23

    Added a 12 V-safe cutoff circuit after the design was finished, cutting power above about 6 V.

    Stated in video · Claude Code
  4. AI + human5:39

    Ran three design checks (electrical rules, design rules, 91-pin schematic-to-board comparison) with zero errors and mismatches.

    Stated in video · KiCad
  5. AI6:10

    Simulated the power circuit in KiCad's simulator: 4.6 V from USB, 4.4 V under a full-volume beep, and 0 V reaching the display at 12 V or 24 V.

    Stated in video · KiCad
  6. AI + human6:41

    Generated a 1:1 paper template for a fit check; the print was inaccurate, so the human measured the real display with calipers (22.86 mm vs just under 23 mm).

    Stated in video · Claude Code
  7. Human

    Uploaded the design to JLCPCB, chose 1.6 mm lead-free blue boards with factory assembly, and ordered five boards with 22 parts all in stock.

    Creator-reported · JLCPCB

What you can reuse

  • Defining a PCB as code lets one number change rebuild the whole board and rerun every check.
  • Simulating the power path before ordering caught the overvoltage behavior without risking hardware.
  • A paper template was not accurate enough; calipers on the real part gave the reliable fit check.

Trade-offs

  • Boards had only just arrived; power-up, soldering and the 24 V test are deferred to Part 2, so real operation is unproven.
  • The 1:1 paper template printed at 89% and was not accurate enough even at 100%, requiring caliper measurement.
  • Display soldering is done by hand and untested in this video.
  • Cost excludes shipping, amplifier, speaker and link cable.

AI-generated case summaries can contain mistakes. Report an error

Related cases

Build reusable agents and bots

DIY AI Voice Device with ESP32 and Claude

Built a portable AI voice device using an ESP32 and Claude-generated firmware, with Bluetooth fallback and Tailscale remote access.

ClaudeTailscale674.4K views