krishnax12/usb-c-control-dial
USB-C control dial PCB with an EC11 push encoder and a 16-LED ring for volume and brightness controls. Work in progress; firmware not included and not fabrication-ready.
- Version
- 0.0.3
- License
- unset
- Stars
- 1
components/usb-interface.tsx
import { TYPE_C_31_M_12 } from "../imports/TYPE_C_31_M_12/TYPE_C_31_M_12"
import { USBLC6_2SC6 } from "../imports/USBLC6_2SC6/USBLC6_2SC6"
import { nSMD050_24V as ResettableFuse } from "../imports/nSMD050_24V/nSMD050_24V"
export function UsbInterface() {
return (
<schematicsheet name="USB_POWER">
<TYPE_C_31_M_12
name="J1"
pcbY={-34}
schWidth={1.8}
schHeight={2}
schPinArrangement={{
rightSide: {
pins: ["DP1", "DP2", "DN1", "DN2", "CC1", "CC2", "SBU1", "SBU2"],
direction: "top-to-bottom",
},
leftSide: {
pins: [
"VBUS1",
"VBUS2",
"GND1",
"GND2",
"EH1",
"EH2",
"EH3",
"EH4",
],
direction: "top-to-bottom",
},
}}
connections={{
VBUS1: "net.VBUS",
VBUS2: "net.VBUS",
GND1: "net.GND",
GND2: "net.GND",
EH1: "net.GND",
EH2: "net.GND",
EH3: "net.GND",
EH4: "net.GND",
DP1: "net.USB_DP",
DP2: "net.USB_DP",
DN1: "net.USB_DM",
DN2: "net.USB_DM",
CC1: "net.CC1",
CC2: "net.CC2",
}}
noConnect={["SBU1", "SBU2"]}
/>
<resistor
name="R1"
resistance="5.1k"
supplierPartNumbers={{ jlcpcb: ["C23186"] }}
footprint="0603"
pcbX={-5.8}
pcbY={-24}
pcbRotation={90}
connections={{ pin1: "net.CC1", pin2: "net.GND" }}
/>
<resistor
name="R2"
resistance="5.1k"
supplierPartNumbers={{ jlcpcb: ["C23186"] }}
footprint="0603"
pcbX={5.8}
pcbY={-24}
pcbRotation={90}
connections={{ pin1: "net.CC2", pin2: "net.GND" }}
/>
<ResettableFuse
name="F1"
currentRating={0.5}
voltageRating={24}
schRotation={-90}
symbol={undefined}
pcbX={10}
pcbY={-31}
connections={{ pin1: "net.VBUS", pin2: "net.V5" }}
/>
<USBLC6_2SC6
name="U2"
pcbX={0}
pcbY={-22}
connections={{
pin1: "net.USB_DM",
pin6: "net.USB_DM",
pin3: "net.USB_DP",
pin4: "net.USB_DP",
pin2: "net.GND",
pin5: "net.VBUS",
}}
/>
<capacitor
name="C1"
capacitance="100nF"
supplierPartNumbers={{ jlcpcb: ["C14663"] }}
maxVoltageRating="16V"
footprint="0603"
pcbX={3}
pcbY={-21.5}
pcbRotation={270}
connections={{ pin1: "net.VBUS", pin2: "net.GND" }}
/>
<capacitor
name="C2"
pcbRotation={180}
capacitance="4.7uF"
supplierPartNumbers={{ jlcpcb: ["C1779"] }}
maxVoltageRating="16V"
footprint="0805"
pcbX={8.5}
pcbY={-21.5}
connections={{ pin1: "net.V5", pin2: "net.GND" }}
/>
<schematictext
schX={0}
schY={12}
fontSize={0.7}
text="USB 2.0 device / 5 V bus power. Separate 5.1k CC pull-downs; 500 mA resettable fuse."
/>
</schematicsheet>
)
}