SPICE 시뮬레이션부터 오실로스코프 측정까지, Claude Code를 활용한 하드웨어 검증 워크플로우
요약
본 글은 대규모 언어 모델(LLM)인 Claude Code를 하드웨어 개발 및 검증 과정에 통합하는 새로운 워크플로우를 제시합니다. 기존에는 복잡한 회로 설계나 데이터 분석 시 자연어로 요구사항을 명확히 전달하기 어려웠으나, 오실로스코프와 SPICE 시뮬레이터 같은 실제 장비의 데이터를 Claude에게 연결하여 피드백 루프를 구축함으로써 이 문제를 해결했습니다. 이를 통해 아날로그/디지털 회로 모델링 검증, 임베디드 프로그래밍, 데이터 분석의 효율성을 극대화할 수 있습니다.
핵심 포인트
- Claude Code에 오실로스코프 및 SPICE 시뮬레이터 접근을 제공하여 하드웨어 검증 워크플로우를 구축했습니다.
- 데이터 분석 시 원시(raw) 데이터를 컨텍스트에 직접 넣기보다 파일 형태로 저장하고 Claude가 간접적으로 상호작용하도록 하는 것이 효과적입니다.
- 마이크로컨트롤러(MCU) 사용 시, 핀아웃/핀멀렉스 맵을 명시적으로 제공하고 Makefile 같은 구조화된 빌드 시스템을 활용하여 Claude의 의존성을 관리해야 합니다.
Show HN: SPICE simulation → oscilloscope → verification with Claude Code
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
AI 자동 생성 콘텐츠
본 콘텐츠는 HN Claude Code Search의 원문을 AI가 자동으로 요약·번역·분석한 것입니다. 원 저작권은 원저작자에게 있으며, 정확한 내용은 반드시 원문을 확인해 주세요.
원문 바로가기