# Senior Green X-Wing ## Description Welcome to your new project. Imagine what you can build here. ## Project Details - **Owner:** ak47-g - **Created:** 3/9/2026 - **Last Updated:** 3/9/2026 - **Visibility:** Public - **Board Specification:** FR4 UL94V-0, 1.6 mm thickness, 1oz copper - **Creepage and Clearance Note:** Maintain minimum 6.0 mm clearance/creepage between HV and LV copper on all layers; keep silkscreen out of the HV/LV clearance gap. AC mains traces minimum 3.0 mm width. - **System Architecture:** flowchart TD subgraph HV [HV AC Section] AC_IN["AC input terminal L N"] SR["Strain relief clamp holes"] FUSE["Fuse 1A slow blow 5x20"] MOV["MOV across L N"] HLK["HLK-PM01 AC-DC 5V"] BR["Bridge rectifier 4x 1N4007"] R_SENSE["Hot series sense resistor 10k"] OPTO["PC817 optocoupler"] TP5V["Test point 5V"] TPGND["Test point GND"] EARTH["Earth screw terminal"] CHASSIS["Chassis ground pad near mounting hole"] end subgraph LV [Low Voltage ESP32 Section] ESP32["ESP32 DOIT DevKit V1 in female headers"] PROG["6 pin programming header"] CHG["TP4056 charger module footprint"] BAT["18650 battery holder"] PFET["IRLML6401 P MOSFET"] TX433["433 MHz TX header"] LED["Status LED plus 330R"] ANT["Antenna screw terminal"] DECOUP["5V decoupling 100uF plus 100nF"] PULLUP["10k pullup to 3V3 for opto"] BLEED["1M bleeder across bridge DC"] end AC_IN --> SR --> FUSE --> MOV --> HLK MOV --> BR BR --> OPTO OPTO -->|GPIO4| ESP32 HLK -->|5V| CHG CHG --> BAT BAT --> PFET -->|VIN| ESP32 HLK -->|5V| TX433 ESP32 -->|GPIO17| TX433 ESP32 -->|GPIO2| LED ANT --> TX433 EARTH --> CHASSIS HLK --> TP5V TPGND --> ESP32 ## Key Components ### B1 — [BH-18650-A1AJ0062](https://www.flux.ai/birkanozer/bh-18650-a1aj0062~gk.md) - Role Details: 18650 holder for 1 cell - Manufacturer Part Number: BH-18650-A1AJ006 - Package: Through Hole - Role: Battery - Voltage: 4.2V **Pins:** - NEGATIVE [pin -] - POSITIVE [pin +] ### D1 — [1N4007_AY_10001](https://www.flux.ai/lcsc/1n4007ay10001~56d.md) - Package or Case Code: DO-41_BD2.4-L4.7-P8.70-D0.9-RD - Package: DO-41 THT - LCSC Part Number: C115999 - Product Info Url: https://lcsc.com/product-detail/Diodes-General-Purpose_1N4007_C115999.html - JLCPCB Part Class: Extended Part - Role Details: Bridge rectifier for mains sense - Role: Rectification - Manufacturer Part Number: 1N4007_AY_10001 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811061711_PANJIT-International-1N4007-AY-10001_C115999.pdf - Manufacturer Name: PANJIT(强茂) - Part Type: Diodes - General Purpose **Pins:** - A [pin 2] - C [pin 1] ### D2 — [1N4007_AY_10001](https://www.flux.ai/lcsc/1n4007ay10001~56d.md) - Product Info Url: https://lcsc.com/product-detail/Diodes-General-Purpose_1N4007_C115999.html - LCSC Part Number: C115999 - Package: DO-41 THT - Package or Case Code: DO-41_BD2.4-L4.7-P8.70-D0.9-RD - JLCPCB Part Class: Extended Part - Manufacturer Part Number: 1N4007_AY_10001 - Part Type: Diodes - General Purpose - Role: Rectification - Manufacturer Name: PANJIT(强茂) - Role Details: Bridge rectifier for mains sense - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811061711_PANJIT-International-1N4007-AY-10001_C115999.pdf **Pins:** - A [pin 2] - C [pin 1] ### D3 — [1N4007_AY_10001](https://www.flux.ai/lcsc/1n4007ay10001~56d.md) - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811061711_PANJIT-International-1N4007-AY-10001_C115999.pdf - Manufacturer Name: PANJIT(强茂) - Part Type: Diodes - General Purpose - Manufacturer Part Number: 1N4007_AY_10001 - JLCPCB Part Class: Extended Part - Package: DO-41 THT - Role Details: Bridge rectifier for mains sense - Role: Rectification - Package or Case Code: DO-41_BD2.4-L4.7-P8.70-D0.9-RD - LCSC Part Number: C115999 - Product Info Url: https://lcsc.com/product-detail/Diodes-General-Purpose_1N4007_C115999.html **Pins:** - A [pin 2] - C [pin 1] ### D4 — [1N4007_AY_10001](https://www.flux.ai/lcsc/1n4007ay10001~56d.md) - Role: Rectification - Manufacturer Part Number: 1N4007_AY_10001 - Part Type: Diodes - General Purpose - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1811061711_PANJIT-International-1N4007-AY-10001_C115999.pdf - Manufacturer Name: PANJIT(强茂) - LCSC Part Number: C115999 - Product Info Url: https://lcsc.com/product-detail/Diodes-General-Purpose_1N4007_C115999.html - Package or Case Code: DO-41_BD2.4-L4.7-P8.70-D0.9-RD - Package: DO-41 THT - JLCPCB Part Class: Extended Part - Role Details: Bridge rectifier for mains sense **Pins:** - A [pin 2] - C [pin 1] ### F1 — [Fuseholder Cylinder 5x20mm](https://www.flux.ai/adrian95/fuseholder-cylinder-5x20mm~02p.md) - Part Type: Fuse - Role: Protection - Package: Through Hole - Role Details: Series Hot fuse holder for 5x20mm 1A slow-blow **Pins:** - P1 - P2 ### J1 — [2-Position Screw Terminal](https://www.flux.ai/corynrobinson/2-position-screw-terminal~s4.md) - Manufacturer Part Number: 691137710002 - Datasheet URL: https://www.we-online.com/katalog/datasheet/691137710002.pdf - Role Details: AC input terminal L/N - Package: Through Hole - Part Type: Connector - Manufacturer Name: Würth Elektrik - Role: Connector **Pins:** - P1 [pin 1] - P2 [pin 2] ### J2 — [2-Position Screw Terminal](https://www.flux.ai/corynrobinson/2-position-screw-terminal~s4.md) - Datasheet URL: https://www.we-online.com/katalog/datasheet/691137710002.pdf - Part Type: Connector - Manufacturer Name: Würth Elektrik - Package: Through Hole - Role: Connector - Role Details: Earth ground terminal (single pole used) - Manufacturer Part Number: 691137710002 **Pins:** - P1 [pin 1] - P2 [pin 2] ### J3 — [Pin Header 01x03 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x03-254mm-vertical~cp4.md) - Role: Connector - Part Type: Connector - Package: THT 1x3 2.54mm - Role Details: 433MHz TX module header **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### J4 — [640456-6](https://www.flux.ai/adrian95/640456-6~oy5.md) - Role: Connector - Part Type: Connector - Manufacturer Name: TE Connectivity AMP Connectors - Manufacturer Part Number: 640456-6 - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: Programming header 3V3 GND TX RX EN GPIO0 - Package: THT 1x6 2.54mm - Package or Case Code: SHDR6W66P0X254_1X6_1524X572X1003P - Datasheet URL: https://www.te.com/usa-en/product-640456-6.datasheet.pdf **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] - 5 [pin 5] - 6 [pin 6] ### J6 — [Pin Socket 02x15 2.54mm Vertical](https://www.flux.ai/adrian95/pin-socket-02x15-254mm-vertical~60z.md) - Package: Through Hole - Role: Connector - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: 2x15 female sockets for ESP32 DevKit V1 (mounting headers) **Pins:** - Pin_1 [pin 1] - Pin_10 [pin 10] - Pin_11 [pin 11] - Pin_12 [pin 12] - Pin_13 [pin 13] - Pin_14 [pin 14] - Pin_15 [pin 15] - Pin_16 [pin 16] - Pin_17 [pin 17] - Pin_18 [pin 18] - Pin_19 [pin 19] - Pin_2 [pin 2] - Pin_20 [pin 20] - Pin_21 [pin 21] - Pin_22 [pin 22] - Pin_23 [pin 23] - Pin_24 [pin 24] - Pin_25 [pin 25] - Pin_26 [pin 26] - Pin_27 [pin 27] - Pin_28 [pin 28] - Pin_29 [pin 29] - Pin_3 [pin 3] - Pin_30 [pin 30] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] - Pin_7 [pin 7] - Pin_8 [pin 8] - Pin_9 [pin 9] ### J7 — [Pin Socket 02x15 2.54mm Vertical](https://www.flux.ai/adrian95/pin-socket-02x15-254mm-vertical~60z.md) - Role Details: 2x15 female sockets for ESP32 DevKit V1 (mounting headers) - Package: Through Hole - License: https://creativecommons.org/licenses/by/4.0/ - Role: Connector - Part Type: Connector **Pins:** - Pin_1 [pin 1] - Pin_10 [pin 10] - Pin_11 [pin 11] - Pin_12 [pin 12] - Pin_13 [pin 13] - Pin_14 [pin 14] - Pin_15 [pin 15] - Pin_16 [pin 16] - Pin_17 [pin 17] - Pin_18 [pin 18] - Pin_19 [pin 19] - Pin_2 [pin 2] - Pin_20 [pin 20] - Pin_21 [pin 21] - Pin_22 [pin 22] - Pin_23 [pin 23] - Pin_24 [pin 24] - Pin_25 [pin 25] - Pin_26 [pin 26] - Pin_27 [pin 27] - Pin_28 [pin 28] - Pin_29 [pin 29] - Pin_3 [pin 3] - Pin_30 [pin 30] - Pin_4 [pin 4] - Pin_5 [pin 5] - Pin_6 [pin 6] - Pin_7 [pin 7] - Pin_8 [pin 8] - Pin_9 [pin 9] ### LED1 — [LTL-307EE](https://www.flux.ai/vasy_skral/ltl-307ee~a2.md) - Role Details: Status LED on GPIO2 - Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/1153/LTL-307EE.pdf - Manufacturer Name: Lite-On Inc. - Manufacturer Part Number: LTL-307EE - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: LED - Package: LED_THT_5mm - Role: Indicator **Pins:** - A [pin 2] - K [pin 1] ### PS1 — [HLK-PM01](https://www.flux.ai/adrian95/hlk-pm01~kdu.md) - Manufacturer Part Number: HLK-PM01 - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: ACDC - Role: Power - Package: Through Hole Module - Role Details: Mains AC to 5V isolated module - Manufacturer Name: Hi_Link - Datasheet URL: https://www.lcsc.com/datasheet/lcsc_datasheet_2409141600_HI-LINK-HLK-PM01_C209903.pdf **Pins:** - -Vout [pin 3] - +Vout [pin 4] - AC/L [pin 1] - AC/N [pin 2] ### Q1 — [IRLML6401TRPBF](https://www.flux.ai/adrian95/irlml6401trpbf~ls4.md) - Datasheet URL: https://www.infineon.com/dgdl/irlml6401pbf.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Transistor - Role: Power Path - Manufacturer Name: Infineon Technologies - Package: SOT-23-3 - Manufacturer Part Number: IRLML6401TRPBF - Role Details: High-side PFET battery to VIN, gate on GPIO25 **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### RV1 — [MOV-14D121K](https://www.flux.ai/adrian95/mov-14d121k~yde.md) - Role Details: MOV across L/N for surge protection (footprint larger than 7mm) - Manufacturer Part Number: MOV-14D121K - Package: THT Disc - Datasheet URL: https://www.bourns.com/docs/Product-Datasheets/MOV14D.pdf - Part Type: Varistor - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Bourns Inc. - Role: Protection **Pins:** - 1 [pin 1] - 2 [pin 2] ### TP1 — [5014](https://www.flux.ai/adrian95/5014~0fz.md) - Datasheet URL: https://www.keyelco.com/userAssets/file/M65p56.pdf - Manufacturer Part Number: 5014 - Role Details: Test points for 5V and GND rails - Role: Test - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Package: Through Hole Test Point - Manufacturer Name: Keystone Electronics **Pins:** - 1 [pin 1] ### TP2 — [5014](https://www.flux.ai/adrian95/5014~0fz.md) - License: https://creativecommons.org/licenses/by/4.0/ - Role Details: Test points for 5V and GND rails - Manufacturer Name: Keystone Electronics - Part Type: Connector - Package: Through Hole Test Point - Manufacturer Part Number: 5014 - Role: Test - Datasheet URL: https://www.keyelco.com/userAssets/file/M65p56.pdf **Pins:** - 1 [pin 1] ### U1 — [PC817](https://www.flux.ai/kicad-part-library/pc817~0c.md) - Datasheet URL: http://www.soselectronic.cz/a_info/resource/d/pc817.pdf - Package: DIP-4 - Manufacturer Part Number: PC817 - Package or Case Code: DIP-4_W7.62mm - Role Details: Mains sense optocoupler into GPIO4 - Role: Isolation **Pins:** - ~ [pin 1] - ~ [pin 3] - ~ [pin 2] - ~ [pin 4] ### U2 — [TP4056_Module](https://www.flux.ai/wolfxpac/tp4056module~ap.md) - Part Type: Module - Manufacturer Name: Generic - Role: Battery Charger - Role Details: TP4056 charger module footprint (IN/B/OUT pins) - Package: Through Hole Module - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://robocraze.com/products/tp4056-lithium-battery-charging-board **Pins:** - BAT- [pin 5] - BAT+ [pin 6] - IN- [pin 1] - IN+ [pin 2] - OUT- [pin 3] - OUT+ [pin 4] ### U3 — [KF128-5.08-2P-AA](https://www.flux.ai/lcsc/kf128-5p08-2p-aa~0pbi.md) - JLCPCB Part Class: Extended Part - Connector Type: Screw terminal - Role Details: Antenna wire terminal - Connector Gender: Female - Current Rating: 24A - Operating Temperature: -40℃~+105℃ - Connector Positions: 2 - Product Info Url: https://lcsc.com/product-detail/New-Quadratic-Unclassified-Data_Cixi-Kefa-Elec-KF128-5-08-2P_C474952.html - Package or Case Code: CONN-TH_P5.08_KF128-5.08-2P - Part Type: Screw terminal - Role: Connector - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2408211511_Cixi-Kefa-Elec-KF128-5-08-2P-AA_C474952.pdf - Connector Pitch: 5.08mm - LCSC Part Number: C474952 - Connector Rows: 1 - Manufacturer Name: KEFA(科发) - Manufacturer Part Number: KF128-5.08-2P-AA - Package: Through Hole 5.08mm **Pins:** - 1 [pin 1] - 2 [pin 2] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/ak47-g/senior-green-x-wing~56](https://www.flux.ai/ak47-g/senior-green-x-wing~56).* --- *Generated from [https://www.flux.ai/ak47-g/senior-green-x-wing~56](https://www.flux.ai/ak47-g/senior-green-x-wing~56)*