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.

lib/usbc-5a.tsx

// Connector wrapper for the imported JLC C7431072 (TYPE-C 16PIN 5A 143) land pattern.
// Copied unchanged from imports/TYPE_C_16PIN_5A_143.tsx; only <chip> is replaced by <connector>.
import type { ConnectorProps } from "@tscircuit/props"
import { SCH_PINS } from "./sch-pins"

const pinLabels = {
  pin1: ["GND1","A12"],
  pin2: ["VBUS1","A11"],
  pin3: ["VBUS2","A2"],
  pin4: ["GND2","A1"],
  pin5: ["SBU2","A3"],
  pin6: ["CC1","A4"],
  pin7: ["DN2","A5"],
  pin8: ["DP1","A6"],
  pin9: ["DN1","A7"],
  pin10: ["DP2","A8"],
  pin11: ["SBU1","A9"],
  pin12: ["CC2","A10"],
  pin13: ["SHELL"]
} as const

export const UsbC5A = (props: ConnectorProps) => {
  return (
    <connector
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C7431072"
  ]
}}
      manufacturerPartNumber="TYPE-C 16PIN 5A 143"
      footprint={<footprint>
        <hole pcbX="-2.890012mm" pcbY="0.9904794mm" diameter="0.649986mm" />
<hole pcbX="2.890012mm" pcbY="0.9904794mm" diameter="0.649986mm" />
<platedhole  portHints={["pin13"]} pcbX="-4.320032mm" pcbY="-2.6899806mm" holeWidth="0.700024mm" holeHeight="1.2999974mm" outerWidth="1.1999976mm" outerHeight="1.7999964mm" shape="pill" />
<platedhole  portHints={["pin13"]} pcbX="4.320032mm" pcbY="-2.6894726mm" holeWidth="0.700024mm" holeHeight="1.2999974mm" outerWidth="1.1999976mm" outerHeight="1.7999964mm" shape="pill" />
<platedhole  portHints={["pin13"]} pcbX="4.320032mm" pcbY="1.4906054mm" holeWidth="0.700024mm" holeHeight="1.499997mm" outerWidth="1.1999976mm" outerHeight="1.999996mm" shape="pill" />
<platedhole  portHints={["pin13"]} pcbX="-4.320032mm" pcbY="1.4906054mm" holeWidth="0.700024mm" holeHeight="1.499997mm" outerWidth="1.1999976mm" outerHeight="1.999996mm" shape="pill" />
<smtpad portHints={["pin1"]} pcbX="3.218434mm" pcbY="2.1649754mm" width="0.499999mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.400046mm" pcbY="2.1649754mm" width="0.499999mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-2.399792mm" pcbY="2.1649754mm" width="0.499999mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-3.199892mm" pcbY="2.1649754mm" width="0.499999mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-1.749806mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-1.249934mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-0.749808mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="-0.249936mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="0.25019mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="0.750062mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="1.250188mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="1.75006mm" pcbY="2.1649754mm" width="0.2999994mm" height="1.1500104mm" shape="rect" />
<silkscreenpath route={[{"x":4.44510159999993,"y":-1.4385480000000825},{"x":4.44510159999993,"y":0.36820479999983036}]} />
<silkscreenpath route={[{"x":-4.444898399999943,"y":-3.681876000000102},{"x":-4.444898399999943,"y":-5.173008400000072},{"x":4.44510159999993,"y":-5.173008400000072},{"x":4.44510159999993,"y":-3.681876000000102}]} />
<silkscreenpath route={[{"x":-4.444898399999943,"y":0.36820479999983036},{"x":-4.444898399999943,"y":-1.4385480000000825}]} />
<silkscreentext text="{NAME}" pcbX="-0.007112mm" pcbY="3.7407934mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-4.399889599999938,"y":-3.4660014000000956},{"x":-4.399889599999938,"y":-5.1660234000000855},{"x":4.4000928000000386,"y":-5.1660234000000855},{"x":4.4000928000000386,"y":-3.4660014000000956},{"x":4.100093399999992,"y":-3.4660014000000956},{"x":4.100093399999992,"y":-4.865998600000125},{"x":-4.099890200000004,"y":-4.865998600000125},{"x":-4.099890200000004,"y":-3.4660014000000956},{"x":-4.399889599999938,"y":-3.4660014000000956}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-5.170030800000063,"y":2.9899805999998534},{"x":5.170030800000063,"y":2.9899805999998534},{"x":5.170030800000063,"y":-5.537435400000163},{"x":-5.170030800000063,"y":-5.537435400000163},{"x":-5.170030800000063,"y":2.9899805999998534}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7431072.obj?uuid=7b2b5bea24f944ca8310215fac973989",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7431072.step?uuid=7b2b5bea24f944ca8310215fac973989",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0, y: -1.3874432000002344, z: -0.09000220000000003 },
      }}
      {...(SCH_PINS.USBC_OUT as any)}
      {...props}
    />
  )
}