runpatrick/sa-sim-pcb

This code defines PCB footprints for various electronic modules, including BG95 cellular modem, BNO086 sensor, BQ25180 battery charger, and BQ27220 power management IC, detailing their physical pad layouts and key external features.

Version
1.0.6
License
unset
Stars
0

footprints/crystal.tsx

// Crystal footprints — built inline because the registry strings
// `crystal_4pad_2x1.6mm` / `crystal_2pad_1.6x1mm` referenced earlier
// aren't valid tscircuit footprinter names.
//
// HFXO (X1): Abracon ABM8-272-T3, 3.2×2.5mm 4-SMD pkg
//   4 pads at corners on a 2.2mm × 1.65mm centerline:
//     pin1 = XIN  (bottom-left)
//     pin2 = GND  (bottom-right)  — shell
//     pin3 = XOUT (top-right)
//     pin4 = GND  (top-left)      — shell
//   Pad size: 1.0×1.2mm (industry-standard reflow land for 3225 case).
//
// LFXO (Y1): Abracon ABS07-32.768KHZ-T, 3.2×1.5mm 2-SMD pkg
//   2 pads on ±1.1mm centers, pad size 1.0×1.2mm:
//     pin1 = XIN  (left)
//     pin2 = XOUT (right)

export const crystalHfxoFootprint = () => (
  <footprint>
    {/* pin1 XIN — bottom-left */}
    <smtpad portHints={["1"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="-1.1mm" pcbY="-0.825mm" layer="top" />
    {/* pin2 GND — bottom-right */}
    <smtpad portHints={["2"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="1.1mm"  pcbY="-0.825mm" layer="top" />
    {/* pin3 XOUT — top-right */}
    <smtpad portHints={["3"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="1.1mm"  pcbY="0.825mm"  layer="top" />
    {/* pin4 GND — top-left */}
    <smtpad portHints={["4"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="-1.1mm" pcbY="0.825mm"  layer="top" />
    <silkscreenpath
      route={[
        { x: -1.6, y:  1.25 },
        { x:  1.6, y:  1.25 },
        { x:  1.6, y: -1.25 },
        { x: -1.6, y: -1.25 },
        { x: -1.6, y:  1.25 },
      ]}
    />
  </footprint>
)

export const crystalLfxoFootprint = () => (
  <footprint>
    {/* pin1 XIN — left */}
    <smtpad portHints={["1"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="-1.1mm" pcbY="0mm" layer="top" />
    {/* pin2 XOUT — right */}
    <smtpad portHints={["2"]} shape="rect" width="1.0mm" height="1.2mm" pcbX="1.1mm"  pcbY="0mm" layer="top" />
    <silkscreenpath
      route={[
        { x: -1.6, y:  0.75 },
        { x:  1.6, y:  0.75 },
        { x:  1.6, y: -0.75 },
        { x: -1.6, y: -0.75 },
        { x: -1.6, y:  0.75 },
      ]}
    />
  </footprint>
)