AI guides

Designing an LED Badge with an AI Agent and the EasyEDA Pro CLI

By AINRK 编辑0 viewsSource: 立创开源硬件平台
Designing an LED Badge with an AI Agent and the EasyEDA Pro CLI

The reference combines a CH32V203 MCU, 256 LEDs and a four-layer board. This complete workflow covers setup, requirements, human checks, simulation limits and troubleshooting, distinguishing zero DRC errors from a validated circuit.

The target: a 32×8 LED badge

Opening of the AI-designed badge tutorial

The OSHWHub tutorial uses a “prompt badge” to demonstrate an AI agent designing a circuit through the EasyEDA Pro CLI. The agent creates the project, schematic, placement, routing, DRC checks and manufacturing exports. People confirm requirements, inspect connections and decide whether to order.

Reference appearance of the 32×8 LED prompt badge

The reference is a 96.5×49.5 mm four-layer board. Its 256 red 0402 LEDs form a 32×8 matrix, with two HT16K33A drivers each controlling half. It uses a CH32V203C8T6 MCU, a 12 MHz crystal, an LSM6DS3TR-C six-axis IMU, RESET/BOOT/MODE buttons, USB-C power and data, and a debug header.

Electronic badge design demonstration

This is a reviewable design workflow, not a guarantee of a working board from one sentence. The tutorial is organized below into setup, design, acceptance and troubleshooting, retaining its main prompt requirements and checks. AINRK did not run the agent or fabricate the board.

Prepare the client, directory and agent

Preparing EasyEDA Pro and an AI agent

The tutorial uses Windows 11 and also lists Windows 10 build 19041 or later, macOS and Linux. It calls for at least 8 GB RAM, preferably 16 GB, several GB of disk space and access to the component library. AI subscription or API fees are charged by its provider. A limited budget can cover the schematic first, before deciding whether to continue to the PCB.

The official documentation confirms that lceda-pro is bundled with the Pro desktop client from version 4.1.70 onward. It is not an online-editor feature and needs no separate CLI installation. The tutorial uses semi-offline mode for local projects and online component searches. Obtain the appropriate system installer from the official site.

The agent needs command execution, file access within the project and human confirmation for consequential actions. The report lists Claude Code, Codex, Gemini CLI, Cursor, Cline, OpenCode, DeepSeek Harness, WorkBuddy, Zcode, Trae and Qoder. These names do not imply identical capabilities or costs; follow the selected tool’s official instructions.

If an API key is required, use the tool’s credential settings or environment variables, not project files, documentation or repositories. Create a short English-path directory and point the agent at it. Check the path before trusting it or granting access; disabling every approval is unnecessary.

Check connectivity before setting design constraints

The preparation prompt has three requirements: follow the official CLI guide; use lceda-pro doctor to confirm the endpoint and project name before editing; and check the returned ok field and on-disk files after key actions, reporting project paths, exports and session closure at the end. A short name such as prompt-badge is suitable.

Preparation prompt in a DeepSeek window

State the design requirements individually rather than only asking for a badge:

  • A 32×8 red LED matrix with 256 0402 LEDs, two HT16K33A drivers and separate I²C buses for the two halves.
  • A CH32V203C8T6 plus 12 MHz crystal; USB-C power and data, a 0.75 A resettable fuse and ME6211 for 3.3 V.
  • An SPI-connected LSM6DS3TR-C, three buttons and a 1×4 debugging connection.
  • A 96.5×49.5 mm four-layer stack: L1 signal, In1 ground, In2 5 V and L4 signal.
  • LCSC identifiers for components, stock checked before ordering, and Gerber, BOM and coordinate exports.

The source prompt specifies 5 V I²C pull-ups and calls its debug connection SWD. These are source specifications, not verified wiring: check the actual MCU pins, driver logic levels and debugging protocol against their datasheets, adjusting the connection or adding level translation where needed. DRC cannot establish these electrical conditions.

