AgentSkillsCN

Footprints

封装

SKILL.md

Footprints Reference

Footprint specifications, KiCad integration, and custom footprints

Overview

Footprints define the physical pad layout where components are placed on a PCB. tscircuit supports standard footprints, KiCad footprints, and custom footprints.

Footprint Types

Footprint TypeDescription
smtpadSurface-mount pad
platedholePlated through-hole
footprint-elementsInline footprint elements
footprinter-stringsFootprint string format
kicad-footprintsKiCad library integration

Silkscreen Elements

ElementDescription
silkscreentextText on silkscreen
silkscreenlineLine on silkscreen
silkscreenrectRectangle on silkscreen
silkscreenpathPath on silkscreen
silkscreencircleCircle on silkscreen

Fabrication Notes

ElementDescription
fabricationnotetextManufacturing text
fabricationnoterectManufacturing rectangle
constraintDesign constraints

Common Footprint Strings

FootprintDescription
04020402 SMD resistor/capacitor
06030603 SMD component
08050805 SMD component
12061206 SMD component
soic88-pin SOIC package
qfn3232-pin QFN package
dip88-pin DIP package
usb-cUSB-C connector
pushbuttonPush button

Using KiCad Footprints

tsx
// Use KiCad footprint directly
<chip
  name="U1"
  footprint="kicad:Resistor_SMD/R_0402_1005Metric"
/>

Custom Footprint Example

tsx
<chip
  name="U1"
  footprint={
    <footprint>
      <smtpad
        portHints={["1"]}
        pcbX="-1mm"
        pcbY="0mm"
        width="0.5mm"
        height="0.5mm"
        shape="rect"
      />
      <smtpad
        portHints={["2"]}
        pcbX="1mm"
        pcbY="0mm"
        width="0.5mm"
        height="0.5mm"
        shape="rect"
      />
      <silkscreenpath
        route={[
          { x: -1, y: -0.5 },
          { x: 1, y: -0.5 },
        ]}
      />
    </footprint>
  }
  schPortArrangement={{
    leftSide: { direction: "top-to-bottom", pins: [1] },
    rightSide: { direction: "top-to-bottom", pins: [2] }
  }}
/>

Related Skills

SkillDescription
ComponentsComponent elements
Guides: ImportingImporting from KiCad/JLCPCB
Guides: KiCadKiCad integration

Resources