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.
lib/crystals.tsx
import type { ChipProps } from "@tscircuit/props"
import { SCH_PINS } from "./sch-pins"
/**
* 24 MHz SoC crystal as a <chip>, with the land pattern, 3D model and JLC number copied from the
* JLC import (C127895). Pins 1/3 are the crystal, pins 2/4 the lid (ground).
*/
/** 24 MHz Murata XRCGB24M000F3M00R0 (2016, 4 pads: 1/3 crystal, 2/4 ground). */
export const Hse24m = (props: ChipProps<{ pin1: ["XIN"]; pin2: ["GND1"]; pin3: ["XOUT"]; pin4: ["GND2"] }>) => (
<chip
{...props}
pinLabels={{ pin1: ["XIN"], pin2: ["GND1"], pin3: ["XOUT"], pin4: ["GND2"] }}
{...(SCH_PINS.HSE24M as any)}
supplierPartNumbers={{ jlcpcb: ["C127895"] }}
manufacturerPartNumber="XRCGB24M000F3M00R0"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-0.650113mm" pcbY="-0.450088mm" width="0.850011mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0.650113mm" pcbY="-0.450088mm" width="0.850011mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.650113mm" pcbY="0.449834mm" width="0.850011mm" height="0.6999986mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-0.649859mm" pcbY="0.450088mm" width="0.850011mm" height="0.6999986mm" shape="rect" />
<silkscreenpath route={[{"x":-1.2698729999999614,"y":1.0160000000000764},{"x":-1.2698729999999614,"y":-1.143000000000029},{"x":1.2701269999998885,"y":-1.143000000000029},{"x":1.2701269999998885,"y":1.0160000000000764},{"x":-1.2698729999999614,"y":1.0160000000000764}]} />
<silkscreenpath route={[{"x":-1.5238730000000942,"y":-0.2539999999999054},{"x":-1.5238730000000942,"y":-1.3969999999999345},{"x":-0.5078730000000178,"y":-1.3969999999999345}]} />
<silkscreentext text="{NAME}" pcbX="-0.126873mm" pcbY="2.016mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.3251185000000305,"y":1.0500873000000865},{"x":1.3251185000000305,"y":1.0500873000000865},{"x":1.3251185000000305,"y":-1.0500873000000865},{"x":-1.3251185000000305,"y":-1.0500873000000865},{"x":-1.3251185000000305,"y":1.0500873000000865}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C127895.obj?uuid=3dcd01fb6c68411cae8127ed2e0ab3c7",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C127895.step?uuid=3dcd01fb6c68411cae8127ed2e0ab3c7",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.0050000000000000044, y: 0, z: -0.01 },
}}
/>
)