From 98fa0d84b919c5b3bf8467119d3349ed9a51fe8a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Mar 2026 12:25:57 -0500 Subject: [PATCH] Fix KiCad file syntax - remove invalid comments and add proper property formatting --- presence-sensor.kicad_pcb | 41 ------ presence-sensor.kicad_sch | 292 +++++++++++++------------------------- 2 files changed, 102 insertions(+), 231 deletions(-) diff --git a/presence-sensor.kicad_pcb b/presence-sensor.kicad_pcb index e55b949..5620991 100644 --- a/presence-sensor.kicad_pcb +++ b/presence-sensor.kicad_pcb @@ -62,9 +62,6 @@ ) ) - ;; ===================================================== - ;; BOARD OUTLINE - 45mm x 35mm with rounded corners - ;; ===================================================== (gr_arc (start 3 0) (mid 0.879 0.879) (end 0 3) (layer "Edge.Cuts") (width 0.15)) (gr_line (start 3 0) (end 42 0) (layer "Edge.Cuts") (width 0.15)) (gr_arc (start 45 3) (mid 44.121 0.879) (end 42 0) (layer "Edge.Cuts") (width 0.15)) @@ -74,16 +71,8 @@ (gr_arc (start 0 32) (mid 0.879 34.121) (end 3 35) (layer "Edge.Cuts") (width 0.15)) (gr_line (start 0 32) (end 0 3) (layer "Edge.Cuts") (width 0.15)) - ;; ===================================================== - ;; COMPONENT PLACEMENT (all coordinates in mm from top-left) - ;; Front = component side (facing room) - ;; Back = wall side - ;; ===================================================== - ;; --- BACK SIDE (facing wall) --- - ;; ESP32-S3-WROOM-1 - center of board, back side - ;; Module is 18x25.5mm, antenna at top extending past board edge (footprint "RF_Module:ESP32-S3-WROOM-1" (layer "B.Cu") (at 22.5 18 0) @@ -92,7 +81,6 @@ (property "JLCPCB" "C2913202") ) - ;; AMS1117-3.3 LDO - bottom right, back side (footprint "Package_TO_SOT_SMD:SOT-223-3_TabPin2" (layer "B.Cu") (at 38 30 0) @@ -101,7 +89,6 @@ (property "JLCPCB" "C6186") ) - ;; AP2112K-1.8 (camera DOVDD) - top right, back side (footprint "Package_TO_SOT_SMD:SOT-23-5" (layer "B.Cu") (at 38 5 0) @@ -110,7 +97,6 @@ (property "JLCPCB" "C51118") ) - ;; AP2112K-2.8 (camera AVDD) - top right, back side (footprint "Package_TO_SOT_SMD:SOT-23-5" (layer "B.Cu") (at 38 10 0) @@ -119,7 +105,6 @@ (property "JLCPCB" "C51114") ) - ;; USB ESD Protection (footprint "Package_TO_SOT_SMD:SOT-23-6" (layer "B.Cu") (at 22.5 32 0) @@ -128,9 +113,7 @@ (property "JLCPCB" "C7519") ) - ;; --- FRONT SIDE (facing room) --- - ;; USB-C connector - bottom center, front side (footprint "Connector_USB:USB_C_Receptacle_GCT_USB4125" (layer "F.Cu") (at 22.5 35 180) @@ -139,7 +122,6 @@ (property "JLCPCB" "C2765186") ) - ;; FPC camera connector - top center, front side (footprint "Connector_FFC-FPC:Molex_503480-2400_1x24-1MP_P0.50mm_Horizontal" (layer "F.Cu") (at 22.5 2 0) @@ -148,7 +130,6 @@ (property "JLCPCB" "C2856805") ) - ;; LD2410C header - right side, front (footprint "Connector_PinHeader_1.27mm:PinHeader_1x05_P1.27mm_Vertical" (layer "F.Cu") (at 42 17.5 90) @@ -156,7 +137,6 @@ (property "Value" "LD2410C") ) - ;; AM312 PIR header - left side, front (footprint "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (layer "F.Cu") (at 3 15 90) @@ -164,7 +144,6 @@ (property "Value" "AM312_PIR") ) - ;; SHT41 - left edge, front (away from ESP32 heat) (footprint "Sensor_Humidity:Sensirion_DFN-4-1EP_1.5x1.5mm_P0.8mm_EP0.5x0.5mm" (layer "F.Cu") (at 4 28 0) @@ -173,7 +152,6 @@ (property "JLCPCB" "C2911456") ) - ;; BH1750 - left of center, front (footprint "Package_SO:WSOF-6_1.4x1.7mm_P0.5mm" (layer "F.Cu") (at 12 22 0) @@ -182,7 +160,6 @@ (property "JLCPCB" "C78960") ) - ;; Status LED - front side, visible (footprint "LED_SMD:LED_0402_1005Metric" (layer "F.Cu") (at 40 28 0) @@ -191,9 +168,7 @@ (property "JLCPCB" "C2286") ) - ;; --- PASSIVE COMPONENTS (back side, near their ICs) --- - ;; Input cap - near AMS1117 (footprint "Capacitor_SMD:C_0805_2012Metric" (layer "B.Cu") (at 33 30 0) @@ -201,7 +176,6 @@ (property "Value" "10uF") ) - ;; Output cap - near AMS1117 (footprint "Capacitor_SMD:C_0805_2012Metric" (layer "B.Cu") (at 33 33 0) @@ -209,7 +183,6 @@ (property "Value" "22uF") ) - ;; Decoupling caps - near ESP32 (footprint "Capacitor_SMD:C_0402_1005Metric" (layer "B.Cu") (at 15 8 0) @@ -235,7 +208,6 @@ (property "Value" "10uF") ) - ;; Camera power caps (footprint "Capacitor_SMD:C_0805_2012Metric" (layer "B.Cu") (at 35 3 0) @@ -249,7 +221,6 @@ (property "Value" "100nF") ) - ;; LD2410C decoupling (footprint "Capacitor_SMD:C_0805_2012Metric" (layer "B.Cu") (at 40 15 0) @@ -257,7 +228,6 @@ (property "Value" "10uF") ) - ;; SHT41 decoupling (footprint "Capacitor_SMD:C_0402_1005Metric" (layer "F.Cu") (at 7 28 0) @@ -265,7 +235,6 @@ (property "Value" "100nF") ) - ;; BH1750 decoupling (footprint "Capacitor_SMD:C_0402_1005Metric" (layer "F.Cu") (at 15 22 0) @@ -273,7 +242,6 @@ (property "Value" "100nF") ) - ;; Resistors (footprint "Resistor_SMD:R_0402_1005Metric" (layer "F.Cu") (at 38 28 0) @@ -303,7 +271,6 @@ (property "Description" "I2C SCL pull-up") ) - ;; Buttons - back side, accessible via pinhole (footprint "Button_Switch_SMD:SW_SPST_PTS810" (layer "B.Cu") (at 5 33 0) @@ -317,7 +284,6 @@ (property "Value" "RESET") ) - ;; Mounting holes (footprint "MountingHole:MountingHole_2.2mm_M2_Pad" (layer "F.Cu") (at 2.5 2.5 0) @@ -331,9 +297,6 @@ (property "Value" "MountingHole") ) - ;; ===================================================== - ;; SILKSCREEN LABELS - ;; ===================================================== (gr_text "Presence Sensor v1.0" (at 22.5 17.5 0) (layer "F.SilkS") @@ -365,10 +328,6 @@ (effects (font (size 0.8 0.8) (thickness 0.15)) (justify center)) ) - ;; ===================================================== - ;; ANTENNA KEEP-OUT ZONE - ;; ESP32-S3 antenna at top of module - no copper - ;; ===================================================== (gr_rect (start 13 0) (end 32 6) (layer "F.SilkS") (width 0.15) (fill none) ) diff --git a/presence-sensor.kicad_sch b/presence-sensor.kicad_sch index 11c5415..767858e 100644 --- a/presence-sensor.kicad_sch +++ b/presence-sensor.kicad_sch @@ -12,85 +12,68 @@ (comment 2 "ESP32-S3 + OV5640 + LD2410C + AM312 + SHT41 + BH1750") ) - ;; ===================================================== - ;; POWER SECTION - USB-C Input + 3.3V Regulation - ;; ===================================================== - (text "USB-C Power Input + 3.3V LDO" (at 25 25 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) ) - ;; USB-C Connector (USB4125-GF-A - 16 pin USB-C) (symbol (lib_id "Connector:USB_C_Receptacle_USB2.0") (at 40 60 0) (uuid "a1000001-0001-0001-0001-000000000001") - (property "Reference" "J1" (at 40 42 0)) - (property "Value" "USB_C_16P" (at 40 44 0)) - (property "Footprint" "Connector_USB:USB_C_Receptacle_GCT_USB4125" (at 40 60 0)) - (property "JLCPCB" "C2765186" (at 40 60 0)) + (property "Reference" "J1" (at 40 42 0) (effects (font (size 1.27 1.27)))) + (property "Value" "USB_C_16P" (at 40 44 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Connector_USB:USB_C_Receptacle_GCT_USB4125" (at 40 60 0) (effects (font (size 1.27 1.27)) hide)) + (property "JLCPCB" "C2765186" (at 40 60 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ESD Protection (USBLC6-2SC6) (symbol (lib_id "Power_Protection:USBLC6-2SC6") (at 70 60 0) (uuid "a1000001-0001-0001-0001-000000000002") - (property "Reference" "U1" (at 70 50 0)) - (property "Value" "USBLC6-2SC6" (at 70 52 0)) - (property "Footprint" "Package_TO_SOT_SMD:SOT-23-6" (at 70 60 0)) - (property "JLCPCB" "C7519" (at 70 60 0)) + (property "Reference" "U1" (at 70 50 0) (effects (font (size 1.27 1.27)))) + (property "Value" "USBLC6-2SC6" (at 70 52 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Package_TO_SOT_SMD:SOT-23-6" (at 70 60 0) (effects (font (size 1.27 1.27)) hide)) + (property "JLCPCB" "C7519" (at 70 60 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; AMS1117-3.3 LDO Regulator (symbol (lib_id "Regulator_Linear:AMS1117-3.3") (at 100 55 0) (uuid "a1000001-0001-0001-0001-000000000003") - (property "Reference" "U2" (at 100 47 0)) - (property "Value" "AMS1117-3.3" (at 100 49 0)) - (property "Footprint" "Package_TO_SOT_SMD:SOT-223-3_TabPin2" (at 100 55 0)) - (property "JLCPCB" "C6186" (at 100 55 0)) + (property "Reference" "U2" (at 100 47 0) (effects (font (size 1.27 1.27)))) + (property "Value" "AMS1117-3.3" (at 100 49 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Package_TO_SOT_SMD:SOT-223-3_TabPin2" (at 100 55 0) (effects (font (size 1.27 1.27)) hide)) + (property "JLCPCB" "C6186" (at 100 55 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Input capacitor 10uF (symbol (lib_id "Device:C") (at 90 65 0) (uuid "a1000001-0001-0001-0001-000000000004") - (property "Reference" "C1" (at 92 63 0)) - (property "Value" "10uF" (at 92 67 0)) - (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 90 65 0)) - (property "JLCPCB" "C15850" (at 90 65 0)) + (property "Reference" "C1" (at 92 63 0) (effects (font (size 1.27 1.27)))) + (property "Value" "10uF" (at 92 67 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 90 65 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Output capacitor 22uF (symbol (lib_id "Device:C") (at 110 65 0) (uuid "a1000001-0001-0001-0001-000000000005") - (property "Reference" "C2" (at 112 63 0)) - (property "Value" "22uF" (at 112 67 0)) - (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 110 65 0)) - (property "JLCPCB" "C45783" (at 110 65 0)) + (property "Reference" "C2" (at 112 63 0) (effects (font (size 1.27 1.27)))) + (property "Value" "22uF" (at 112 67 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 110 65 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Output capacitor 100nF decoupling (symbol (lib_id "Device:C") (at 120 65 0) (uuid "a1000001-0001-0001-0001-000000000006") - (property "Reference" "C3" (at 122 63 0)) - (property "Value" "100nF" (at 122 67 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 120 65 0)) - (property "JLCPCB" "C1525" (at 120 65 0)) + (property "Reference" "C3" (at 122 63 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 122 67 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 120 65 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ===================================================== - ;; MCU - ESP32-S3-WROOM-1 (N16R8) - ;; ===================================================== - (text "ESP32-S3-WROOM-1 (N16R8) - Main MCU" (at 25 100 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) @@ -100,316 +83,245 @@ (lib_id "RF_Module:ESP32-S3-WROOM-1") (at 80 160 0) (uuid "a1000001-0001-0001-0001-000000000010") - (property "Reference" "U3" (at 80 115 0)) - (property "Value" "ESP32-S3-WROOM-1-N16R8" (at 80 117 0)) - (property "Footprint" "RF_Module:ESP32-S3-WROOM-1" (at 80 160 0)) - (property "JLCPCB" "C2913202" (at 80 160 0)) - (property "Description" "ESP32-S3 WiFi+BLE module, 16MB Flash, 8MB PSRAM" (at 80 160 0)) + (property "Reference" "U3" (at 80 115 0) (effects (font (size 1.27 1.27)))) + (property "Value" "ESP32-S3-WROOM-1-N16R8" (at 80 117 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "RF_Module:ESP32-S3-WROOM-1" (at 80 160 0) (effects (font (size 1.27 1.27)) hide)) + (property "JLCPCB" "C2913202" (at 80 160 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Boot button (GPIO0) (symbol (lib_id "Switch:SW_Push") (at 35 145 0) (uuid "a1000001-0001-0001-0001-000000000011") - (property "Reference" "SW1" (at 35 140 0)) - (property "Value" "BOOT" (at 35 150 0)) - (property "Footprint" "Button_Switch_SMD:SW_SPST_PTS810" (at 35 145 0)) - (property "JLCPCB" "C116501" (at 35 145 0)) + (property "Reference" "SW1" (at 35 140 0) (effects (font (size 1.27 1.27)))) + (property "Value" "BOOT" (at 35 150 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Button_Switch_SMD:SW_SPST_PTS810" (at 35 145 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Reset button (EN) (symbol (lib_id "Switch:SW_Push") (at 35 160 0) (uuid "a1000001-0001-0001-0001-000000000012") - (property "Reference" "SW2" (at 35 155 0)) - (property "Value" "RESET" (at 35 165 0)) - (property "Footprint" "Button_Switch_SMD:SW_SPST_PTS810" (at 35 160 0)) - (property "JLCPCB" "C116501" (at 35 160 0)) + (property "Reference" "SW2" (at 35 155 0) (effects (font (size 1.27 1.27)))) + (property "Value" "RESET" (at 35 165 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Button_Switch_SMD:SW_SPST_PTS810" (at 35 160 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ESP32-S3 decoupling caps (3x 100nF + 1x 10uF) (symbol (lib_id "Device:C") (at 55 120 0) (uuid "a1000001-0001-0001-0001-000000000013") - (property "Reference" "C4" (at 57 118 0)) - (property "Value" "100nF" (at 57 122 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 55 120 0)) + (property "Reference" "C4" (at 57 118 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 57 122 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 55 120 0) (effects (font (size 1.27 1.27)) hide)) ) + (symbol (lib_id "Device:C") (at 62 120 0) (uuid "a1000001-0001-0001-0001-000000000014") - (property "Reference" "C5" (at 64 118 0)) - (property "Value" "100nF" (at 64 122 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 62 120 0)) + (property "Reference" "C5" (at 64 118 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 64 122 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 62 120 0) (effects (font (size 1.27 1.27)) hide)) ) + (symbol (lib_id "Device:C") (at 69 120 0) (uuid "a1000001-0001-0001-0001-000000000015") - (property "Reference" "C6" (at 71 118 0)) - (property "Value" "10uF" (at 71 122 0)) - (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 69 120 0)) + (property "Reference" "C6" (at 71 118 0) (effects (font (size 1.27 1.27)))) + (property "Value" "10uF" (at 71 122 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 69 120 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Status LED (symbol (lib_id "Device:LED") (at 130 140 0) (uuid "a1000001-0001-0001-0001-000000000016") - (property "Reference" "D1" (at 132 138 0)) - (property "Value" "LED_Blue" (at 132 142 0)) - (property "Footprint" "LED_SMD:LED_0402_1005Metric" (at 130 140 0)) - (property "JLCPCB" "C2286" (at 130 140 0)) + (property "Reference" "D1" (at 132 138 0) (effects (font (size 1.27 1.27)))) + (property "Value" "LED_Blue" (at 132 142 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "LED_SMD:LED_0402_1005Metric" (at 130 140 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; LED resistor (symbol (lib_id "Device:R") (at 130 130 0) (uuid "a1000001-0001-0001-0001-000000000017") - (property "Reference" "R1" (at 132 130 0)) - (property "Value" "1K" (at 134 130 0)) - (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 130 130 0)) - (property "JLCPCB" "C11702" (at 130 130 0)) + (property "Reference" "R1" (at 132 130 0) (effects (font (size 1.27 1.27)))) + (property "Value" "1K" (at 134 130 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 130 130 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ===================================================== - ;; CAMERA - OV5640 via 24-pin FPC connector - ;; ===================================================== - (text "OV5640 5MP Camera Module (24-pin FPC)" (at 170 25 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) ) - ;; 24-pin FPC connector for OV5640 (symbol (lib_id "Connector_Generic:Conn_01x24") (at 190 80 0) (uuid "a1000001-0001-0001-0001-000000000020") - (property "Reference" "J2" (at 190 42 0)) - (property "Value" "FPC_24P_OV5640" (at 190 44 0)) - (property "Footprint" "Connector_FFC-FPC:Molex_503480-2400_1x24-1MP_P0.50mm_Horizontal" (at 190 80 0)) - (property "JLCPCB" "C2856805" (at 190 80 0)) - (property "Description" "24-pin 0.5mm FPC connector for OV5640 camera module" (at 190 80 0)) + (property "Reference" "J2" (at 190 42 0) (effects (font (size 1.27 1.27)))) + (property "Value" "FPC_24P_OV5640" (at 190 44 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Connector_FFC-FPC:Molex_503480-2400_1x24-1MP_P0.50mm_Horizontal" (at 190 80 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Camera power filter caps (symbol (lib_id "Device:C") (at 175 50 0) (uuid "a1000001-0001-0001-0001-000000000021") - (property "Reference" "C7" (at 177 48 0)) - (property "Value" "10uF" (at 177 52 0)) - (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 175 50 0)) + (property "Reference" "C7" (at 177 48 0) (effects (font (size 1.27 1.27)))) + (property "Value" "10uF" (at 177 52 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 175 50 0) (effects (font (size 1.27 1.27)) hide)) ) + (symbol (lib_id "Device:C") (at 182 50 0) (uuid "a1000001-0001-0001-0001-000000000022") - (property "Reference" "C8" (at 184 48 0)) - (property "Value" "100nF" (at 184 52 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 182 50 0)) + (property "Reference" "C8" (at 184 48 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 184 52 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 182 50 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Camera 1.8V LDO (for DOVDD) (symbol (lib_id "Regulator_Linear:AP2112K-1.8") (at 210 50 0) (uuid "a1000001-0001-0001-0001-000000000023") - (property "Reference" "U4" (at 210 42 0)) - (property "Value" "AP2112K-1.8" (at 210 44 0)) - (property "Footprint" "Package_TO_SOT_SMD:SOT-23-5" (at 210 50 0)) - (property "JLCPCB" "C51118" (at 210 50 0)) - (property "Description" "1.8V LDO for camera DOVDD" (at 210 50 0)) + (property "Reference" "U4" (at 210 42 0) (effects (font (size 1.27 1.27)))) + (property "Value" "AP2112K-1.8" (at 210 44 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Package_TO_SOT_SMD:SOT-23-5" (at 210 50 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; Camera 2.8V LDO (for AVDD) (symbol (lib_id "Regulator_Linear:AP2112K-2.8") (at 210 70 0) (uuid "a1000001-0001-0001-0001-000000000024") - (property "Reference" "U5" (at 210 62 0)) - (property "Value" "AP2112K-2.8" (at 210 64 0)) - (property "Footprint" "Package_TO_SOT_SMD:SOT-23-5" (at 210 70 0)) - (property "JLCPCB" "C51114" (at 210 70 0)) - (property "Description" "2.8V LDO for camera AVDD" (at 210 70 0)) + (property "Reference" "U5" (at 210 62 0) (effects (font (size 1.27 1.27)))) + (property "Value" "AP2112K-2.8" (at 210 64 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Package_TO_SOT_SMD:SOT-23-5" (at 210 70 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; 24MHz crystal oscillator for camera XCLK (if not using ESP32 LEDC PWM) - ;; Note: ESP32-S3 can generate XCLK via LEDC, so crystal is optional - ;; Using LEDC output from GPIO15 instead - - ;; ===================================================== - ;; mmWave RADAR - HLK-LD2410C - ;; ===================================================== - (text "HLK-LD2410C 24GHz mmWave Presence Radar" (at 170 120 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) ) - ;; LD2410C connector (5-pin: VCC, GND, TX, RX, OUT) (symbol (lib_id "Connector_Generic:Conn_01x05") (at 200 145 0) (uuid "a1000001-0001-0001-0001-000000000030") - (property "Reference" "J3" (at 200 135 0)) - (property "Value" "LD2410C" (at 200 137 0)) - (property "Footprint" "Connector_PinHeader_1.27mm:PinHeader_1x05_P1.27mm_Vertical" (at 200 145 0)) - (property "Description" "HLK-LD2410C 24GHz mmWave radar module connector" (at 200 145 0)) - (pin_names - (pin "1" "VCC_5V") - (pin "2" "GND") - (pin "3" "UART_TX") - (pin "4" "UART_RX") - (pin "5" "OUT") - ) + (property "Reference" "J3" (at 200 135 0) (effects (font (size 1.27 1.27)))) + (property "Value" "LD2410C" (at 200 137 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Connector_PinHeader_1.27mm:PinHeader_1x05_P1.27mm_Vertical" (at 200 145 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; LD2410C decoupling (symbol (lib_id "Device:C") (at 215 140 0) (uuid "a1000001-0001-0001-0001-000000000031") - (property "Reference" "C9" (at 217 138 0)) - (property "Value" "10uF" (at 217 142 0)) - (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 215 140 0)) + (property "Reference" "C9" (at 217 138 0) (effects (font (size 1.27 1.27)))) + (property "Value" "10uF" (at 217 142 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0805_2012Metric" (at 215 140 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ===================================================== - ;; PIR SENSOR - AM312 - ;; ===================================================== - (text "AM312 PIR Motion Sensor" (at 170 170 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) ) - ;; AM312 connector (3-pin: VCC, OUT, GND) (symbol (lib_id "Connector_Generic:Conn_01x03") (at 200 190 0) (uuid "a1000001-0001-0001-0001-000000000040") - (property "Reference" "J4" (at 200 182 0)) - (property "Value" "AM312_PIR" (at 200 184 0)) - (property "Footprint" "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (at 200 190 0)) - (property "Description" "AM312 mini PIR sensor, 3.3V, digital output" (at 200 190 0)) - (pin_names - (pin "1" "VCC_3V3") - (pin "2" "OUT") - (pin "3" "GND") - ) + (property "Reference" "J4" (at 200 182 0) (effects (font (size 1.27 1.27)))) + (property "Value" "AM312_PIR" (at 200 184 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" (at 200 190 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; PIR pulldown resistor (symbol (lib_id "Device:R") (at 215 190 0) (uuid "a1000001-0001-0001-0001-000000000041") - (property "Reference" "R2" (at 217 190 0)) - (property "Value" "10K" (at 219 190 0)) - (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 215 190 0)) - (property "JLCPCB" "C25744" (at 215 190 0)) + (property "Reference" "R2" (at 217 190 0) (effects (font (size 1.27 1.27)))) + (property "Value" "10K" (at 219 190 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 215 190 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ===================================================== - ;; I2C BUS - SHT41 + BH1750 - ;; ===================================================== - (text "I2C Sensors: SHT41 (Temp/Humidity) + BH1750 (Light)" (at 25 220 0) (effects (font (size 3 3) (thickness 0.5)) (justify left)) ) - ;; SHT41 Temperature & Humidity Sensor (symbol (lib_id "Sensor:SHT4x") (at 60 250 0) (uuid "a1000001-0001-0001-0001-000000000050") - (property "Reference" "U6" (at 60 238 0)) - (property "Value" "SHT41" (at 60 240 0)) - (property "Footprint" "Sensor_Humidity:Sensirion_DFN-4-1EP_1.5x1.5mm_P0.8mm_EP0.5x0.5mm" (at 60 250 0)) - (property "JLCPCB" "C2911456" (at 60 250 0)) - (property "Description" "Digital temp/humidity sensor, ±0.2°C, I2C, 1.5x1.5mm" (at 60 250 0)) + (property "Reference" "U6" (at 60 238 0) (effects (font (size 1.27 1.27)))) + (property "Value" "SHT41" (at 60 240 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Sensor_Humidity:Sensirion_DFN-4-1EP_1.5x1.5mm_P0.8mm_EP0.5x0.5mm" (at 60 250 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; SHT41 decoupling (symbol (lib_id "Device:C") (at 80 250 0) (uuid "a1000001-0001-0001-0001-000000000051") - (property "Reference" "C10" (at 82 248 0)) - (property "Value" "100nF" (at 82 252 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 80 250 0)) + (property "Reference" "C10" (at 82 248 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 82 252 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 80 250 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; BH1750 Ambient Light Sensor (symbol (lib_id "Sensor_Optical:BH1750FVI") (at 60 285 0) (uuid "a1000001-0001-0001-0001-000000000052") - (property "Reference" "U7" (at 60 273 0)) - (property "Value" "BH1750FVI" (at 60 275 0)) - (property "Footprint" "Package_SO:WSOF-6_1.4x1.7mm_P0.5mm" (at 60 285 0)) - (property "JLCPCB" "C78960" (at 60 285 0)) - (property "Description" "Ambient light sensor, 1-65535 lux, I2C, 1.6x1.6mm" (at 60 285 0)) + (property "Reference" "U7" (at 60 273 0) (effects (font (size 1.27 1.27)))) + (property "Value" "BH1750FVI" (at 60 275 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Package_SO:WSOF-6_1.4x1.7mm_P0.5mm" (at 60 285 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; BH1750 decoupling (symbol (lib_id "Device:C") (at 80 285 0) (uuid "a1000001-0001-0001-0001-000000000053") - (property "Reference" "C11" (at 82 283 0)) - (property "Value" "100nF" (at 82 287 0)) - (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 80 285 0)) + (property "Reference" "C11" (at 82 283 0) (effects (font (size 1.27 1.27)))) + (property "Value" "100nF" (at 82 287 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Capacitor_SMD:C_0402_1005Metric" (at 80 285 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; I2C pull-up resistors (symbol (lib_id "Device:R") (at 40 235 0) (uuid "a1000001-0001-0001-0001-000000000054") - (property "Reference" "R3" (at 42 235 0)) - (property "Value" "4.7K" (at 44 235 0)) - (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 40 235 0)) - (property "JLCPCB" "C25900" (at 40 235 0)) - (property "Description" "I2C SDA pull-up" (at 40 235 0)) + (property "Reference" "R3" (at 42 235 0) (effects (font (size 1.27 1.27)))) + (property "Value" "4.7K" (at 44 235 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 40 235 0) (effects (font (size 1.27 1.27)) hide)) ) + (symbol (lib_id "Device:R") (at 48 235 0) (uuid "a1000001-0001-0001-0001-000000000055") - (property "Reference" "R4" (at 50 235 0)) - (property "Value" "4.7K" (at 52 235 0)) - (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 48 235 0)) - (property "JLCPCB" "C25900" (at 48 235 0)) - (property "Description" "I2C SCL pull-up" (at 48 235 0)) + (property "Reference" "R4" (at 50 235 0) (effects (font (size 1.27 1.27)))) + (property "Value" "4.7K" (at 52 235 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "Resistor_SMD:R_0402_1005Metric" (at 48 235 0) (effects (font (size 1.27 1.27)) hide)) ) - ;; ===================================================== - ;; MOUNTING HOLES - ;; ===================================================== - (symbol (lib_id "Mechanical:MountingHole") (at 250 260 0) (uuid "a1000001-0001-0001-0001-000000000060") - (property "Reference" "H1" (at 252 258 0)) - (property "Value" "MountingHole" (at 252 262 0)) - (property "Footprint" "MountingHole:MountingHole_2.2mm_M2_Pad" (at 250 260 0)) + (property "Reference" "H1" (at 252 258 0) (effects (font (size 1.27 1.27)))) + (property "Value" "MountingHole" (at 252 262 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "MountingHole:MountingHole_2.2mm_M2_Pad" (at 250 260 0) (effects (font (size 1.27 1.27)) hide)) ) + (symbol (lib_id "Mechanical:MountingHole") (at 260 260 0) (uuid "a1000001-0001-0001-0001-000000000061") - (property "Reference" "H2" (at 262 258 0)) - (property "Value" "MountingHole" (at 262 262 0)) - (property "Footprint" "MountingHole:MountingHole_2.2mm_M2_Pad" (at 260 260 0)) + (property "Reference" "H2" (at 262 258 0) (effects (font (size 1.27 1.27)))) + (property "Value" "MountingHole" (at 262 262 0) (effects (font (size 1.27 1.27)))) + (property "Footprint" "MountingHole:MountingHole_2.2mm_M2_Pad" (at 260 260 0) (effects (font (size 1.27 1.27)) hide)) ) )