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-motherboard

In 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/CH224Q.tsx

import type { ChipProps } from "@tscircuit/props"
import { SCH_PINS } from "../lib/sch-pins"

const pinLabels = {
  pin1: ["VHV"],
  pin2: ["CFG2","SCL"],
  pin3: ["CFG3","SDA"],
  pin4: ["DP"],
  pin5: ["DM"],
  pin6: ["CC2"],
  pin7: ["CC1"],
  pin8: ["VBUS"],
  pin9: ["CFG1"],
  pin10: ["PG"],
  pin11: ["EP"]
} as const

const pinAttributes = {
  pin8: {requiresPower: true}
} as const

const footprinterPinLabels = {
  ...pinLabels,
  "pin11": [...pinLabels["pin11"], "thermalpad"],
} as const

export const CH224Q = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={footprinterPinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C46061833"
  ]
}}
      manufacturerPartNumber="CH224Q"
      footprint="dfn10_thermalpad0.9mmx1.4mm_p0.4mm_w2.37mm_pw0.22mm_pl0.51mm_pin1location(leftside,bottom)"
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C46061833.obj?uuid=72ad3e42af6e43b3be1d6cae4e699053",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C46061833.step?uuid=72ad3e42af6e43b3be1d6cae4e699053",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -0.000012700000070253736, z: 0 },
      }}
      {...(SCH_PINS.CH224Q as any)}
      {...props}
    />
  )
}