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.
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
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Manage an inbox and build courses and budgets with Claude Code
A non-technical user filters their inbox to emails needing replies, turned 15 homeschool PDFs into interactive narrated courses, and built a budget dashboard.
Build a 2D platformer game without coding
A content creator with no coding experience used Claude Code to build a black-and-white wave-combat platformer in HTML canvas and played it live.
- Claude
Find exploitable bugs in smart contracts
Anthropic's red team reports agents finding $4.6M worth of blockchain smart contract exploits.
Control and calibrate a robotic hand with OpenClaw
An OpenClaw agent running Claude drove a 16-joint printed hand, checked its actions with a USB camera, calibrated firmware and narrated in Telegram.
Find security flaws in open-source software
Google's Big Sleep agent reported about 20 security flaws in open-source software, following its SQLite find.