Community画像github.com

hardware-circuit-visualizer

Turns a photo of electronics parts (Raspberry Pi, stepper driver, stepper motor, power supply, resistors, sensors) into one interactive 3D circuit page with see-through parts, a power switch, animated current flow, live values and a timing chart. Use when the user sends a photo of hardware or electronics parts and asks how they work together, how to wire them, or wants to see the circuit in 3D.

hardware-circuit-visualizer とは?

hardware-circuit-visualizer is a Claude Code agent skill that turns a photo of electronics parts (Raspberry Pi, stepper driver, stepper motor, power supply, resistors, sensors) into one interactive 3D circuit page with see-through parts, a power switch, animated current flow, live values and a timing chart. Use when the user sends a photo of hardware or electronics parts and asks how they work together, how to wire them, or wants to see the circuit in 3D.

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pruthvirajshinde2468-source/claude-hardware-circuit-visualizer-skill/tree/HEAD/skills/hardware-circuit-visualizer

Installed? Explore more 画像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Hardware Circuit Visualizer v1.0.0 — photo → 3D circuit lab

Use this skill when the user sends a photo of electronics parts and wants to see how they work together. The output is one HTML page: 3D parts, see-through layers, a power switch, current flow in the wires, the inside of the driver and motor, live values, a timing chart and an auto tour.

For a lesson about a theory topic (equations, control, physics, medicine), use the stem-tutor skill instead.

Speed rule: the engine is finished. Never rewrite it. circuit3d/viewer.html + circuit3d/sim.js are fixed. For each photo, write only a small scene JSON (about 40 lines), then build:

python <skill folder>/circuit3d/build.py scene.json <topic>_3d.html

Start from circuit3d/scenes/pi5_tmc2208_nema17.json. Change only what the photo shows.

Steps

  1. Name the parts. Read the markings in the photo. List each part in "photo". If a part number cannot be read and it changes the wiring, ask one question. Otherwise take the common variant and say so.
  2. Wiring comes from datasheets, not from the photo. The parts in the photo are not connected. Take pin names and connections from the datasheet or the part library. Never guess a pin.
  3. Write the scene. Library types and their pin names:
    • pi5 — physical pin numbers 1–40 ("pi.11").
    • tmc2208 — BTT TMC2208 V3.0 pin order: GND VIO OB2 OB1 OA1 OA2 GNDM VM / DIR STEP CLK PDN NC MS2 MS1 EN. An A4988 or DRV8825 has a different pin order: use box for it, with its own pins.
    • nema17_pg — A1 A2 (coil A), B1 B2 (coil B).
    • psu — V+ V-. resistor — 1 2, optional "bands".
    • box — any other part: "size":[w,h,d], "pins":{"VCC":[x,y,z],…}, "label", "text". It stays a closed box. Never invent internals for it.
  4. Wires. {"a":"pi.11","b":"drv.STEP","color":"#2a9d3a","sig":"step","loop":"logic"}. Write a→b in the direction of conventional current. loop is logic (mA, commands) or motor (A, power). sig sets what flows: vio, glogic, step, dir, pull (EN pull-up path, add "level":"en" on the GPIO wire), vm, gmotor, iA, iB (stepper sim), or dc:0.02 (fixed 20 mA when powered: LEDs, sensors, other circuits).
  5. "sim":"stepper" when a stepper driver and motor are present. "params": vm (motor volts), vref, micro (microsteps), rPull (ohms).
  6. Build, then send the file. Chat reply below 150 words: the parts found, the two loops, one safety line (no motor connect/disconnect while VM has power), the file.

Language

Write the chat reply and page captions in ASD-STE100 Simplified Technical English: short sentences (max 25 words), active voice, one word for one meaning, define each technical name at first use.

Physics the page must keep

Do not change these in the scene: logic loop and motor loop are separate; STEP/DIR/EN are voltage signals; EN is active LOW with a pull-up; coil currents follow sine/cosine microsteps; the 2-pole rotor is a marked simplification; electrons move opposite to conventional current.

New library parts

Add a part only when the user will use it again. Add one builder to LIB in viewer.html with shell, board and inner tags, take internals from the datasheet, and write the source on the page. Run node circuit3d/sim.test.js after any change to sim.js.

No file tools?

If you cannot run build.py, give the scene JSON in one code block and tell the user: "Open https://pruthvirajshinde2468-source.github.io/claude-hardware-circuit-visualizer-skill/circuit-lab.html, paste the JSON, press Build 3D."

関連スキル