AnasSarkiz/ble-pedometer
This code defines and configures various electronic hardware components such as surface-mount resistors, crystals, diodes, transistors, connectors, and switches with their physical footprints, schematic symbols, and 3D CAD models for PCB assembly.
- Version
- 1.0.7
- License
- unset
- Stars
- 0
schematic-layout.ts
const powerUsbInput = {
schSheetName: "power",
schSectionName: "usb_input",
} as const
const powerCharger = {
schSheetName: "power",
schSectionName: "charger_power_path",
} as const
const powerBatteryGauge = {
schSheetName: "power",
schSectionName: "battery_gauge",
} as const
const coreMcu = {
schSheetName: "core",
schSectionName: "ble_mcu",
} as const
const coreMotion = {
schSheetName: "core",
schSectionName: "motion_sensor",
} as const
const coreDebug = {
schSheetName: "core",
schSectionName: "debug_test",
} as const
const interfaceDisplay = {
schSheetName: "interfaces",
schSectionName: "display_interface",
} as const
const interfaceRf = {
schSheetName: "interfaces",
schSectionName: "rf_front_end",
} as const
export const schematicLayout = {
J1_USB: { ...powerUsbInput, schX: -20, schY: 0 },
R1_CC1: { ...powerUsbInput, schX: -17, schY: 4 },
R2_CC2: { ...powerUsbInput, schX: -17, schY: -4 },
D1_VBUS_TVS: { ...powerUsbInput, schX: -13, schY: 4 },
C1_VBUS: { schOrientation: "vertical", ...powerUsbInput, schX: -13, schY: -4 },
U2_CHARGER: { ...powerCharger, schX: -1, schY: 0, schHeight: 1.2 },
C2_VSYS: { schOrientation: "vertical", ...powerCharger, schX: -6, schY: 8 },
C3_BAT: { schOrientation: "vertical", ...powerCharger, schX: -2, schY: 8 },
U6_SYS_LDO: { ...powerCharger, schX: 6, schY: 0, schHeight: 0.6 },
C5_LDO_IN: { schOrientation: "vertical", ...powerCharger, schX: 2, schY: 8 },
C6_SYS_VDD: { schOrientation: "vertical", ...powerCharger, schX: 6, schY: 4 },
R6_CE_PU: { ...powerCharger, schX: 6, schY: -8 },
R7_PG_PU: { ...powerCharger, schX: 2, schY: -8 },
R8_CHG_INT_PU: { ...powerCharger, schX: -2, schY: -8 },
SW1_WAKE: { ...powerCharger, schX: -6, schY: -8 },
U3_GAUGE: { ...powerBatteryGauge, schX: 13, schY: 0, schHeight: 1 },
J2_BATTERY: { ...powerBatteryGauge, schX: 20, schY: 0, schHeight: 0.6 },
C7_GAUGE_BAT: { schOrientation: "vertical", ...powerBatteryGauge, schX: 10, schY: 7 },
C8_GAUGE_VDD: { schOrientation: "vertical", ...powerBatteryGauge, schX: 14, schY: 7 },
R9_BIN_PD: { ...powerBatteryGauge, schX: 20, schY: 10 },
R10_GAUGE_INT_PU: { ...powerBatteryGauge, schX: 14, schY: -7 },
U1_MCU: { ...coreMcu, schX: -5, schY: 0, schHeight: 2.6 },
L1_DCDC: { ...coreMcu, schX: 2, schY: 8 },
C9_VDDR_10U: { schOrientation: "vertical", ...coreMcu, schX: -12, schY: 6.5 },
C10_VDDR_100N_A: { schOrientation: "vertical", ...coreMcu, schX: -8, schY: 8 },
C11_VDDR_100N_B: { schOrientation: "vertical", ...coreMcu, schX: -4, schY: 8 },
C12_VDDD: { schOrientation: "vertical", ...coreMcu, schX: 0, schY: 8 },
C13_VDDS1: { schOrientation: "vertical", ...coreMcu, schX: -12, schY: -8 },
C14_VDDS2: { schOrientation: "vertical", ...coreMcu, schX: -8, schY: -8 },
C15_VDDS3: { schOrientation: "vertical", ...coreMcu, schX: -4, schY: -8 },
C16_VDDS_BULK: { schOrientation: "vertical", ...coreMcu, schX: 0, schY: -8 },
Y1_48MHZ: { ...coreMcu, schX: 4, schY: 3 },
R11_RESET_PU: { ...coreMcu, schX: 4, schY: -2 },
C17_RESET: { schOrientation: "vertical", ...coreMcu, schX: 4, schY: -6 },
U4_ACCEL: { ...coreMotion, schX: 13, schY: 0 },
C18_ACCEL_VDD: { schOrientation: "vertical", ...coreMotion, schX: 10, schY: 7 },
C19_ACCEL_VDDIO: { schOrientation: "vertical", ...coreMotion, schX: 15, schY: 7 },
R12_I2C_SCL: { ...coreMotion, schX: 10, schY: -7 },
R13_I2C_SDA: { ...coreMotion, schX: 15, schY: -7 },
TP1_SWDIO: { ...coreDebug, schX: -12, schY: -13 },
TP2_SWDCK: { ...coreDebug, schX: -8, schY: -13 },
TP3_RESET: { ...coreDebug, schX: -4, schY: -13 },
TP4_GND: { ...coreDebug, schX: 0, schY: -13 },
TP5_SYS_VDD: { ...coreDebug, schX: 4, schY: -13 },
TP6_CHG_PG: { ...coreDebug, schX: 8, schY: -13 },
J3_DISPLAY: { ...interfaceDisplay, schX: -15, schY: 0, schHeight: 0.6 },
Q1_DISPLAY_SWITCH: { ...interfaceDisplay, schX: -8, schY: 5 },
R14_DISPLAY_GATE_PU: { ...interfaceDisplay, schX: -2, schY: 5 },
U5_DISPLAY_BUS_SWITCH: { ...interfaceDisplay, schX: -8, schY: -3 },
R15_DISPLAY_BUS_EN_PD: { ...interfaceDisplay, schX: -2, schY: -3 },
C20_DISPLAY_BULK: { schOrientation: "vertical", ...interfaceDisplay, schX: -2, schY: -8 },
C21_RF_FILTER_IN: { schOrientation: "vertical", ...interfaceRf, schX: 6, schY: 7 },
L2_RF_FILTER: { ...interfaceRf, schX: 10, schY: 3 },
C22_RF_FILTER_OUT: { schOrientation: "vertical", ...interfaceRf, schX: 14, schY: 7 },
C23_RF_TUNE_IN: { schOrientation: "vertical", ...interfaceRf, schX: 10, schY: -3 },
R16_RF_TUNE_SERIES: { ...interfaceRf, schX: 14, schY: -3 },
C24_RF_TUNE_OUT: { schOrientation: "vertical", ...interfaceRf, schX: 14, schY: -8 },
ANT1: { ...interfaceRf, schX: 20, schY: 0 },
} as const