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/tps7a02.tsx

// TPS7A02 X2SON-6 (DQN) 1.0×1.0mm, 0.35mm pitch
// 3 pads each side. Pin map (TI SLVSDQ9):
//   1=IN   2=GND  3=NR/SS
//   4=NC   5=EN   6=OUT

export const tps7a02Footprint = () => (
  <footprint>
    {/* LEFT side: pins 1-3, x=-0.575, y from +0.35 step -0.35 */}
    {[0, 1, 2].map((i) => (
      <smtpad
        portHints={[String(i + 1)]}
        shape="rect"
        width="0.25mm"
        height="0.18mm"
        pcbX="-0.575mm"
        pcbY={`${0.35 - i * 0.35}mm`}
        layer="top"
      />
    ))}
    {/* RIGHT side: pins 4-6, x=+0.575, y from -0.35 step +0.35 */}
    {[0, 1, 2].map((i) => (
      <smtpad
        portHints={[String(i + 4)]}
        shape="rect"
        width="0.25mm"
        height="0.18mm"
        pcbX="0.575mm"
        pcbY={`${-0.35 + i * 0.35}mm`}
        layer="top"
      />
    ))}

    <silkscreenpath
      route={[
        { x: -0.5, y: -0.5 },
        { x: 0.5, y: -0.5 },
        { x: 0.5, y: 0.5 },
        { x: -0.5, y: 0.5 },
        { x: -0.5, y: -0.5 },
      ]}
    />
  </footprint>
)