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/McuCoreSection.tsx
import { Crystal_32Khz } from "../imports/Crystal_32Khz";
import { Crystal_40Mhz } from "../imports/Crystal_40Mhz";
import { ESP32_S3FN8 } from "../imports/ESP32_S3FN8";
import { SR2HARU } from "../imports/SR2HARU";
import { SWRA117D } from "../imports/SWRA117D";
import { schematicSections, schematicSheets } from "./config";
export const McuCoreComponents = () => (
<>
<testpoint
name="TP8"
pcbX={8.32}
pcbY={-12.69}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP9"
pcbX={8.32}
pcbY={-15.23}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C3"
capacitance="1uF"
footprint="0402"
pcbX={-0.5}
pcbY={13.19}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C2"
capacitance="1uF"
footprint="0402"
pcbX={-1.55}
pcbY={13.19}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<Crystal_40Mhz
name="Y2"
pcbX={6.5}
pcbY={5.0}
pcbRotation={180}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP5"
pcbX={-0.8}
pcbY={-0.7}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C6"
capacitance="100nF"
footprint="0402"
pcbX={5.1}
pcbY={10.43}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<inductor
name="L1"
inductance="7.5nH"
footprint="0402"
pcbX={3.55}
pcbY={12.27}
pcbRotation={90}
schSectionName={schematicSections.mcuRf}
schSheetName={schematicSheets.mcu}
/>
<ESP32_S3FN8
name="U4"
pcbX={0.52}
pcbY={7.22}
pcbRotation={90}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP6"
pcbX={-2.61}
pcbY={-0.45}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C15"
capacitance="1uF"
footprint="0402"
pcbX={-1.6}
pcbY={1.55}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP2"
pcbX={8.5}
pcbY={11.8}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<resistor
name="R1"
resistance="10kΩ"
footprint="0402"
pcbX={-2.6}
pcbY={14.7}
pcbRotation={270}
schSectionName={schematicSections.mcuReset}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C9"
capacitance="3pF"
footprint="0402"
pcbX={5.1}
pcbY={11.95}
schSectionName={schematicSections.mcuRf}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C4"
capacitance="1uF"
footprint="0402"
pcbX={6.15}
pcbY={10.43}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C1"
capacitance="10uF"
footprint="0402"
pcbX={7.2}
pcbY={10.43}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<SWRA117D
name="AE1"
pcbX={4.275}
pcbY={13.7}
schSectionName={schematicSections.mcuRf}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP1"
pcbX={8.5}
pcbY={5.7}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C5"
capacitance="100nF"
footprint="0402"
pcbX={0.55}
pcbY={13.19}
pcbRotation={270}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C16"
capacitance="26pF"
footprint="0402"
pcbX={8.1}
pcbY={7.4}
pcbRotation={90}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C19"
capacitance="26pF"
footprint="0402"
pcbX={6.2}
pcbY={7.3}
pcbRotation={270}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C7"
capacitance="3pF"
footprint="0402"
pcbX={2.1}
pcbY={12.91}
pcbRotation={180}
schSectionName={schematicSections.mcuRf}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP7"
pcbX={-3.51}
pcbY={1.34}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C18"
capacitance="10pF"
footprint="0402"
pcbX={-7.17}
pcbY={6.9}
pcbRotation={180}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP3"
pcbX={-5.34}
pcbY={4.71}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<testpoint
name="TP4"
pcbX={1.13}
pcbY={1}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C17"
capacitance="10pF"
footprint="0402"
pcbX={-7.17}
pcbY={8.57}
pcbRotation={180}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
<resistor
name="R12"
resistance="1MΩ"
footprint="0402"
pcbX={5.57}
pcbY={8.8}
schSectionName={schematicSections.mcuRf}
schSheetName={schematicSheets.mcu}
/>
<capacitor
name="C13"
capacitance="100nF"
footprint="0402"
pcbX={-1.6}
pcbY={2.65}
schSectionName={schematicSections.mcu}
schSheetName={schematicSheets.mcu}
/>
<SR2HARU
name="U1"
pcbX={-8.65}
pcbY={10.47}
pcbRotation={180}
schSectionName={schematicSections.mcuReset}
schSheetName={schematicSheets.mcu}
/>
<Crystal_32Khz
name="Y1"
pcbX={-5.36}
pcbY={7.73}
pcbRotation={90}
schSectionName={schematicSections.mcuClock}
schSheetName={schematicSheets.mcu}
/>
</>
);
export const McuCoreTraces = () => (
<>
<trace from=".TP8 > .pin1" to="net.P3V3" />
<trace from=".C3 > .pin1" to="net.P3V3" />
<trace from=".C6 > .pin1" to="net.P3V3" />
<trace from=".U4 > .pin2" to="net.P3V3" />
<trace from=".U4 > .pin3" to="net.P3V3" />
<trace from=".U4 > .pin20" to="net.P3V3" />
<trace from=".U4 > .pin46" to="net.P3V3" />
<trace from=".U4 > .pin55" to="net.P3V3" />
<trace from=".U4 > .pin56" to="net.P3V3" />
<trace from=".R1 > .pin2" to="net.P3V3" />
<trace from=".C4 > .pin1" to="net.P3V3" />
<trace from=".C1 > .pin1" to="net.P3V3" />
<trace from=".C5 > .pin1" to="net.P3V3" />
<trace from=".TP4 > .pin1" to="net.P3V3" />
<trace from=".U1 > .pin6" to="net.P3V3" />
<trace from=".TP9 > .pin1" to="net.GND" />
<trace from=".C3 > .pin2" to="net.GND" />
<trace from=".C2 > .pin2" to="net.GND" />
<trace from=".Y2 > .pin2" to="net.GND" />
<trace from=".Y2 > .pin4" to="net.GND" />
<trace from=".TP5 > .pin1" to="net.GND" />
<trace from=".C6 > .pin2" to="net.GND" />
<trace from=".U4 > .pin57" to="net.GND" />
<trace from=".C15 > .pin2" to="net.GND" />
<trace from=".C9 > .pin2" to="net.GND" />
<trace from=".C4 > .pin2" to="net.GND" />
<trace from=".C1 > .pin2" to="net.GND" />
<trace from=".AE1 > .pin2" to="net.GND" />
<trace from=".C5 > .pin2" to="net.GND" />
<trace from=".C16 > .pin2" to="net.GND" />
<trace from=".C19 > .pin2" to="net.GND" />
<trace from=".C7 > .pin2" to="net.GND" />
<trace from=".C18 > .pin2" to="net.GND" />
<trace from=".C17 > .pin2" to="net.GND" />
<trace from=".C13 > .pin2" to="net.GND" />
<trace from=".U1 > .pin1" to="net.GND" />
<trace from=".U4 > .pin41" to="net.BUSY" />
<trace from=".U4 > .pin40" to="net.RES" />
<trace from=".U4 > .pin39" to="net.DC" />
<trace from=".U4 > .pin38" to="net.CS" />
<trace from=".U4 > .pin37" to="net.SCK" />
<trace from=".U4 > .pin36" to="net.MOSI" />
<trace from=".C2 > .pin1" to="net.EN" />
<trace from=".U4 > .pin4" to="net.EN" />
<trace from=".R1 > .pin1" to="net.EN" />
<trace from=".U1 > .pin3" to="net.EN" />
<trace from=".U4 > .pin12" to="net.BTN1" />
<trace from=".U4 > .pin11" to="net.BTN2" />
<trace from=".U1 > .pin2" to="net.BTN2" />
<trace from=".U4 > .pin23" to="net.VIB_PWM" />
<trace from=".U4 > .pin5" to="net.BTN3" />
<trace from=".TP3 > .pin1" to="net.BTN3" />
<trace from=".U1 > .pin5" to="net.BTN3" />
<trace from=".U4 > .pin13" to="net.BTN4" />
<trace from=".U4 > .pin14" to="net.ADC" />
<trace from=".U4 > .pin15" to="net.STAT" />
<trace from=".U4 > .pin16" to="net.SCL" />
<trace from=".TP6 > .pin1" to="net.SCL" />
<trace from=".U4 > .pin17" to="net.SDA" />
<trace from=".TP7 > .pin1" to="net.SDA" />
<trace from=".U4 > .pin18" to="net.ACC_INT_2" />
<trace from=".U4 > .pin19" to="net.ACC_INT_1" />
<trace from=".U4 > .pin25" to="net.USB_DM_MCU" />
<trace from=".U4 > .pin26" to="net.USB_DP_MCU" />
<trace from=".U4 > .pin27" to="net.USB_DET" />
<trace from=".U4 > .pin29" to="net.VDD" />
<trace from=".C15 > .pin1" to="net.VDD" />
<trace from=".C13 > .pin1" to="net.VDD" />
<trace from=".U4 > .pin49" to="net.UART_TX" />
<trace from=".TP1 > .pin1" to="net.UART_TX" />
<trace from=".U4 > .pin50" to="net.UART_RX" />
<trace from=".TP2 > .pin1" to="net.UART_RX" />
</>
);