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.
tools/router/route.sh
#!/bin/sh
# Route the whole board again. Run from the project root: sh tools/router/route.sh (about 4 minutes)
# 1. build with routing switched off, to dump the routing problem (pads, rules, nets)
# 2. turn the dump into the router's input tools/router/prep.py
# 3. compile and run the router tools/router/fastroute.cpp
# 4. save the copper as routing/ALL.routed.json tools/router/post.py
# 5. touch-up: redo the DRAM supply at full width tools/router/reroute.py
# (it is routed late and otherwise squeezes under a capacitor at 0.1 mm; PORT_ARM shares that gap)
# 6. print the quality report tools/router/audit.py
# Then build normally (bun run build): it replays routing/ALL.routed.json and runs tscircuit's checks on it.
set -e
ROUTE_DUMP=1 tsci build index.circuit.tsx --ignore-errors --disable-parts-engine > /dev/null
python3 -I tools/router/prep.py
c++ -O2 -std=c++17 -o tools/router/fastroute tools/router/fastroute.cpp
tools/router/fastroute routing/inputs/ALL.fr.txt routing/inputs/ALL.fr.out --time "${ROUTE_TIME:-600}"
python3 -I tools/router/post.py
python3 -I tools/router/reroute.py VDD_DDR PORT_ARM
python3 -I tools/router/audit.py