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/SensorsAndButtonsSection.tsx
import { BMA423 } from "../imports/BMA423";
import { D_1N4001 } from "../imports/D_1N4001";
import { EVQPU_LC_02K } from "../imports/EVQPU_LC_02K";
import { PagerMotor } from "../imports/PagerMotor";
import { S8050 } from "../imports/S8050";
import { schematicSections, schematicSheets } from "./config";
export const SensorsAndButtonsComponents = () => (
<>
<PagerMotor
name="M1"
pcbX={-14.45}
pcbY={7.975}
pcbRotation={270}
schSectionName={schematicSections.motor}
schSheetName={schematicSheets.motor}
/>
<resistor
name="R4"
resistance="100kΩ"
footprint="0402"
pcbX={15.51}
pcbY={-17.34}
pcbRotation={180}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<EVQPU_LC_02K
name="SW1"
pcbX={15.14}
pcbY={13.2}
pcbRotation={90}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<resistor
name="R13"
resistance="1kΩ"
footprint="0402"
pcbX={-7.15}
pcbY={5.8}
schSectionName={schematicSections.motor}
schSheetName={schematicSheets.motor}
/>
<S8050
name="Q2"
pcbX={-10.15}
pcbY={8.4}
pcbRotation={270}
schSectionName={schematicSections.motor}
schSheetName={schematicSheets.motor}
/>
<resistor
name="R18"
resistance="10kΩ"
footprint="0402"
pcbX={-7.43}
pcbY={10.49}
pcbRotation={90}
schSectionName={schematicSections.accelerometer}
schSheetName={schematicSheets.accelerometer}
/>
<EVQPU_LC_02K
name="SW2"
pcbX={14.94}
pcbY={-13.2}
pcbRotation={90}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<BMA423
name="U6"
pcbX={-5.71}
pcbY={10.81}
schSectionName={schematicSections.accelerometer}
schSheetName={schematicSheets.accelerometer}
/>
<EVQPU_LC_02K
name="SW3"
pcbX={-14.94}
pcbY={13.21}
pcbRotation={270}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<capacitor
name="C14"
capacitance="100nF"
footprint="0402"
pcbX={-10.09}
pcbY={11.1}
pcbRotation={90}
schSectionName={schematicSections.motor}
schSheetName={schematicSheets.motor}
/>
<D_1N4001
name="D2"
pcbX={-11.7}
pcbY={11.68}
pcbRotation={90}
schSectionName={schematicSections.motor}
schSheetName={schematicSheets.motor}
/>
<resistor
name="R11"
resistance="100kΩ"
footprint="0402"
pcbX={-15.53}
pcbY={-17.34}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<resistor
name="R20"
resistance="10kΩ"
footprint="0402"
pcbX={-5.39}
pcbY={12.53}
schSectionName={schematicSections.accelerometer}
schSheetName={schematicSheets.accelerometer}
/>
<EVQPU_LC_02K
name="SW4"
pcbX={-14.94}
pcbY={-13.2}
pcbRotation={270}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<resistor
name="R7"
resistance="100kΩ"
footprint="0402"
pcbX={6.9}
pcbY={2.7}
pcbRotation={270}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
<resistor
name="R10"
resistance="100kΩ"
footprint="0402"
pcbX={-10.08}
pcbY={13.1}
pcbRotation={90}
schSectionName={schematicSections.buttons}
schSheetName={schematicSheets.buttons}
/>
</>
);
export const SensorsAndButtonsTraces = () => (
<>
<trace from=".M1 > .pin1" to="net.P3V3" />
<trace from=".R4 > .pin2" to="net.P3V3" />
<trace from=".R18 > .pin2" to="net.P3V3" />
<trace from=".U6 > .pin3" to="net.P3V3" />
<trace from=".U6 > .pin7" to="net.P3V3" />
<trace from=".U6 > .pin10" to="net.P3V3" />
<trace from=".C14 > .pin1" to="net.P3V3" />
<trace from=".D2 > .pin1" to="net.P3V3" />
<trace from=".R11 > .pin2" to="net.P3V3" />
<trace from=".R20 > .pin2" to="net.P3V3" />
<trace from=".R7 > .pin2" to="net.P3V3" />
<trace from=".R10 > .pin2" to="net.P3V3" />
<trace from=".SW1 > .pin2" to="net.GND" />
<trace from=".Q2 > .pin2" to="net.GND" />
<trace from=".SW2 > .pin2" to="net.GND" />
<trace from=".U6 > .pin1" to="net.GND" />
<trace from=".U6 > .pin8" to="net.GND" />
<trace from=".U6 > .pin9" to="net.GND" />
<trace from=".SW3 > .pin2" to="net.GND" />
<trace from=".SW4 > .pin2" to="net.GND" />
<trace from=".M1 > .pin2" to="net.MOTOR_LOW" />
<trace from=".Q2 > .pin3" to="net.MOTOR_LOW" />
<trace from=".C14 > .pin2" to="net.MOTOR_LOW" />
<trace from=".D2 > .pin2" to="net.MOTOR_LOW" />
<trace from=".R4 > .pin1" to="net.BTN1" />
<trace from=".SW2 > .pin1" to="net.BTN1" />
<trace from=".SW1 > .pin1" to="net.BTN2" />
<trace from=".R7 > .pin1" to="net.BTN2" />
<trace from=".R13 > .pin1" to="net.MOTOR_GATE" />
<trace from=".Q2 > .pin1" to="net.MOTOR_GATE" />
<trace from=".R13 > .pin2" to="net.VIB_PWM" />
<trace from=".SW3 > .pin1" to="net.BTN3" />
<trace from=".R10 > .pin1" to="net.BTN3" />
<trace from=".R11 > .pin1" to="net.BTN4" />
<trace from=".SW4 > .pin1" to="net.BTN4" />
<trace from=".U6 > .pin12" to="net.SCL" />
<trace from=".R20 > .pin1" to="net.SCL" />
<trace from=".R18 > .pin1" to="net.SDA" />
<trace from=".U6 > .pin2" to="net.SDA" />
<trace from=".U6 > .pin6" to="net.ACC_INT_2" />
<trace from=".U6 > .pin5" to="net.ACC_INT_1" />
</>
);