tscircuit/sparkfun-boards
This code defines a detailed PCB schematic and physical footprint layout for various embedded hardware modules, mapping electrical pins, mechanical mounting holes, and silk-screen annotations for manufacturing and assembly.
- Version
- 0.0.32
- License
- unset
- Stars
- 3
boards/SparkFun-Human-Presence-and-Motion-Sensor-STHS34PF80-Qwiic/STHS34PF80.tsx
import { type ChipProps } from "@tscircuit/props"
export const pinLabels = {
pin1: "SCL",
pin2: "RES",
pin3: "N_CS",
pin4: "SDA",
pin5: "NC",
pin6: "VDD",
pin7: "GND",
pin8: "GND",
pin9: "VDD",
pin10: "INT",
}
export const STHS34PF80 = (props: ChipProps<typeof pinLabels>) => (
<chip
manufacturerPartNumber="STHS34PF80"
{...props}
supplierPartNumbers={{
jlcpcb: ["C5378301"],
}}
pinLabels={pinLabels}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: ["VDD", "N_CS", "GND"],
},
rightSide: {
direction: "top-to-bottom",
pins: ["SDA", "SCL", "INT"],
},
}}
schPinStyle={{
GND: { marginTop: "0.15" },
INT: { marginTop: "0.15" },
}}
footprint="dfn10_p0.4999mm_w3.6198mm_pw0.25mm_pl0.585mm_pin1location(leftside,bottom)"
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=d41c5d7dfba44f8ab4654f0fdfdfb8ea&pn=C5378301",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0, y: 0, z: 0 },
}}
/>
)