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

review/source-build/parts/Connectors.tsx

import type { ChipProps } from "tscircuit"
import { UflRsmt, PogoPinSmd, ContactPad, Sot553 } from "../lib/footprints"

/** Hirose U.FL-R-SMT-1(80) receptacle (JLC C88374, 393k in stock). Pin 1 = centre
 * conductor, pins 2/3 = shield/ground. */
export const uflPins = { pin1: ["SIG"], pin2: ["GND1"], pin3: ["GND2"] } as const
export const Ufl = (props: ChipProps<typeof uflPins>) => (
  <chip
    {...props}
    manufacturerPartNumber="U.FL-R-SMT-1(80)"
    supplierPartNumbers={{ jlcpcb: ["C88374"] }}
    pinLabels={uflPins}
    internallyConnectedPins={[["GND1", "GND2"]]}
    footprint={<UflRsmt />}
    cadModel={{ objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C88374.obj?uuid=286ce1aee5764889ae249e36cfa94f79", rotationOffset: { x: 0, y: 0, z: 0 }, positionOffset: { x: 0, y: 0, z: 0 } }}
    schWidth={1.6}
    schHeight={1.4}
    schPinArrangement={{ leftSide: { direction: "top-to-bottom", pins: ["SIG"] }, bottomSide: { direction: "left-to-right", pins: ["GND1", "GND2"] } }}
    pinAttributes={{ GND1: { requiresGround: true }, GND2: { requiresGround: true } }}
  />
)

/** Spring-loaded contact for the battery cartridge: BWCD-L3.5W2.0H1.0, SMD, 2.0 mm base,
 * 3.5 mm free height, 1.0 mm stroke, 1.5 A, gold-plated brass (JLC C2826547). */
export const pogoPins = { pin1: ["P"] } as const
export const PogoPin = (props: ChipProps<typeof pogoPins>) => (
  <chip {...props} manufacturerPartNumber="BWCD-L3.5W2.0H1.0" supplierPartNumbers={{ jlcpcb: ["C2826547"] }} pinLabels={pogoPins} footprint={<PogoPinSmd />}
    cadModel={{ objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2826547.obj?uuid=47ad88126b7e4d91be14e72bec6cb42b", rotationOffset: { x: 0, y: 0, z: 0 }, positionOffset: { x: 0, y: 0, z: 0 } }}
    schWidth={1.2} schHeight={0.8} schPinArrangement={{ rightSide: { direction: "top-to-bottom", pins: ["P"] } }} />
)

/** Bare ENIG contact land (battery-pack side mating pad or programming/test pad). */
export const contactPins = { pin1: ["P"] } as const
export const Contact = (props: ChipProps<typeof contactPins> & { diameter?: number }) => {
  const { diameter, ...rest } = props
  return <chip {...rest} pinLabels={contactPins} footprint={ContactPad(diameter ?? 2.0)} schWidth={1.2} schHeight={0.8} schPinArrangement={{ rightSide: { direction: "top-to-bottom", pins: ["P"] } }} />
}

/** TI TPD3E001 3-channel low-capacitance (1.5 pF) ESD array, SOT-553 (DRL). Pins per TI
 * datasheet: 1 IO1, 2 IO2, 3 GND, 4 IO3, 5 VCC (JLC C470828). */
export const tpd3e001Pins = { pin1: ["IO1"], pin2: ["IO2"], pin3: ["GND"], pin4: ["IO3"], pin5: ["VCC"] } as const
export const Tpd3e001 = (props: ChipProps<typeof tpd3e001Pins>) => (
  <chip {...props} manufacturerPartNumber="TPD3E001DRLR" supplierPartNumbers={{ jlcpcb: ["C470828"] }} pinLabels={tpd3e001Pins} footprint={<Sot553 />}
    cadModel={{ objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C470828.obj?uuid=b74a526637684c2b841b7ddaecf870ce", rotationOffset: { x: 0, y: 0, z: 0 }, positionOffset: { x: 0, y: 0, z: 0 } }}
    schWidth={1.8} schHeight={2}
    schPinArrangement={{ leftSide: { direction: "top-to-bottom", pins: ["IO1", "IO2", "IO3"] }, topSide: { direction: "left-to-right", pins: ["VCC"] }, bottomSide: { direction: "left-to-right", pins: ["GND"] } }}
    pinAttributes={{ GND: { requiresGround: true }, VCC: { requiresPower: true } }} />
)