Show HN: SPICE simulation → oscilloscope → verification with Claude Code
TL;DR Highlight
Connecting a scope and SPICE to Claude Code closed the hardware verification loop.
Who Should Read
Developers using Claude Code for hardware or embedded work who find natural-language circuit prompts too limited.
Core Mechanics
- Plain-English circuit design hit a ceiling
- It worked for trivial circuits but got hard for complex designs.
- The author realized Claude Code shines when it gets immediate feedback.
- Give it instruments, not just prompts
- The author gave Claude access to an oscilloscope and a SPICE simulator.
- It proved very valuable for validating SPICE circuits and models, embedded programming, and data analysis.
- Data analysis benefited the most
- Normalizing the time axis and aligning data used to be tedious, so the author usually eyeballed it.
- Claude now handles that work.
- Tell Claude what is wired where
- Claude can't see the physical setup, so don't let it guess connections.
- Make sure it never receives stale measurement data.
- Keep raw data out of context
- Save measurements to a file and let Claude interact with it indirectly.
- Constrain the MCU with a pinmap and a Makefile
- Provide an explicit pinout/pinmux map.
- Expose build, flash, ping, and erase in a Makefile and don't let Claude construct commands on the fly.
Community Reactions
- Hallucinated boards with Opus
- One commenter had Opus design boards with SPICE and it invented board capabilities and made grandiose claims.
- None of the boards worked, so they redid the project in Codex.
- Invented pin numbers from raw KiCad files
- A commenter let Claude grep .kicad_sch files and it made up nonexistent pins.
- Python analyzers emitting JSON for Claude to read mostly fixed it.
- Complex optimization needed a wrapper script
- A commenter found Claude good at describing files but weak beyond simple circuits.
- They wrote a script with simulator bounds (step size, algorithm, min/max) that the agent calls.
- Better feedback beats better prompts
- One commenter said having SPICE and scope data in the loop lets the model iterate instead of guess.
How to Apply
- Convert tool output to JSON
- Today, find where you feed raw files or logs straight to an LLM.
- Write a parser that emits JSON and give the LLM only that.
- Put your setup facts in CLAUDE.md
- List the pinmap, probe connections, and channel settings.
- Add a rule that Claude must not guess.
- Pin commands down with a Makefile
- Create build, flash, ping, and erase targets.
- Instruct Claude to use only those and never assemble commands itself.
- Save measurements to files with timestamps
- Store results as files and analyze by reading them.
- Record measurement time so stale data gets rejected.
Try It
# Paste into Claude Code's CLAUDE.md (simplified version of the article's lessons)
## Hardware rules
- Trust only the pinmap at {{pinmap file path}}. Never guess pin numbers.
- Probe connections: {{ch1=where, ch2=where}}. If unsure, ask me first.
- Use only `make build|flash|ping|erase`. Never assemble commands yourself.
- Never paste measurement data into context. Save it to a file and work with the path.
- If the measurement file timestamp is older than {{N}} seconds, re-measure before analyzing.
- When analyzing, normalize the time axis, align with simulation, and report differences numerically.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques