gokul/cm4-media-carrier
A tscircuit package created by gokul.
- Version
- 0.1.0
- License
- unset
- Stars
- 0
components/Usb.tsx
import { HybridPad } from "./HybridPad"
import { type ChipProps } from "tscircuit"
import usbModel from "../models/micro-b.glb"
export const Usb = (props: ChipProps) => (
<connector isSmt={false}
cadModel={{glbUrl:usbModel, modelUnitToMmScale:1, modelOriginPosition:{x:0,y:0,z:0}, modelBounds:{min:{x:-3.75,y:-2.22,z:0},max:{x:3.75,y:2.78,z:2.94}}}}
footprint={<footprint insertionDirection="from_y_neg">
<platedhole portHints={["SH1"]} pcbX="-2.425mm" pcbY="3.03mm" outerHeight="1mm" outerWidth="1.4mm" holeHeight="0.65mm" holeWidth="1.05mm" shape="pill" pcbRotation="90deg" />
<platedhole portHints={["SH2"]} pcbX="2.425mm" pcbY="3.03mm" outerHeight="1mm" outerWidth="1.4mm" holeHeight="0.65mm" holeWidth="1.05mm" shape="pill" pcbRotation="90deg" />
<platedhole portHints={["SH3"]} pcbX="-2.725mm" pcbY="0mm" outerHeight="1.3mm" outerWidth="1.7mm" holeHeight="0.7mm" holeWidth="1.2mm" shape="pill" pcbRotation="90deg" />
<platedhole portHints={["SH4"]} pcbX="2.725mm" pcbY="0mm" outerHeight="1.3mm" outerWidth="1.7mm" holeHeight="0.7mm" holeWidth="1.2mm" shape="pill" pcbRotation="90deg" />
<HybridPad portHints={["SH4"]} pcbX="2.725mm" pcbY="0.93mm" layer="top" width="1.3mm" height="2mm" shape="rect" />
<HybridPad portHints={["SH3"]} pcbX="-2.725mm" pcbY="0.93mm" layer="top" width="1.3mm" height="2mm" shape="rect" />
<HybridPad portHints={["SH3"]} pcbX="-2.9875mm" pcbY="1.7mm" layer="top" width="1.825mm" height="0.7mm" shape="rect" />
<HybridPad portHints={["SH4"]} pcbX="2.9875mm" pcbY="1.7mm" layer="top" width="1.825mm" height="0.7mm" shape="rect" />
<HybridPad portHints={["SH1"]} pcbX="-2.85mm" pcbY="3.06mm" layer="top" width="2mm" height="1.4mm" shape="rect" />
<HybridPad portHints={["SH2"]} pcbX="2.9mm" pcbY="3.06mm" layer="top" width="2mm" height="1.4mm" shape="rect" />
<HybridPad portHints={["1"]} pcbX="-1.3mm" pcbY="2.82mm" layer="top" width="0.4mm" height="1.75mm" shape="rect" />
<HybridPad portHints={["2"]} pcbX="-0.65mm" pcbY="2.82mm" layer="top" width="0.4mm" height="1.75mm" shape="rect" />
<HybridPad portHints={["3"]} pcbX="0mm" pcbY="2.82mm" layer="top" width="0.4mm" height="1.75mm" shape="rect" />
<HybridPad portHints={["4"]} pcbX="0.65mm" pcbY="2.82mm" layer="top" width="0.4mm" height="1.75mm" shape="rect" />
<HybridPad portHints={["5"]} pcbX="1.3mm" pcbY="2.82mm" layer="top" width="0.4mm" height="1.75mm" shape="rect" />
<HybridPad portHints={["SH5"]} pcbX="-0.9625mm" pcbY="-0.25mm" layer="top" width="1.425mm" height="2.5mm" shape="rect" />
<HybridPad portHints={["SH6"]} pcbX="0.9625mm" pcbY="-0.25mm" layer="top" width="1.425mm" height="2.5mm" shape="rect" />
<silkscreenpath route={[{"x":-4.15,"y":1.18},{"x":-4.15,"y":2.73}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":-4.15,"y":1.18},{"x":-3.85,"y":1.18}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":-3.85,"y":-1.62},{"x":-3.85,"y":1.18}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":4.15,"y":1.18},{"x":4.15,"y":2.73}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":3.85,"y":1.18},{"x":4.15,"y":1.18}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":3.85,"y":-1.62},{"x":3.85,"y":1.18}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":-0.9,"y":4.43},{"x":-1.3,"y":3.98}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":-1.7,"y":4.43},{"x":-0.9,"y":4.43}]} strokeWidth={0.12} />
<silkscreenpath route={[{"x":-1.3,"y":3.98},{"x":-1.7,"y":4.43}]} strokeWidth={0.12} />
<fabricationnotepath route={[{"x":-3.75,"y":1.98},{"x":-2.95,"y":2.73}]} strokeWidth={0.12} />
<fabricationnotepath route={[{"x":3.75,"y":-2.22},{"x":-3.75,"y":-2.22}]} strokeWidth={0.12} />
<fabricationnotepath route={[{"x":3.75,"y":2.73},{"x":3.75,"y":-2.22}]} strokeWidth={0.12} />
<fabricationnotepath route={[{"x":-2.95,"y":2.73},{"x":3.75,"y":2.73}]} strokeWidth={0.12} />
<fabricationnotepath route={[{"x":-3.75,"y":-2.22},{"x":-3.75,"y":1.98}]} strokeWidth={0.12} />
<courtyardoutline outline={[{"x": -4.105, "y": 3.995}, {"x": 4.165, "y": 3.995}, {"x": 4.165, "y": -2.465}, {"x": -4.105, "y": -2.465}]} layer="top" /></footprint>}
{...props}
/>
)