Badge requirements and generation workflow

The workflow is project creation, schematic and component selection, connections, PCB creation and change import, placement and routing, rule-error repair, then exports. The client window may remain open. Inspect the resulting .eprj3 through the CLI or editor. Folder projects synchronize both ways with the editor, so avoid renaming, moving or manually editing internal files during work.

The tutorial suggests sending “continue” after an unexpected stop. First inspect where it stopped, any pending approval or error, and the current files, then resume without repeating completed operations.

Acceptance is more than zero DRC errors

The example directory uses prompt-badge.eprj3 as its entry, with sch and pcb subdirectories and an optional panel directory. Have the agent list the output files, then open the design in the editor.

Badge project files and acceptance checks
  • Rerun PCB design-rule checks and address every report. Zero errors only means passing the rules currently configured.
  • Check the four-layer stack and 96.5×49.5 mm outline, also given as 3800×1950 mil in the source.
  • Verify the 256 LEDs, two drivers, MCU, crystal, USB-C, power circuitry, IMU, buttons and debug connection.
  • Manually inspect the netlist, supplies, logic levels, pins and connections rather than relying on the agent’s completion claim.
  • Ensure matching, nonempty Gerber, BOM (CSV/XLSX) and coordinate files exist.
  • Check identifiers and assembly-library stock. The reference has 294 components; its 295 exported rows include the PCB-only U6 JLC QR-code mark.

The official example at board/rev3-4layer/prompt-badge-4layer.eprj3 can be inspected for comparison. Placement, routing, component counts and even netlists may vary between runs, so a reference does not replace review of the current version. PCB orders use Gerber files; assembly also requires BOM and coordinates. Confirm models, stock and manufacturing parameters before payment.

Simulation and rendering still requiring manual work

The tutorial explicitly limits the workflow: the CLI does not run SPICE directly, so circuit simulation needs the editor or external tools. PCB electromagnetic and thermal analysis also requires external software, such as KiPI in the example. Simulations shown in the video were not automatic CLI outputs, and ray-traced 3D preview requires manual opening.

Troubleshoot by stage: for command not found, check the Pro installation and executable path, then reopen the terminal. For doctor connected:false, inspect the client and endpoint. Missing components suggest network or library issues; DRC errors need specific fixes. Check status before restarting a stalled conversation. For path or write failures, save and close synchronization before moving to a short English path, rather than moving an actively synchronized project.

The tool-ecosystem event

The latter part introduces the AI-driven hardware-development tool-ecosystem warm-up competition. One track covers agents, Skills and workflows; another covers EDA plugins, CLI/SDK/MCP, CI scripts and converters. Suggested areas include DFM, revisions, stack-up and impedance, simulation, board-enclosure coordination and embedded tools. These are competition ideas, not existing EDA features.

The report lists RMB 200,000 shared among the top seven with potential JLC offers, RMB 90,000 shared by places 8–35, a choice of a RMB 150 JD card or RMB 300 SMT voucher for the top 60%, and a RMB 100 color-PCB completion voucher. Eligibility, places, dates and employment conditions depend on the official rules; promotional wording is not guaranteed employment or an award.

Hardware tool-ecosystem competition rewards

The source links to the event page. Its process is to open the official site, choose project registration, fill in details and follow the page’s group instructions. Participation is a reader’s own decision.

Competition registration entry
Project-registration information form

Sources: the official EasyEDA Pro CLI guide, its prompt-badge example repository and the original OSHWHub tutorial. No webpage prompts were executed and no services were purchased.

Edited by AINRK. Reporting lead: Designing a Badge with an AI Agent and EasyEDA Pro (opens in a new tab); original reporting: OSHWHub; original author: OSHWHub; source date: 2026-12-04 10:22 (Beijing time, UTC+8).

Reference: Source at prodocs.lceda.cn (opens in a new tab)

Reference: Source at github.com (opens in a new tab)

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)