agentusecasesAll 965 use cases
Security, Science & Hardware

Verify SPICE simulations against a real oscilloscope

MCP servers for an oscilloscope and SPICE simulator let Claude Code compare simulated circuits with real hardware measurements, closing the loop.

Done withClaude Code

What they did
Lucas Gerads gave Claude Code two MCP servers: one for a LeCroy oscilloscope and one wrapping spicelib for SPICE simulation. The demo uses a trivial RC filter driven by a simple microcontroller. Claude compares simulated and measured data. For firmware, he gave it a pinout map and a Makefile with build, flash, ping and erase targets.
How it went
The post says the setup became very valuable for validating SPICE circuits and models, and it removed tedious data analysis such as time-axis normalization and alignment. It gives no numbers, and the demo circuit is deliberately trivial.
Worth knowing
Claude can't see your physical wiring, so tell it what is connected where. Make sure it never reads stale captures, and save raw waveform data to files instead of pasting it into context.

Try it yourself with Claude Code

I have a SPICE simulation of [circuit] at [file path] and an oscilloscope reachable at [address] through an MCP server. Run the simulation, capture the real measurement of [signal or test point], and compare them on rise time, amplitude, and frequency. Report the differences and suggest model tweaks. Ask me before changing any hardware settings or sending output to the circuit.

Read the original ↗

Discussion on HN · Apr 17, 2026

Five of these in your inbox every morning

The best things people got an AI agent to do, each with the prompt to try it.

More like this