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/CH338F.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["DM6"],
pin2: ["DP6"],
pin3: ["DM7"],
pin4: ["DP7"],
pin5: ["VDD331"],
pin6: ["DMU"],
pin7: ["DPU"],
pin8: ["XO"],
pin9: ["XI"],
pin10: ["AVDDK"],
pin11: ["DM1"],
pin12: ["DP1"],
pin13: ["DM2"],
pin14: ["DP2"],
pin15: ["DM5"],
pin16: ["DP5"],
pin17: ["SMBDAT"],
pin18: ["SMBCLK"],
pin19: ["VDD332"],
pin20: ["N_RESET"],
pin21: ["N_PWREN"],
pin22: ["N_OVCUR"],
pin23: ["CFG"],
pin24: ["CC3"],
pin25: ["CC1"],
pin26: ["CC2"],
pin27: ["CC3_CTL"],
pin28: ["DVDDK"],
pin29: ["DM4"],
pin30: ["DP4"],
pin31: ["DM3"],
pin32: ["DP3"],
pin33: ["EP"]
} as const
const footprinterPinLabels = {
...pinLabels,
"pin33": [...pinLabels["pin33"], "thermalpad"],
} as const
export const CH338F = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={footprinterPinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C42387425"
]
}}
manufacturerPartNumber="CH338F"
footprint="qfn32_thermalpad2.7mmx2.7mm_p0.4mm_h5.12mm_pw0.2mm_pl0.76mm"
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42387425.obj?uuid=28ab505634a840f0a5e3f0074fa66411",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42387425.step?uuid=28ab505634a840f0a5e3f0074fa66411",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0, z: -0.02 },
}}
{...props}
/>
)
}