aj0070/gps-tracker

A 45×30 mm four-layer GPS tracker PCB combining USB‑C Li‑ion charging, regulated power rails, cellular modem with SIM and LTE antenna, GNSS receiver with antenna, STM32 MCU, accelerometer, level shifters, ESD protection, and debug connectors.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/gps-tracker  # download the package files into ./gps-tracker
tsci add aj0070/gps-tracker    # add it to your project as @tsci/aj0070.gps-tracker

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

index.circuit.tsx

PCBPCB preview for index.circuit.tsx
SchematicSchematic preview for index.circuit.tsx
import React from "react"
import { MCP73831_2DCI_MC } from "./imports/MCP73831_2DCI_MC"
import { MSY8089AAAC } from "./imports/MSY8089AAAC"
import { TPS73633DBVR } from "./imports/TPS73633DBVR"
import { SZESD5B5_0ST1G } from "./imports/SZESD5B5_0ST1G"
import { M5311 } from "./imports/M5311"
import { MAX_M10S_00B } from "./imports/MAX_M10S_00B"
import { STM32F030F4P6 } from "./imports/STM32F030F4P6"
import { TXS0102DCTR } from "./imports/TXS0102DCTR"
import { LIS3DETR } from "./imports/LIS3DETR"
import { SMN_304 } from "./imports/SMN_304"
import { U_FL_R_SMT_1_80_ as UFL } from "./imports/U_FL_R_SMT_1_80_"

