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/TPD6S300RUKR.tsx
import type { ChipProps } from "@tscircuit/props"
import { SCH_PINS } from "../lib/sch-pins"
const pinLabels = {
pin1: ["C_SUB1"],
pin2: ["C_SUB2"],
pin3: ["VBIAS"],
pin4: ["C_CC1"],
pin5: ["C_CC2"],
pin6: ["RPD_G2"],
pin7: ["RPD_G1"],
pin8: ["GND3"],
pin9: ["N_FLT"],
pin10: ["VPWR"],
pin11: ["CC2"],
pin12: ["CC1"],
pin13: ["GND2"],
pin14: ["SBU2"],
pin15: ["SUB1"],
pin16: ["N_C2"],
pin17: ["N_C1"],
pin18: ["GND1"],
pin19: ["D2"],
pin20: ["D1"],
pin21: ["PAD"]
} as const
const pinAttributes = {
pin8: {requiresGround: true},
pin13: {requiresGround: true},
pin18: {requiresGround: true}
} as const
const footprinterPinLabels = {
...pinLabels,
"pin21": [...pinLabels["pin21"], "thermalpad"],
} as const
/**
* TPD6S300 (JLC C2649810, 13,970 in stock on 2026-12-02, about $0.31), fitted instead of TPD6S300A (C2876380, $0.94)
* to cut cost. TI: same RUK package, same pin numbers and functions, same ratings (24 V short-to-VBUS, CC OVP 6 V).
* Known trade-off (TPD6S300A datasheet 8.3.5.2): after an ESD strike that trips the CC overvoltage switch this part
* takes at least 21 ms to reconnect, which causes a Type-C disconnect on that port; the A part recovers in about 0.9 ms.
* The dead-battery difference does not apply (RPD_G1/2 are grounded). Pads and pin labels are the ones already on the board.
*/
export const TPD6S300RUKR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={footprinterPinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C2649810"
]
}}
manufacturerPartNumber="TPD6S300RUKR"
footprint="qfn20_thermalpad1.7mmx1.7mm_p0.4mm_h4mm_pw0.2mm_pl0.8mm"
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2649810.obj?uuid=71760926877f42c6b0f5954e672bfe89",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2649810.step?uuid=71760926877f42c6b0f5954e672bfe89",
pcbRotationOffset: 270,
modelOriginPosition: { x: 0, y: 0, z: 0 },
}}
{...(SCH_PINS.TPD6S300RUKR as any)}
{...props}
/>
)
}