Skip to content

feat: add kicad_sym support for schematic pin arrangement and labels#179

Open
buildingvibes wants to merge 1 commit intotscircuit:mainfrom
buildingvibes:feat/kicad-sym-schematic-info
Open

feat: add kicad_sym support for schematic pin arrangement and labels#179
buildingvibes wants to merge 1 commit intotscircuit:mainfrom
buildingvibes:feat/kicad-sym-schematic-info

Conversation

@buildingvibes
Copy link
Copy Markdown

/claim #114

Summary

  • Adds parseKicadSymToSchematicInfo() that parses .kicad_sym files and extracts schPinArrangement (left/right/top/bottom sides with pin ordering) and pinLabels (pin number to name mapping)
  • parseKicadModToCircuitJson() now accepts an optional kicadSym parameter to enrich circuit JSON with schematic info
  • Enriches schematic_component, source_component, and source_port elements with pin labels and port arrangement from the symbol file
  • Web UI updated to show kicad_sym file status indicator (optional file alongside kicad_mod)

How it works

KiCad symbol pins have rotation angles that indicate which side of the component they're on:

  • 0° → pin points right → LEFT side of component
  • 90° → pin points up → BOTTOM side
  • 180° → pin points left → RIGHT side
  • 270° → pin points down → TOP side

The parser recursively walks the S-expression tree, deduplicates pins across sub-units, categorizes them by side, and sorts by position for natural visual ordering.

Test plan

  • 3 new tests: resistor (2-pin passive), ATmega328P (28-pin IC), invalid input
  • All 19 tests pass (16 existing + 3 new)
  • Format check passes (biome format)

🤖 Generated with Claude Code

Add parseKicadSymToSchematicInfo() that parses .kicad_sym files to extract
schPinArrangement (left/right/top/bottom sides) and pinLabels (pin number
to name mapping). parseKicadModToCircuitJson() now accepts an optional
kicadSym parameter to enrich circuit JSON with schematic info. Web UI
updated to show kicad_sym file status indicator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kicad-component-converter Error Error Feb 12, 2026 5:38pm

Request Review

Copy link
Copy Markdown

@rushabhcodes rushabhcodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need visual snapshots?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants