gokul/usb3-sd-hub

Engineering draft: four-layer, computer-powered USB 3 hub with one USB-C host socket, two USB-C and two USB-A accessory sockets, and a full-size SD slot. Board and three schematic previews are available. Routing and production checks are incomplete; not fabrication ready.

Version
0.1.5
License
MIT
Stars
0

design/passive-models.ts

import type { CadModelProp } from "@tscircuit/props";

// Nominal mechanical envelopes. These do not replace tolerance qualification.
export function passiveModelForPart(mpn: string): CadModelProp | undefined {
	if (mpn === "XFL4020-222MEC")
		return {
			jscad: { type: "cuboid", size: [4, 4, 2.1], center: [0, 0, 1.05] },
			zOffsetFromSurface: 0,
		};
	if (mpn === "EEEFK1A151AP")
		return {
			jscad: {
				type: "union",
				shapes: [
					{
						type: "colorize",
						color: [0.12, 0.13, 0.14],
						shape: {
							type: "cuboid",
							size: [6.6, 6.6, 0.4],
							center: [0, 0, 0.2],
						},
					},
					{
						type: "colorize",
						color: [0.7, 0.72, 0.75],
						shape: {
							type: "cylinder",
							radius: 3.15,
							height: 5.4,
							center: [0, 0, 3.1],
							segments: 64,
						},
					},
				],
			},
			zOffsetFromSurface: 0,
		};
	return undefined;
}