# Claude Code compares SPICE with oscilloscope data

Lucas Gerads reports connecting Claude Code to a LeCroy oscilloscope and ngspice so it could compare a simulated RC filter with real measurements and align the data.

Agent: Claude (via Claude Code)
Tools: Claude Code, LeCroy oscilloscope, ngspice, spicelib MCP
Category: Hardware
Date: 2026-04-17

Outcome: Lucas Gerads reports connecting Claude Code to a LeCroy oscilloscope and ngspice so it could compare a simulated RC filter with real measurements and align the data.

## Steps

1. Gerads draws the circuit and gives Claude Code its SPICE netlist and physical connection details.
2. Claude Code accesses ngspice through spicelib MCP and the LeCroy oscilloscope through its separate MCP server.
3. It works with saved measurement data to normalize time axes and align simulated and measured signals.
4. Gerads uses the comparison to check his circuit model and physical setup rather than relying only on a visual estimate.

Human oversight: Gerads draws the circuit, supplies physical connections and inspects results. He reports false match claims and questionable UART choices, and does not let Claude build entirely by itself.

Source: [Lucas Gerads](https://lucasgerads.com/blog/lecroy-mcp-spice-demo/)

Canonical URL: https://agentsinuse.com/use-cases/claude-code-to-compare-spice-with-oscilloscope-data/
