← All posts

Blinky: your first schematic with etch

· Joe Cuffney

Every hardware project starts with a blinking LED. It is the "hello world" of circuits. This post walks through making one in etch, from a single sentence to a verified schematic, including the part where the first check fails.

Step 1: the prompt

Here is the whole prompt:

a blinking LED on 3.3 V, flashed over a header

That is short on purpose. I wanted to see what etch would fill in on its own.

The prompt says three things. There is an LED that blinks, so something needs to drive it. The supply is 3.3 V. And the board gets programmed through a header, not a USB port on the board.

Step 2: what etch chose

etch writes the circuit as code in a language with a grammar. Here are the main parts it picked:

Part Role
ESP32 The microcontroller that toggles the LED
Red LED (D1) The thing that blinks
330 Ω resistor Limits current through the LED
1×6 header Power and programming

The check later counts 8 components, so there is more on the board than this table shows: the supporting parts around the ESP32 are in the design file too.

The LED hangs off GPIO2 through the 330 Ω resistor. A red LED drops roughly 2 V, so at 3.3 V that resistor keeps the current to a few milliamps. That is safe for the pin and bright enough to see.

The header is the clever bit. Its six pins carry 3V3, GND, EN, IO0, and the UART (TX and RX). That means one USB-serial adapter can both power the board and flash it. EN resets the chip. IO0 puts it into bootloader mode. No extra USB chip is needed on the board.

Every part etch picked is a real, buyable part. etch checks that as part of the build.

Step 3: the first check fails

Then etch runs its checks, the way a compiler checks code. This is what came back:

error[E101]: pin D1.K is not connected (src/main.rs:23:9)

Let me break that down:

  • E101 is the error code for an unconnected pin.
  • D1.K is the cathode (K) of the LED, D1.
  • src/main.rs:23:9 is the file, line, and column in the design where D1 is defined.

So the LED's anode was wired to the resistor, but its cathode went nowhere. Current had no path back to ground. On a real board, this LED would never light.

This is exactly the kind of mistake that is easy to miss when you draw a schematic by hand. It is also why etch checks electrical rules like floating pins before it calls anything done.

Step 4: the fix

etch read the error and connected D1's cathode to GND. That completes the loop: GPIO2, through the resistor, through the LED, to ground.

Because the design is plain text, the fix is one small change you can see in a diff. If you keep the design in git, it shows up as a single commit.

Step 5: the check passes

etch ran the checks again:

ok: schematic `blinky` (8 components, 8 nets, 0 warnings)

That line means the grammar is valid, the parts are real, the pins and ratings line up with the processed datasheets, and no electrical rules are broken. Zero warnings.

You now have a verified schematic as text. You can read it, diff it, and commit it.

What the checks covered

Here is a quick summary of what etch verified along the way:

  • Grammar. The circuit code parses.
  • Parts. Every part is real and buyable.
  • Pins and ratings. Connections match each datasheet.
  • Electrical rules. No floating pins, like the one caught above.

What's next: the board

A schematic is not a board yet. Turning this blinky into a PCB layout is the next step on the roadmap. After that, the plan is a CI-like pipeline: push a change, checks run, gerbers and BOM and placement files get built, and the order is placed.

Until then, the schematic is the part you can build in etch today.

Try it yourself

Designing in etch is free with your own model subscription, API key or local model. If you use a model etch hosts, tokens pass through at exact cost. Join the waitlist, type a sentence, and see what etch builds. If it does something odd, email me. It comes straight to me.