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/PowerSupplySection.tsx
import { BatteryConnector } from "../imports/BatteryConnector";
import { CJ2301 } from "../imports/CJ2301";
import { MBR0530 } from "../imports/MBR0530";
import { RT9080_33 } from "../imports/RT9080_33";
import { TP4054 } from "../imports/TP4054";
import { schematicSections, schematicSheets } from "./config";
export const PowerSupplyComponents = () => (
<>
<TP4054
name="U3"
pcbX={15.1}
pcbY={-7.05}
pcbRotation={90}
schSectionName={schematicSections.power}
schSheetName={schematicSheets.power}
/>
<BatteryConnector
name="J1"
pcbX={12.25}
pcbY={8.5}
pcbRotation={270}
schSectionName={schematicSections.powerRegulator}
schSheetName={schematicSheets.power}
noConnect={["pin3", "pin4"]}
/>
<capacitor
name="C10"
capacitance="10uF"
footprint="0402"
pcbX={7.2}
pcbY={-2.4}
pcbRotation={270}
schSectionName={schematicSections.powerRegulator}
schSheetName={schematicSheets.power}
/>
<resistor
name="R2"
resistance="100kΩ"
footprint="0402"
pcbX={11.95}
pcbY={-9.92}
pcbRotation={90}
schSectionName={schematicSections.power}
schSheetName={schematicSheets.power}
/>
<resistor
name="R5"
resistance="51kΩ"
footprint="0402"
pcbX={10.9}
pcbY={-9.92}
pcbRotation={90}
schSectionName={schematicSections.power}
schSheetName={schematicSheets.power}
/>
<resistor
name="R3"
resistance="10kΩ"
footprint="0402"
pcbX={13}
pcbY={-9.92}
pcbRotation={270}
schSectionName={schematicSections.power}
schSheetName={schematicSheets.power}
/>
<CJ2301
name="Q1"
pcbX={11.6}
pcbY={-7.07}
pcbRotation={90}
schSectionName={schematicSections.powerRegulator}
schSheetName={schematicSheets.power}
/>
<capacitor
name="C11"
capacitance="100nF"
footprint="0402"
pcbX={15.62}
pcbY={4.7}
schSectionName={schematicSections.powerMonitor}
schSheetName={schematicSheets.power}
/>
<RT9080_33
name="U2"
pcbX={9.7}
pcbY={-3.45}
pcbRotation={180}
schSectionName={schematicSections.powerRegulator}
schSheetName={schematicSheets.power}
/>
<resistor
name="R9"
resistance="360kΩ"
footprint="0402"
pcbX={15.64}
pcbY={5.8}
schSectionName={schematicSections.powerMonitor}
schSheetName={schematicSheets.power}
/>
<resistor
name="R8"
resistance="100kΩ"
footprint="0402"
pcbX={15.64}
pcbY={6.9}
pcbRotation={180}
schSectionName={schematicSections.powerMonitor}
schSheetName={schematicSheets.power}
/>
<resistor
name="R6"
resistance="100kΩ"
footprint="0402"
pcbX={9.85}
pcbY={-9.92}
pcbRotation={270}
schSectionName={schematicSections.power}
schSheetName={schematicSheets.power}
/>
<MBR0530
name="D1"
pcbX={9.16}
pcbY={-0.6}
schSectionName={schematicSections.powerRegulator}
schSheetName={schematicSheets.power}
/>
</>
);
export const PowerSupplyTraces = () => (
<>
<trace from=".C10 > .pin1" to="net.P3V3" />
<trace from=".U2 > .pin5" to="net.P3V3" />
<trace from=".U3 > .pin2" to="net.GND" />
<trace from=".J1 > .pin2" to="net.GND" />
<trace from=".C10 > .pin2" to="net.GND" />
<trace from=".R2 > .pin2" to="net.GND" />
<trace from=".R3 > .pin1" to="net.GND" />
<trace from=".C11 > .pin2" to="net.GND" />
<trace from=".U2 > .pin2" to="net.GND" />
<trace from=".R9 > .pin2" to="net.GND" />
<trace from=".U3 > .pin1" to="net.CHARGE_STATUS_RAW" />
<trace from=".R6 > .pin2" to="net.CHARGE_STATUS_RAW" />
<trace from=".U3 > .pin3" to="net.PBATT" />
<trace from=".J1 > .pin1" to="net.PBATT" />
<trace from=".Q1 > .pin3" to="net.PBATT" />
<trace from=".R8 > .pin1" to="net.PBATT" />
<trace from=".U3 > .pin4" to="net.VBUS" />
<trace from=".R2 > .pin1" to="net.VBUS" />
<trace from=".R5 > .pin1" to="net.VBUS" />
<trace from=".Q1 > .pin1" to="net.VBUS" />
<trace from=".D1 > .pin2" to="net.VBUS" />
<trace from=".U3 > .pin5" to="net.CHARGE_PROGRAM" />
<trace from=".R3 > .pin2" to="net.CHARGE_PROGRAM" />
<trace from=".C11 > .pin1" to="net.ADC" />
<trace from=".R9 > .pin1" to="net.ADC" />
<trace from=".R8 > .pin2" to="net.ADC" />
<trace from=".R5 > .pin2" to="net.STAT" />
<trace from=".R6 > .pin1" to="net.STAT" />
<trace from=".Q1 > .pin2" to="net.LDO_IN" />
<trace from=".U2 > .pin1" to="net.LDO_IN" />
<trace from=".U2 > .pin3" to="net.LDO_IN" />
<trace from=".D1 > .pin1" to="net.LDO_IN" />
</>
);