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/bq51013.tsx
// BQ51013B QFN28 (RHL) 4.0×4.0mm 0.4mm pitch — 7 pads/side + center EP
// Pad: 0.2mm × 0.45mm. Center EP: 2.7×2.7mm (GND, pin 29)
// Pin 1 = bottom-left, CCW
export const bq51013Footprint = () => (
<footprint>
{/* SOUTH (pins 1-7) */}
{Array.from({ length: 7 }, (_, i) => (
<smtpad
portHints={[String(i + 1)]}
shape="rect"
width="0.2mm"
height="0.45mm"
pcbX={`${-1.2 + i * 0.4}mm`}
pcbY="2.225mm"
layer="top"
/>
))}
{/* EAST (pins 8-14) */}
{Array.from({ length: 7 }, (_, i) => (
<smtpad
portHints={[String(i + 8)]}
shape="rect"
width="0.45mm"
height="0.2mm"
pcbX="2.225mm"
pcbY={`${1.2 - i * 0.4}mm`}
layer="top"
/>
))}
{/* NORTH (pins 15-21) */}
{Array.from({ length: 7 }, (_, i) => (
<smtpad
portHints={[String(i + 15)]}
shape="rect"
width="0.2mm"
height="0.45mm"
pcbX={`${1.2 - i * 0.4}mm`}
pcbY="-2.225mm"
layer="top"
/>
))}
{/* WEST (pins 22-28) */}
{Array.from({ length: 7 }, (_, i) => (
<smtpad
portHints={[String(i + 22)]}
shape="rect"
width="0.45mm"
height="0.2mm"
pcbX="-2.225mm"
pcbY={`${-1.2 + i * 0.4}mm`}
layer="top"
/>
))}
{/* Center EP — pin 29, GND */}
<smtpad portHints={["29"]} shape="rect" width="2.7mm" height="2.7mm" pcbX="0mm" pcbY="0mm" layer="top" />
<silkscreenpath
route={[
{ x: -2.0, y: -2.5 },
{ x: 2.0, y: -2.5 },
{ x: 2.0, y: 2.5 },
{ x: -2.0, y: 2.5 },
{ x: -2.0, y: -2.5 },
]}
/>
</footprint>
)