Skip to content

feat(hardware): module-interconnect view generator, cross-checked against the HOWTO - #21

Open
cryptotomte wants to merge 3 commits into
mainfrom
chore/module-canvas-generator
Open

feat(hardware): module-interconnect view generator, cross-checked against the HOWTO#21
cryptotomte wants to merge 3 commits into
mainfrom
chore/module-canvas-generator

Conversation

@cryptotomte

Copy link
Copy Markdown
Owner

Summary

hardware/rev2/tools/gen-module-canvas.py — Python 3, no dependencies — renders the stage-A module-interconnect views from the pin contract: six module cards with J100/J101 header pinouts and field connectors, the screw-terminal current-path strip, and the net → header-pin bench wiring matrix.

Tables stay the truth: on every run the script parses the §6 J101 table in HOWTO-module-pcb.md and aborts with a diff on any mismatch against its own data block (verified: swapping SDA/SCL on mod-pump in the script → exit 1 with a clear message). Edit the HOWTO first, then the script, then regenerate.

Outputs (gitignored hardware/rev2/export/module-canvas/): module-interconnect.html standalone browser preview, plus Main.dc.html / NetMatrix.dc.html / canvas.json for the editable Claude Design canvas.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QU8EzuVKjCFbXraYenJVYa

cryptotomte and others added 3 commits September 2, 2026 08:50
…ecked against the HOWTO

hardware/rev2/tools/gen-module-canvas.py renders the stage-A module
cards (J100/J101 header pinouts, field connectors), the current-path
strip and the net-to-pin bench wiring matrix from a data block that
mirrors HOWTO-module-pcb.md par.4/6/7. On every run it parses the
HOWTO par.6 J101 table and aborts on any mismatch, so the generated
picture can never drift from the documented contract. Outputs a
standalone browser preview plus the artboards/canvas.json for the
editable Claude Design canvas, all under the gitignored export dir.
Python 3, no dependencies.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QU8EzuVKjCFbXraYenJVYa
Footprints were completed 2026-08-12 and the terminal blocks / pin
headers are in stock — the preflight list still read as if both were
open.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QU8EzuVKjCFbXraYenJVYa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant