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

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

/** ST LIS2DW12 3-axis accelerometer, LGA-12 2x2x0.7 mm. Pin table from ST DS11473
 * (docs/sources.md [lis2dw12]): 1 SCL/SPC, 2 CS, 3 SDO/SA0, 4 SDA/SDI/SDO, 5 NC, 6 GND,
 * 7 RES (connect to GND), 8 GND, 9 VDD, 10 VDD_IO, 11 INT2, 12 INT1. */
export const lis2dw12Pins = {
  pin1: ["SCL", "SPC"], pin2: ["CS"], pin3: ["SDO", "SA0"], pin4: ["SDA", "SDI"], pin5: ["NC"], pin6: ["GND1"],
  pin7: ["RES"], pin8: ["GND2"], pin9: ["VDD"], pin10: ["VDD_IO"], pin11: ["INT2"], pin12: ["INT1"],
} as const

export const Lis2dw12 = (props: ChipProps<typeof lis2dw12Pins>) => (
  <chip
    {...props}
    manufacturerPartNumber="LIS2DW12TR"
    supplierPartNumbers={{ jlcpcb: ["C189624"] }}
    pinLabels={lis2dw12Pins}
    internallyConnectedPins={[["GND1", "GND2"]]}
    footprint={<Lga12_2x2 />}
    cadModel={{ objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C189624.obj?uuid=83ec6157b4954879af30009d604f164f", rotationOffset: { x: 0, y: 0, z: 90 }, positionOffset: { x: 0, y: 0, z: 0 } }}
    schWidth={2.6}
    schHeight={3.4}
    schPinArrangement={{
      leftSide: { direction: "top-to-bottom", pins: ["VDD", "VDD_IO", "SCL", "SDA", "SA0", "CS"] },
      rightSide: { direction: "top-to-bottom", pins: ["INT1", "INT2", "NC"] },
      bottomSide: { direction: "left-to-right", pins: ["GND1", "GND2", "RES"] },
    }}
    pinAttributes={{ VDD: { requiresPower: true }, VDD_IO: { requiresPower: true }, GND1: { requiresGround: true }, GND2: { requiresGround: true }, RES: { requiresGround: true }, CS: { mustBeConnected: true }, SA0: { mustBeConnected: true }, NC: { doNotConnect: true } }}
  />
)