gokul/lora-device

A compact LoRa/GNSS device PCB integrating an SX1262 radio, GNSS module, USB/UART interface, 1.5 µH inductor, LiPo battery connector with NTC, and supporting passives.

Version
0.1.6
License
unset
Stars
0

components/GnssFootprint.tsx

import cadGeometry from "../assets/gnss.jscad.json";
import { type ChipProps } from "tscircuit";
export const GnssFootprint = (props: ChipProps) => (
  <chip
    cadModel={{ jscad: cadGeometry }}
    footprint={
      <footprint>
        <smtpad
          portHints={["1"]}
          pcbX="-6.6mm"
          pcbY="3.8mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["2"]}
          pcbX="-6.6mm"
          pcbY="1.9mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["3"]}
          pcbX="-6.6mm"
          pcbY="0mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["4"]}
          pcbX="-6.6mm"
          pcbY="-1.9mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["5"]}
          pcbX="-6.6mm"
          pcbY="-3.8mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["6"]}
          pcbX="-3.8mm"
          pcbY="-6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["7"]}
          pcbX="-1.9mm"
          pcbY="-6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["8"]}
          pcbX="0mm"
          pcbY="-6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["9"]}
          pcbX="1.9mm"
          pcbY="-6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["10"]}
          pcbX="3.8mm"
          pcbY="-6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["11"]}
          pcbX="6.6mm"
          pcbY="-3.8mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["12"]}
          pcbX="6.6mm"
          pcbY="-1.9mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["13"]}
          pcbX="6.6mm"
          pcbY="0mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["14"]}
          pcbX="6.6mm"
          pcbY="1.9mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["15"]}
          pcbX="6.6mm"
          pcbY="3.8mm"
          layer="top"
          width="1.8mm"
          height="1.5mm"
          shape="rect"
        />
        <smtpad
          portHints={["16"]}
          pcbX="3.8mm"
          pcbY="6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["17"]}
          pcbX="1.9mm"
          pcbY="6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["18"]}
          pcbX="0mm"
          pcbY="6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["19"]}
          pcbX="-1.9mm"
          pcbY="6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <smtpad
          portHints={["20"]}
          pcbX="-3.8mm"
          pcbY="6.6mm"
          layer="top"
          width="1.5mm"
          height="1.8mm"
          shape="rect"
        />
        <courtyardrect width={16} height={16} />
        <via
          connectsTo="net.GND"
          pcbX={-4}
          pcbY={-4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={-4}
          pcbY={0}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={-4}
          pcbY={4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={0}
          pcbY={-4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={0}
          pcbY={0}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={0}
          pcbY={4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={4}
          pcbY={-4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={4}
          pcbY={0}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
        <via
          connectsTo="net.GND"
          pcbX={4}
          pcbY={4}
          outerDiameter={0.6}
          holeDiameter={0.3}
          layers={["top", "bottom"]}
        />
      </footprint>
    }
    {...props}
  />
);