MustafaMulla29/usb-pd-motherboard
4-layer USB-C PD hub motherboard with 20 V USB-C input, Linux T113-S3 computer, CH338F USB hub, four individually controlled 5–20 V PD outputs, USB data/camera ports, regulated rails, and hardware watchdog/E-stop safety interlock.
- Version
- 1.0.24
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone MustafaMulla29/usb-pd-motherboard # download the package files into ./usb-pd-motherboard
tsci add MustafaMulla29/usb-pd-motherboard # add it to your project as @tsci/MustafaMulla29.usb-pd-motherboardIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
imports/USBLC6_2SC6.tsx
import type { ChipProps } from "@tscircuit/props"
import { SCH_PINS } from "../lib/sch-pins"
const pinLabels = {
// names as in the ST datasheet: each data line enters on one pin and leaves on the other (1 -> 6, 3 -> 4)
pin1: ["IO1A"],
pin2: ["GND"],
pin3: ["IO2A"],
pin4: ["IO2B"],
pin5: ["VBUS"],
pin6: ["IO1B"]
} as const
const pinAttributes = {
pin1: {isPassive: true},
pin2: {requiresGround: true, mustBeConnected: true},
pin3: {isPassive: true},
pin4: {isPassive: true},
pin5: {isPassive: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF"},
pin6: {isPassive: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>
export const USBLC6_2SC6 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
symbol={
<symbol>
<schematicpath points={[{"x":-0.9,"y":1},{"x":0.9,"y":1},{"x":0.9,"y":-1},{"x":-0.9,"y":-1},{"x":-0.9,"y":1}]} strokeWidth={0.02} strokeColor="#880000" isFilled fillColor="#FFFFFF" />
<port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-1.3} schY={0.6} schStemLength={0.4} />
<port name="pin2" pinNumber={2} aliases={["2"]} direction="left" schX={-1.3} schY={0} schStemLength={0.4} />
<port name="pin3" pinNumber={3} aliases={["3"]} direction="left" schX={-1.3} schY={-0.6} schStemLength={0.4} />
<port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={1.3} schY={-0.6} schStemLength={0.4} />
<port name="pin5" pinNumber={5} aliases={["5"]} direction="right" schX={1.3} schY={0} schStemLength={0.4} />
<port name="pin6" pinNumber={6} aliases={["6"]} direction="right" schX={1.3} schY={0.6} schStemLength={0.4} />
<schematicpath points={[{"x":-0.9,"y":0.6},{"x":0.9,"y":0.6}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.9,"y":-0.6},{"x":0.9,"y":-0.6}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.9,"y":0},{"x":0.9,"y":0}]} strokeColor="#880000" />
<schematicpath svgPath="M -0.14 -0.12 L 0.06 0 L -0.14 0.14 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":0.1,"y":0.16},{"x":0.06,"y":0.16},{"x":0.06,"y":-0.14},{"x":0,"y":-0.14}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.68,"y":0},{"x":-0.68,"y":0.4},{"x":0.66,"y":0.4},{"x":0.66,"y":-0.4},{"x":-0.68,"y":-0.4},{"x":-0.68,"y":0}]} strokeColor="#880000" />
<schematicpath points={[{"x":0,"y":0.6},{"x":0,"y":0.4}]} strokeColor="#880000" />
<schematicpath points={[{"x":0,"y":-0.6},{"x":0,"y":-0.4}]} strokeColor="#880000" />
<schematicpath svgPath="M -0.46 0.28 L -0.26 0.4 L -0.46 0.54 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":-0.26,"y":0.56},{"x":-0.26,"y":0.56},{"x":-0.26,"y":0.26},{"x":-0.26,"y":0.26}]} strokeColor="#880000" />
<schematicpath svgPath="M 0.22 0.28 L 0.42 0.4 L 0.22 0.54 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":0.42,"y":0.56},{"x":0.42,"y":0.56},{"x":0.42,"y":0.26},{"x":0.42,"y":0.26}]} strokeColor="#880000" />
<schematicpath svgPath="M -0.48 -0.52 L -0.28 -0.4 L -0.48 -0.26 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":-0.28,"y":-0.24},{"x":-0.28,"y":-0.24},{"x":-0.28,"y":-0.54},{"x":-0.28,"y":-0.54}]} strokeColor="#880000" />
<schematicpath svgPath="M 0.22 -0.52 L 0.42 -0.4 L 0.22 -0.26 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":0.42,"y":-0.24},{"x":0.42,"y":-0.24},{"x":0.42,"y":-0.54},{"x":0.42,"y":-0.54}]} strokeColor="#880000" />
<schematiccircle center={{ x: 0, y: 0.6 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematiccircle center={{ x: 0, y: 0.4 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematiccircle center={{ x: -0.68, y: 0 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematiccircle center={{ x: 0.66, y: 0 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematiccircle center={{ x: 0, y: -0.4 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematiccircle center={{ x: 0, y: -0.6 }} radius={0.02} strokeWidth={0.02} color="#880000" />
<schematictext schX={0} schY={1.2} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C7519"
]
}}
manufacturerPartNumber="USBLC6-2SC6"
footprint="dfn6_p0.95mm_w3.3702mm_pw0.532mm_pl1.072mm_pin1location(leftside,bottom)"
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7519.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7519.step?uuid=229b69761e2c45dba6a83d8866dec72d",
pcbRotationOffset: 90,
modelOriginPosition: { x: -0.000012700000070253736, y: 0.000012700000070253736, z: -0.048939 },
}}
{...(SCH_PINS.USBLC6_2SC6 as any)}
{...props}
/>
)
}