# Show HN： SPICE 仿真 示波器 使用 Claude Code 进行验证

- 来源：Hacker News 热门（buzzing.cc 中文翻译）
- 作者：_fizz_buzz_
- 发布时间：2026-04-17 22:42
- AIHOT 链接：https://aihot.virxact.com/items/cmo319gp604yeslbapc7105bg
- 原文链接：https://lucasgerads.com/blog/lecroy-mcp-spice-demo

## AI 摘要

开发者使用 Claude Code 完成了 SPICE 仿真示波器的验证工作，并在 Hacker News Show HN 板块展示。该项目利用 AI 编程助手对电路仿真数据与示波器结果进行比对验证，获得 102 点数关注。这项工作展示了 AI 工具在硬件测试验证领域的应用潜力。

## 正文

I have been experimenting with using Claude Code for hardware development over the past few weeks. I looked at some projects that use Claude similarly to how one would in software development: Write a prompt in natural language, let Claude create a circuit. I found it somewhat tricky to express what I want to build in plain English. It worked fine for trivial circuits but became difficult for more complex designs. I also realized that Claude Code really shines when it can get immediate feedback.

So I tried a different approach: give Claude access to my oscilloscope and a SPICE simulator. This has become extremely valuable for validating SPICE circuits and models, embedded programming, and data analysis. In particular the data analysis had been very tedious before: normalizing the time axis, aligning data, and so on. Usually I would just eyeball it.

Below is a deliberately simple demo showcasing my setup and workflow. The circuit and MCU are trivial. The point is to illustrate the approach, which scales well to much more complex circuits and real embedded projects.

A few lessons learned:

Oscilloscope

Claude doesn't see your physical setup. Don't let it guess what is connected where.

Make sure Claude never gets stale measurement data.

Don't dump raw data into Claude's context. Save it to a file and let Claude interact with it indirectly.

Microcontroller

Give Claude a pinout/pinmux map explicitly.

Prepare a Makefile that exposes functions like build, flash, ping, and erase, and encourage Claude to rely on it. Claude should not construct these commands on the fly.

Repos

lecroy-mcp: MCP server for LeCroy oscilloscopes

spicelib-mcp: MCP server wrapping spicelib

rc-filter-demo-files: the demo setup from the video