export default () => (
  <board width="45mm" height="30mm" layers={4} title="GPS Tracker">
    <schematicsheet name="Power" displayName="Power and charging" sheetIndex={0} />
    <schematicsheet name="Radio" displayName="Modem, SIM, GNSS" sheetIndex={1} />
    <schematicsheet name="Control" displayName="MCU, sensor, debug" sheetIndex={2} />

    <schematicsection name="PowerSec" displayName="Power input and rails" />
    <schematicsection name="RadioSec" displayName="Cellular, SIM, GNSS" />
    <schematicsection name="ControlSec" displayName="MCU and sensor" />

    <net name="GND" isGroundNet nominalTraceWidth={0.4} />
    <net name="VBUS" isPowerNet nominalTraceWidth={0.5} />
    <net name="VBAT" isPowerNet nominalTraceWidth={0.8} />
    <net name="VMOD" isPowerNet nominalTraceWidth={0.8} />
    <net name="V3_3" isPowerNet nominalTraceWidth={0.4} />
    <net name="MOD_IO_1V8" isPowerNet nominalTraceWidth={0.3} />
    <net name="LTE_RF" nominalTraceWidth={0.35} />
    <net name="GNSS_RF" nominalTraceWidth={0.35} />

    {/* ---------------- power ---------------- */}
    <connector
      name="J1"
      standard="usb_c"
      pcbX={-4.0}
      pcbY={-9.4}
      pcbRotation={0}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-12.74}
      schY={6}
      schWidth={1.575}
      connections={{
        VBUS1: "net.VBUS",
        VBUS2: "net.VBUS",
        GND1: "net.GND",
        GND2: "net.GND",
        SHELL1: "net.GND",
        SHELL2: "net.GND",
        CC1: "net.USB_CC1",
        CC2: "net.USB_CC2",
      }}
    />
    <resistor
      name="R3"
      layer="bottom"
      resistance="5.1k"
      footprint="0402"
      pcbX={2.2}
      pcbY={-5.0}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-15.5}
      schY={4}
      schRotation={-90}
      connections={{ pin1: "net.USB_CC1", pin2: "net.GND" }}
    />
    <resistor
      name="R4"
      layer="bottom"
      resistance="5.1k"
      footprint="0402"
      pcbX={4.6}
      pcbY={-5.0}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-15.5}
      schY={2.6}
      schRotation={-90}
      connections={{ pin1: "net.USB_CC2", pin2: "net.GND" }}
    />
    <SZESD5B5_0ST1G
      name="D2"
      layer="bottom"
      pcbX={-8.0}
      pcbY={-3.2}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-15.5}
      schY={7}
      schRotation={-90}
      connections={{ pin1: "net.VBUS", pin2: "net.GND" }}
    />
    <MCP73831_2DCI_MC
      name="U5"
      pcbX={8.0}
      pcbY={-7.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-9.47}
      schY={6}
      connections={{
        VDD1: "net.VBUS",
        VDD2: "net.VBUS",
        VBAT1: "net.VBAT",
        VBAT2: "net.VBAT",
        VSS: "net.GND",
        EP: "net.GND",
        PROG: "net.CHG_PROG",
        STAT: "net.CHG_STAT",
      }}
    />
    <resistor
      name="R1"
      resistance="2k"
      footprint="0402"
      pcbX={11.0}
      pcbY={-9.2}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-9}
      schY={4.2}
      schRotation={-90}
      connections={{ pin1: "net.CHG_PROG", pin2: "net.GND" }}
    />
    <resistor
      name="R2"
      resistance="1k"
      footprint="0402"
      pcbX={5.4}
      pcbY={-6.0}
      pcbRotation={180}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={14}
      schY={7.0}
      schRotation={-90}
      connections={{ pin1: "net.VBUS", pin2: "net.CHG_LED_A" }}
    />
    <led
      name="D1"
      color="red"
      pinLabels={{ pin1: "cathode", pin2: "anode" }}
      footprint="0603"
      pcbX={2.9}
      pcbY={-6.0}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={14}
      schY={5.5}
      schRotation={-90}
      connections={{ anode: "net.CHG_LED_A", cathode: "net.CHG_STAT" }}
    />
    <capacitor
      name="C1"
      capacitance="10uF"
      footprint="0805"
      layer="bottom"
      pcbX={2.9}
      pcbY={-6.5}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-12.5}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBUS", pin2: "net.GND" }}
    />
    <capacitor
      name="C2"
      capacitance="4.7uF"
      footprint="0603"
      layer="bottom"
      pcbX={6.2}
      pcbY={-6.5}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-11.6}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBUS", pin2: "net.GND" }}
    />
    <capacitor
      name="C3"
      capacitance="4.7uF"
      footprint="0603"
      layer="bottom"
      pcbX={9.3}
      pcbY={-6.5}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-8.5}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBAT", pin2: "net.GND" }}
    />
    <capacitor
      name="C4"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={11.9}
      pcbY={-6.5}
      pcbRotation={180}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-7.45}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBAT", pin2: "net.GND" }}
    />
    <capacitor
      name="C5"
      capacitance="10uF"
      footprint="0805"
      layer="bottom"
      pcbX={15.0}
      pcbY={-6.5}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-6.4}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBAT", pin2: "net.GND" }}
    />
    <capacitor
      name="C10"
      capacitance="100uF"
      footprint="1206"
      layer="bottom"
      pcbX={19.4}
      pcbY={-6.5}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-5.3}
      schY={11.5}
      schRotation={270}
      connections={{ pin1: "net.VBAT", pin2: "net.GND" }}
    />
    <MSY8089AAAC
      name="U6"
      pcbX={3.4}
      pcbY={-12.4}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-1.42}
      schY={5}
      connections={{
        VIN: "net.VBAT",
        EN: "net.VBAT",
        GND: "net.GND",
        SW: "net.BUCK_SW",
        FB: "net.BUCK_FB",
      }}
    />
    <inductor
      name="L1"
      inductance="2.2uH"
      footprint="0805"
      pcbX={7.2}
      pcbY={-12.4}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={2.42}
      schY={5}
      connections={{ pin1: "net.BUCK_SW", pin2: "net.VMOD" }}
    />
    <capacitor
      name="C6"
      capacitance="22uF"
      footprint="0805"
      layer="bottom"
      pcbX={2.8}
      pcbY={-8.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={2}
      schY={2.5}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C7"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={5.6}
      pcbY={-8.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={3}
      schY={2.5}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <resistor
      name="R5"
      resistance="95.3k"
      footprint="0402"
      layer="bottom"
      pcbX={7.9}
      pcbY={-8.6}
      pcbRotation={180}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-1}
      schY={2.5}
      schRotation={-90}
      connections={{ pin1: "net.VMOD", pin2: "net.BUCK_FB" }}
    />
    <resistor
      name="R6"
      resistance="20k"
      footprint="0402"
      layer="bottom"
      pcbX={9.9}
      pcbY={-8.6}
      pcbRotation={180}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={0.8}
      schY={2.5}
      schRotation={-90}
      connections={{ pin1: "net.BUCK_FB", pin2: "net.GND" }}
    />
    <TPS73633DBVR
      name="U7"
      pcbX={11.1}
      pcbY={-12.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={5.5}
      schY={5}
      connections={{
        IN: "net.VMOD",
        EN: "net.VMOD",
        GND: "net.GND",
        OUT: "net.V3_3",
      }}
    />
    <capacitor
      name="C8"
      capacitance="1uF"
      footprint="0603"
      layer="bottom"
      pcbX={12.5}
      pcbY={-8.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={4}
      schY={2.5}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C9"
      capacitance="1uF"
      footprint="0603"
      layer="bottom"
      pcbX={15.6}
      pcbY={-8.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={8}
      schY={2.5}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C16"
      capacitance="10nF"
      footprint="0402"
      layer="bottom"
      pcbX={18.2}
      pcbY={-8.6}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={5}
      schY={0.5}
      schRotation={270}
      connections={{ pin1: "net.LDO_NR", pin2: "net.GND" }}
    />
    <trace from="U7.NR" to="net.LDO_NR" />
    <connector
      name="J2"
      layer="bottom"
      insertionDirection="from_above"
      pinLabels={{ pin1: "VBAT", pin2: "GND" }}
      pcbX={10.0}
      pcbY={4.0}
      schSheetName="Power"
      schSectionName="PowerSec"
      schX={-13}
      schY={2}
      schPinArrangement={{ topSide: ["VBAT"], bottomSide: ["GND"] }}
      connections={{ pin1: "net.VBAT", pin2: "net.GND" }}
      footprint={(
        <footprint insertionDirection="from_above">
          <smtpad portHints={["pin1"]} pcbX={-2} pcbY={0} width="2mm" height="1.8mm" shape="rect" />
          <smtpad portHints={["pin2"]} pcbX={2} pcbY={0} width="2mm" height="1.8mm" shape="rect" />
        </footprint>
      )}
    />

    {/* ---------------- modem and SIM ---------------- */}
    <M5311
      name="U2"
      pcbX={6.0}
      pcbY={5.0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-8}
      schY={5}
      schWidth={2.412}
      connections={{
        VBAT1: "net.VMOD",
        VBAT2: "net.VMOD",
        GND1: "net.GND",
        GND2: "net.GND",
        GND3: "net.GND",
        GND4: "net.GND",
        GND5: "net.GND",
        GND6: "net.GND",
        GND7: "net.GND",
        RF: "net.LTE_RF",
        UART1_TXD: "net.MDM_TXD",
        UART1_RXD: "net.MDM_RXD",
        SIM_VCC: "net.SIM_VCC",
        SIM_CLK: "net.SIM_CLK",
        SIM_DATA: "net.SIM_DATA",
        SIM_RST: "net.SIM_RST",
        SIM_DET: "net.GND",
        PWR_ON: "net.MDM_PWRKEY",
        RESET: "net.MDM_RESET",
        VDD_EXT: "net.MOD_IO_1V8",
      }}
    />
    <SMN_304
      name="J5"
      pcbX={-16.0}
      pcbY={-8.2}
      pcbRotation={180}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-12}
      schY={-3}
      connections={{
        pin1: "net.GND",
        pin2: "net.GND",
        pin3: "net.SIM_DATA",
        pin5: "net.GND",
        pin6: "net.SIM_CLK",
        pin7: "net.SIM_RST",
        pin8: "net.SIM_VCC",
      }}
    />
    <capacitor
      name="C19"
      capacitance="1uF"
      footprint="0603"
      layer="bottom"
      pcbX={11.5}
      pcbY={-3.2}
      pcbRotation={180}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-6.9}
      schY={-1.6}
      schRotation={270}
      connections={{ pin1: "net.SIM_VCC", pin2: "net.GND" }}
    />
    <SZESD5B5_0ST1G
      name="D3"
      layer="bottom"
      pcbX={-21.2}
      pcbY={0.4}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-10}
      schY={-5}
      schRotation={-90}
      connections={{ pin1: "net.SIM_DATA", pin2: "net.GND" }}
    />
    <SZESD5B5_0ST1G
      name="D4"
      layer="bottom"
      pcbX={-18.4}
      pcbY={0.4}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-8.5}
      schY={-5}
      schRotation={-90}
      connections={{ pin1: "net.SIM_CLK", pin2: "net.GND" }}
    />
    <SZESD5B5_0ST1G
      name="D5"
      layer="bottom"
      pcbX={-15.6}
      pcbY={0.4}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-7}
      schY={-5}
      schRotation={-90}
      connections={{ pin1: "net.SIM_RST", pin2: "net.GND" }}
    />
    <SZESD5B5_0ST1G
      name="D6"
      layer="bottom"
      pcbX={-12.8}
      pcbY={0.4}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-5.5}
      schY={-5}
      schRotation={-90}
      connections={{ pin1: "net.SIM_VCC", pin2: "net.GND" }}
    />
    <capacitor
      name="C11"
      layer="bottom"
      capacitance="100uF"
      footprint="1206"
      pcbX={9.0}
      pcbY={12.5}
      pcbRotation={0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-2}
      schY={10}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C12"
      layer="bottom"
      capacitance="100uF"
      footprint="1206"
      pcbX={13.7}
      pcbY={12.5}
      pcbRotation={0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-1}
      schY={10}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C13"
      layer="bottom"
      capacitance="22uF"
      footprint="0805"
      pcbX={10.4}
      pcbY={10.2}
      pcbRotation={0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={0}
      schY={10}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C14"
      layer="bottom"
      capacitance="100nF"
      footprint="0402"
      pcbX={13.1}
      pcbY={10.2}
      pcbRotation={0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={1}
      schY={10}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C15"
      layer="bottom"
      capacitance="100nF"
      footprint="0402"
      pcbX={15.1}
      pcbY={10.2}
      pcbRotation={0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={2}
      schY={10}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C17"
      capacitance="1uF"
      footprint="0402"
      layer="bottom"
      pcbX={13.2}
      pcbY={-1.0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={0}
      schY={9}
      schRotation={270}
      connections={{ pin1: "net.VMOD", pin2: "net.GND" }}
    />
    <capacitor
      name="C18"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={15.4}
      pcbY={-1.0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={3.71}
      schY={7.5}
      schRotation={270}
      connections={{ pin1: "net.MOD_IO_1V8", pin2: "net.GND" }}
    />
    <resistor
      name="R13"
      resistance="10k"
      footprint="0402"
      layer="bottom"
      pcbX={-2.5}
      pcbY={-1.0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={-6}
      schY={-1}
      schRotation={-90}
      connections={{ pin1: "net.MOD_IO_1V8", pin2: "net.MDM_RESET" }}
    />

    {/* ---------------- GNSS ---------------- */}
    <MAX_M10S_00B
      name="U1"
      pcbX={-16.2}
      pcbY={9.5}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={6.29}
      schY={7}
      connections={{
        VCC: "net.V3_3",
        V_IO: "net.V3_3",
        V_BCKP: "net.V3_3",
        GND1: "net.GND",
        GND2: "net.GND",
        GND3: "net.GND",
        RF_IN: "net.GNSS_RF",
        SDA: "net.I2C_SDA",
        SCL: "net.I2C_SCL",
        RESET_N: "net.GNSS_RST",
        SAFEBOOT_N: "net.GNSS_SAFEBOOT",
      }}
    />
    <UFL
      name="J3"
      pcbX={-6.8}
      pcbY={6.2}
      pcbRotation={180}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={12}
      schY={7}
      connections={{ SIG: "net.GNSS_RF", GND1: "net.GND", GND2: "net.GND" }}
    />
    <UFL
      name="J4"
      pcbX={19.6}
      pcbY={7.1}
      pcbRotation={270}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={13}
      schY={4}
      connections={{ SIG: "net.LTE_RF", GND1: "net.GND", GND2: "net.GND" }}
    />
    <capacitor
      name="C20"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={-19.5}
      pcbY={3.4}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={3}
      schY={3}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C21"
      capacitance="1uF"
      footprint="0603"
      layer="bottom"
      pcbX={-16.8}
      pcbY={3.3}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={4.9}
      schY={3}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C22"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={-20.9}
      pcbY={2.3}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={6.8}
      schY={3}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C23"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={-18.94}
      pcbY={1.8}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={8.7}
      schY={3}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <resistor
      name="R7"
      resistance="10k"
      footprint="0402"
      layer="bottom"
      pcbX={-19.0}
      pcbY={8.0}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={9}
      schY={10}
      schRotation={-90}
      connections={{ pin1: "net.V3_3", pin2: "net.GNSS_RST" }}
    />
    <resistor
      name="R16"
      resistance="10k"
      footprint="0402"
      layer="bottom"
      pcbX={-19.0}
      pcbY={6.5}
      schSheetName="Radio"
      schSectionName="RadioSec"
      schX={11}
      schY={10}
      schRotation={-90}
      connections={{ pin1: "net.V3_3", pin2: "net.GNSS_SAFEBOOT" }}
    />

    {/* ---------------- MCU, sensor, debug ---------------- */}
    <STM32F030F4P6
      name="U4"
      pcbX={17.0}
      pcbY={-8.3}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={0}
      schY={4}
      connections={{
        VDD: "net.V3_3",
        VDDA: "net.V3_3",
        VSS: "net.GND",
        NRST: "net.NRST",
        BOOT0: "net.BOOT0",
        PA2: "net.MCU_TXD_33",
        PA3: "net.MCU_RXD_33",
        PA9: "net.I2C_SCL",
        PA10: "net.I2C_SDA",
        PA13_SWDIO: "net.SWDIO",
        PA14_SWCLK: "net.SWCLK",
        PA0: "net.ACCEL_INT1",
        PA1: "net.ACCEL_INT2",
        PA4: "net.MDM_PWRKEY_33",
        PA5: "net.MDM_RESET_33",
      }}
    />
    <TXS0102DCTR
      name="U8"
      pcbX={-7.0}
      pcbY={1.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={3.76}
      schY={6}
      connections={{
        VCCA: "net.MOD_IO_1V8",
        VCCB: "net.V3_3",
        GND: "net.GND",
        OE: "net.MOD_IO_1V8",
        A1: "net.MDM_TXD",
        B1: "net.MCU_RXD_33",
        A2: "net.MDM_RXD",
        B2: "net.MCU_TXD_33",
      }}
    />
    <TXS0102DCTR
      name="U9"
      pcbX={19.4}
      pcbY={-0.8}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={9.24}
      schY={6}
      connections={{
        VCCA: "net.MOD_IO_1V8",
        VCCB: "net.V3_3",
        GND: "net.GND",
        OE: "net.MOD_IO_1V8",
        A1: "net.MDM_PWRKEY",
        B1: "net.MDM_PWRKEY_33",
        A2: "net.MDM_RESET",
        B2: "net.MDM_RESET_33",
      }}
    />
    <LIS3DETR
      name="U10"
      pcbX={-12.5}
      pcbY={1.5}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={-4}
      schY={-2}
      connections={{
        Vdd: "net.V3_3",
        Vdd_IO: "net.V3_3",
        GND1: "net.GND",
        GND2: "net.GND",
        SCL: "net.I2C_SCL",
        SDA: "net.I2C_SDA",
        CS: "net.V3_3",
        SDO2: "net.GND",
        RES: "net.GND",
        INT1: "net.ACCEL_INT1",
        INT2: "net.ACCEL_INT2",
      }}
    />
    <connector
      name="J6"
      layer="bottom"
      pinLabels={{ pin1: "V3_3", pin2: "SWDIO", pin3: "SWCLK", pin4: "GND" }}
      pcbX={17.0}
      pcbY={4.9}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={9.5}
      schY={-3}
      connections={{ pin1: "net.V3_3", pin2: "net.SWDIO", pin3: "net.SWCLK", pin4: "net.GND" }}
      footprint={(
        <footprint>
          <smtpad portHints={["pin1"]} pcbX={-3} pcbY={0} width="1.2mm" height="1.2mm" shape="rect" />
          <smtpad portHints={["pin2"]} pcbX={-1} pcbY={0} width="1.2mm" height="1.2mm" shape="rect" />
          <smtpad portHints={["pin3"]} pcbX={1} pcbY={0} width="1.2mm" height="1.2mm" shape="rect" />
          <smtpad portHints={["pin4"]} pcbX={3} pcbY={0} width="1.2mm" height="1.2mm" shape="rect" />
        </footprint>
      )}
    />
    <capacitor
      name="C24"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={13.0}
      pcbY={-11.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={3}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C25"
      capacitance="1uF"
      footprint="0402"
      layer="bottom"
      pcbX={15.0}
      pcbY={-11.2}
      pcbRotation={180}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={4}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C26"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={17.0}
      pcbY={-11.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={5}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C27"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={19.0}
      pcbY={-11.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={2.0}
      schY={2.5}
      schRotation={270}
      connections={{ pin1: "net.NRST", pin2: "net.GND" }}
    />
    <resistor
      name="R19"
      resistance="10k"
      footprint="0402"
      layer="bottom"
      pcbX={21.0}
      pcbY={-11.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={3.5}
      schY={2.5}
      schRotation={-90}
      connections={{ pin1: "net.V3_3", pin2: "net.NRST" }}
    />
    <resistor
      name="R20"
      resistance="10k"
      footprint="0402"
      layer="bottom"
      pcbX={21.0}
      pcbY={-12.8}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={-2.0}
      schY={2.2}
      schRotation={-90}
      connections={{ pin1: "net.BOOT0", pin2: "net.GND" }}
    />
    <capacitor
      name="C28"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={-8.8}
      pcbY={-1.0}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={0}
      schY={-7}
      schRotation={270}
      connections={{ pin1: "net.MOD_IO_1V8", pin2: "net.GND" }}
    />
    <capacitor
      name="C29"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={-4.5}
      pcbY={-1.0}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={6}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C30"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={16.2}
      pcbY={-2.5}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={1}
      schY={-7}
      schRotation={270}
      connections={{ pin1: "net.MOD_IO_1V8", pin2: "net.GND" }}
    />
    <capacitor
      name="C31"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={18.4}
      pcbY={-2.5}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={7}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C32"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={2.2}
      pcbY={-3.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={8}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <capacitor
      name="C33"
      capacitance="100nF"
      footprint="0402"
      layer="bottom"
      pcbX={4.2}
      pcbY={-3.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={9}
      schY={1.8}
      schRotation={270}
      connections={{ pin1: "net.V3_3", pin2: "net.GND" }}
    />
    <resistor
      name="R17"
      resistance="4.7k"
      footprint="0402"
      layer="bottom"
      pcbX={6.5}
      pcbY={-3.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={-2}
      schY={-6}
      schRotation={-90}
      connections={{ pin1: "net.V3_3", pin2: "net.I2C_SDA" }}
    />
    <resistor
      name="R18"
      resistance="4.7k"
      footprint="0402"
      layer="bottom"
      pcbX={9.0}
      pcbY={-3.2}
      schSheetName="Control"
      schSectionName="ControlSec"
      schX={0}
      schY={-6}
      schRotation={-90}
      connections={{ pin1: "net.V3_3", pin2: "net.I2C_SCL" }}
    />

    <keepout
      shape="rect"
      layer="bottom"
      pcbX={-9.6}
      pcbY={6.2}
      width="4.4mm"
      height="2mm"
    />
    <keepout
      shape="rect"
      layer="bottom"
      pcbX={16.65}
      pcbY={7.1}
      width="4.8mm"
      height="1.8mm"
    />
  </board>
)