mohan-bee/fitness-band-sensor-flex
A flexible dual-sensor PCB integrating a MAX30102 optical PPG/heart-rate sensor and TMP117 digital skin-temperature sensor, with I²C, power regulation, decoupling capacitors, interrupt pull-up, flex-tail connector, test points, and mechanical stiffeners/bend support.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
parts.tsx
import type { CapacitorProps, ResistorProps } from "@tscircuit/props"
const capacitors = {
"100nF": { footprint: "0402", mpn: "GRM155R71C104KA88D" },
"1uF": { footprint: "0603", mpn: "GRM188R71C105KA12D" },
"4.7uF": { footprint: "0603", mpn: "GRM188R61A475KE15D" },
"10uF": { footprint: "0805", mpn: "GRM21BR61E106KA73L" },
} as const
export function Cap(props: CapacitorProps & { capacitance: keyof typeof capacitors }) {
const part = capacitors[props.capacitance]
return <capacitor schRotation={-90} {...props} footprint={part.footprint} manufacturerPartNumber={part.mpn} />
}
export function Pullup(props: ResistorProps) {
const mpn = props.resistance === "4.7k" ? "RC0402FR-074K7L" : "RC0402FR-0710KL"
return <resistor schRotation={-90} {...props} footprint="0402" manufacturerPartNumber={mpn} />
}