krishnax12/watchy-eink-smartwatch

Unfinished prototype (not production-ready): 4 native DRC errors, 2 display-flex intersections, and missing antenna radiator copper remain

Version
1.2.7
License
MIT
Stars
1

schematic/UsbInterfaceSection.tsx

import { MicroUSB } from "../imports/MicroUSB";
import { USBLC6_2SC6 } from "../imports/USBLC6_2SC6";
import { schematicSections, schematicSheets } from "./config";

export const UsbInterfaceComponents = () => (
	<>
		<MicroUSB
			name="J2"
			pcbX={13.65}
			pcbY={-0.55}
			pcbRotation={90}
			schSectionName={schematicSections.usb}
			schSheetName={schematicSheets.usb}
			noConnect={["pin4", "pin6", "pin7", "pin8", "pin9"]}
		/>
		<resistor
			name="R15"
			resistance="100kΩ"
			footprint="0402"
			pcbX={5.25}
			pcbY={-0.38}
			pcbRotation={270}
			schSectionName={schematicSections.usbProtection}
			schSheetName={schematicSheets.usb}
		/>
		<resistor
			name="R14"
			resistance="51kΩ"
			footprint="0402"
			pcbX={6.35}
			pcbY={-0.38}
			pcbRotation={90}
			schSectionName={schematicSections.usbProtection}
			schSheetName={schematicSheets.usb}
		/>
		<USBLC6_2SC6
			name="U5"
			pcbX={9.5}
			pcbY={1.65}
			schSectionName={schematicSections.usbProtection}
			schSheetName={schematicSheets.usb}
		/>
		<capacitor
			name="C12"
			capacitance="100nF"
			footprint="0402"
			pcbX={10.2}
			pcbY={3.55}
			pcbRotation={180}
			schSectionName={schematicSections.usbProtection}
			schSheetName={schematicSheets.usb}
		/>
	</>
);

export const UsbInterfaceTraces = () => (
	<>
		<trace from=".J2 > .pin5" to="net.GND" />
		<trace from=".R15 > .pin2" to="net.GND" />
		<trace from=".U5 > .pin2" to="net.GND" />
		<trace from=".C12 > .pin2" to="net.GND" />
		<trace from=".J2 > .pin1" to="net.VBUS" />
		<trace from=".R14 > .pin1" to="net.VBUS" />
		<trace from=".U5 > .pin5" to="net.VBUS" />
		<trace from=".C12 > .pin1" to="net.VBUS" />
		<trace from=".J2 > .pin2" to="net.DN" />
		<trace from=".U5 > .pin4" to="net.DN" />
		<trace from=".J2 > .pin3" to="net.DP" />
		<trace from=".U5 > .pin6" to="net.DP" />
		<trace from=".U5 > .pin3" to="net.USB_DM_MCU" />
		<trace from=".U5 > .pin1" to="net.USB_DP_MCU" />
		<trace from=".R15 > .pin1" to="net.USB_DET" />
		<trace from=".R14 > .pin2" to="net.USB_DET" />
	</>
);