pixalynx/pixal-gps

These files define two separate printed circuit boards: a small, two-layer battery cartridge with protection circuitry and contact pads for a pouch cell, and a larger, two-layer wireless charging dock featuring USB-C input, a resonant coil, and wireless power transmission components.

Version
0.1.2
License
unset
Stars
0

parts/Npm1300.tsx

import type { ChipProps } from "tscircuit"
import { Npm1300Qfn32 } from "../lib/footprints"

/** Nordic nPM1300 PMIC, QFN32 5x5 mm (nPM1300-QEAA-R7). Pin table from the nPM1300
 * Product Specification v1.3 "Pin assignments" (docs/sources.md [npm1300-ps]). */
export const npm1300Pins = {
  pin1: ["VOUT1"], pin2: ["PVSS1"], pin3: ["SW1"], pin4: ["PVDD"], pin5: ["SW2"], pin6: ["PVSS2"],
  pin7: ["GPIO0"], pin8: ["GPIO1"], pin9: ["GPIO2"], pin10: ["GPIO3"], pin11: ["GPIO4"], pin12: ["VDDIO"],
  pin13: ["SDA"], pin14: ["SCL"], pin15: ["SHPHLD"], pin16: ["VSET2"], pin17: ["VSET1"], pin18: ["NTC"],
  pin19: ["VBAT"], pin20: ["VSYS"], pin21: ["VBUS"], pin22: ["VBUSOUT"], pin23: ["CC1"], pin24: ["CC2"],
  pin25: ["LED0"], pin26: ["LED1"], pin27: ["LED2"], pin28: ["LSIN1", "VINLDO1"], pin29: ["LSOUT1", "VOUTLDO1"],
  pin30: ["LSIN2", "VINLDO2"], pin31: ["LSOUT2", "VOUTLDO2"], pin32: ["VOUT2"], pin33: ["AVSS", "GND"],
} as const

export const Npm1300 = (props: ChipProps<typeof npm1300Pins>) => (
  <chip
    {...props}
    manufacturerPartNumber="nPM1300-QEAA-R7"
    supplierPartNumbers={{ jlcpcb: ["C7501206"] }}
    pinLabels={npm1300Pins}
    internallyConnectedPins={[["AVSS", "PVSS1", "PVSS2"]]}
    footprint={<Npm1300Qfn32 />}
    cadModel={{ objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7501206.obj?uuid=595304ab79a843bfa03bdaf869386976", rotationOffset: { x: 0, y: 0, z: 0 }, positionOffset: { x: 0, y: 0, z: 0 } }}
    schWidth={4}
    schHeight={7}
    schPinArrangement={{
      leftSide: { direction: "top-to-bottom", pins: ["VBUS", "VBUSOUT", "CC1", "CC2", "VBAT", "NTC", "SHPHLD", "VSET1", "VSET2", "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4"] },
      rightSide: { direction: "top-to-bottom", pins: ["VSYS", "PVDD", "SW1", "VOUT1", "PVSS1", "SW2", "VOUT2", "PVSS2", "LSIN1", "LSOUT1", "LSIN2", "LSOUT2", "LED0", "LED1", "LED2"] },
      topSide: { direction: "left-to-right", pins: ["VDDIO", "SDA", "SCL"] },
      bottomSide: { direction: "left-to-right", pins: ["AVSS"] },
    }}
    pinAttributes={{
      VBUS: { requiresPower: true }, VBAT: { requiresPower: true }, PVDD: { requiresPower: true },
      VSYS: { providesPower: true }, VOUT1: { providesPower: true }, VOUT2: { providesPower: true }, VDDIO: { requiresPower: true },
      AVSS: { requiresGround: true }, PVSS1: { requiresGround: true }, PVSS2: { requiresGround: true },
      VSET1: { mustBeConnected: true }, VSET2: { mustBeConnected: true }, NTC: { mustBeConnected: true }, VBUSOUT: { mustBeConnected: true },
    }}
  />
)