hrithik18k/air-mouse
This code defines various surface-mount and through-hole electronic components, specifying their physical footprints, pin configurations, and 3D CAD models for hardware visualization.
- Version
- 1.0.3
- License
- unset
- Stars
- 0
imports/MPU_9250.tsx
import type { ChipProps } from "@tscircuit/props"
const Pad = (props: any) => <smtpad shape="rect" {...props} />
const pinLabels = {
pin1: ["RESV_VDDIO"],
pin2: ["NC1"], pin3: ["NC2"], pin4: ["NC3"], pin5: ["NC4"], pin6: ["NC5"],
pin7: ["AUX_CL"], pin8: ["VDDIO"], pin9: ["AD0"], pin10: ["REGOUT"],
pin11: ["FSYNC"], pin12: ["INT"], pin13: ["VDD"],
pin14: ["NC6"], pin15: ["NC7"], pin16: ["NC8"], pin17: ["NC9"],
pin18: ["GND"], pin19: ["RESV_NC"], pin20: ["RESV_GND"],
pin21: ["AUX_DA"], pin22: ["NCS"], pin23: ["SCL"], pin24: ["SDA"],
pin25: ["EP"],
} as const
/** TDK InvenSense MPU-9250, 24-QFN 3x3 mm, 0.40 mm pitch. Obsolete/customer supplied. */
export const MPU_9250 = (props: ChipProps<typeof pinLabels>) => (
<chip
pinLabels={pinLabels}
manufacturerPartNumber="MPU-9250"
footprint={<footprint>
{/* Datasheet land pattern: 24-QFN, 3x3 mm body, 0.40 mm pitch. */}
<Pad portHints={["pin1"]} pcbX={-1.45} pcbY={1.0} width={0.5} height={0.22} />
<Pad portHints={["pin2"]} pcbX={-1.45} pcbY={0.6} width={0.5} height={0.22} />
<Pad portHints={["pin3"]} pcbX={-1.45} pcbY={0.2} width={0.5} height={0.22} />
<Pad portHints={["pin4"]} pcbX={-1.45} pcbY={-0.2} width={0.5} height={0.22} />
<Pad portHints={["pin5"]} pcbX={-1.45} pcbY={-0.6} width={0.5} height={0.22} />
<Pad portHints={["pin6"]} pcbX={-1.45} pcbY={-1.0} width={0.5} height={0.22} />
<Pad portHints={["pin7"]} pcbX={-1.0} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin8"]} pcbX={-0.6} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin9"]} pcbX={-0.2} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin10"]} pcbX={0.2} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin11"]} pcbX={0.6} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin12"]} pcbX={1.0} pcbY={-1.45} width={0.22} height={0.5} />
<Pad portHints={["pin13"]} pcbX={1.45} pcbY={-1.0} width={0.5} height={0.22} />
<Pad portHints={["pin14"]} pcbX={1.45} pcbY={-0.6} width={0.5} height={0.22} />
<Pad portHints={["pin15"]} pcbX={1.45} pcbY={-0.2} width={0.5} height={0.22} />
<Pad portHints={["pin16"]} pcbX={1.45} pcbY={0.2} width={0.5} height={0.22} />
<Pad portHints={["pin17"]} pcbX={1.45} pcbY={0.6} width={0.5} height={0.22} />
<Pad portHints={["pin18"]} pcbX={1.45} pcbY={1.0} width={0.5} height={0.22} />
<Pad portHints={["pin19"]} pcbX={1.0} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin20"]} pcbX={0.6} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin21"]} pcbX={0.2} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin22"]} pcbX={-0.2} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin23"]} pcbX={-0.6} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin24"]} pcbX={-1.0} pcbY={1.45} width={0.22} height={0.5} />
<Pad portHints={["pin25"]} pcbX={0} pcbY={0} width={1.54} height={1.7} />
<silkscreencircle pcbX={-1.9} pcbY={1.9} radius={0.18} />
</footprint>}
{...props}
/>
)