# 24V ESP32-C6 Matter Environmental Presence Sensor ## Description 24 V DC powered ESP32-C6 Matter/Thread WiFi/BLE environmental presence sensor with USB-C programming, mmWave/PIR motion sensing, temperature, humidity, light and air-quality sensing, plus optional Li-ion battery and solar charging power path. ## Project Details - **Owner:** uli1970 - **Created:** 5/17/2026 - **Last Updated:** 5/17/2026 - **Visibility:** Public - **Domain:** IoT environmental presence sensor - **Power Requirements:** 24 V DC input buck to 5 V/3.3 V, protected USB-C programming path, optional solar/battery power path with load sharing - **Implementation Details:** Functional blocks: 24 V input protection and buck conversion, ESP32-C6 module, I2C environmental/light/air-quality sensors, mmWave presence sensor, PIR motion input, USB-C native programming, optional Li-ion battery charger/solar input - **Connectivity:** WiFi, Bluetooth LE, Thread / Matter via ESP32-C6 - **Human Interface:** USB-C programming, reset/boot buttons, status LED - **Operating Voltage:** 24 V DC primary input; USB-C 5 V programming; optional single-cell Li-ion/LiPo battery with solar charging inputV ## Key Components ### D1 — [SMBJ33CA-13-F](https://www.flux.ai/lcsc/smbj33ca-13-f~jb2j.md) - Package or Case Code: SMB_L4.6-W3.6-LS5.3-BI - Product Info Url: https://lcsc.com/product-detail/TVS_DIODES_SMBJ33CA-13-F_SMBJ33CA-13-F_C135068.html - LCSC Part Number: C135068 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2304140030_Diodes-Incorporated-SMBJ33CA-13-F_C135068.pdf - Manufacturer Name: DIODES(美台) - JLCPCB Part Class: Extended Part - Manufacturer Part Number: SMBJ33CA-13-F - Part Type: TVS **Pins:** - 1 [pin 1] - 2 [pin 2] ### D2 — [SS34](https://www.flux.ai/lcsc/ss34~6q67.md) - Reverse Voltage: 40V - LCSC Part Number: C2758511 - Manufacturer Name: UMW(友台半导体) - Datasheet URL: https://www.lcsc.com/datasheet/C2758511.pdf - Package or Case Code: SMB_L4.3-W3.6-LS5.4-RD - Forward Voltage: 0.3V to 0.45V - Diode Type: Schottky - Part Type: Schottky Barrier Diodes (SBD) - JLCPCB Part Class: Extended Part - Manufacturer Part Number: SS34 **Pins:** - A [pin 2] - K [pin 1] ### D3 — [SS34](https://www.flux.ai/lcsc/ss34~6q67.md) - Forward Voltage: 0.3V to 0.45V - Diode Type: Schottky - Part Type: Schottky Barrier Diodes (SBD) - JLCPCB Part Class: Extended Part - Manufacturer Part Number: SS34 - LCSC Part Number: C2758511 - Reverse Voltage: 40V - Manufacturer Name: UMW(友台半导体) - Datasheet URL: https://www.lcsc.com/datasheet/C2758511.pdf - Package or Case Code: SMB_L4.3-W3.6-LS5.4-RD **Pins:** - A [pin 2] - K [pin 1] ### F1 — [SMD050F-2](https://www.flux.ai/adrian95/smd050f-2.md) - Manufacturer Part Number: SMD050F-2 - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Littelfuse - Datasheet URL: https://www.littelfuse.com/assetdocs/littelfuse-ptc-smd-datasheet?assetguid=e664881a-0c68-4836-928b-7ed2f0c2a6da - Mount: Surface Mount - Part Type: Circuit Protection Devices **Pins:** - ~ [pin 2] - ~ [pin 1] ### J1 — [USB-C 2.0 Receptacle](https://www.flux.ai/vasy_skral/usb-c-2p0-receptacle~1xw.md) - Part Type: USB C - Manufacturer Name: GTC - Connector Gender: Receptacle - Datasheet URL: https://gct.co/files/drawings/usb4105.pdf - Purchase Url: https://www.digikey.com/en/products/detail/gct/USB4105-GF-A/11198441 - Symbol Style: parametric-v1 - Connector Type: USB-C - Role: USB-C Power/Data Input - Manufacturer Part Number: USB4105-GF-A **Pins:** - CC1 [pin 6] - CC2 [pin 12] - D- [pin 7] - D- [pin 9] - D+ [pin 10] - D+ [pin 8] - GND [pin 1] - GND [pin 16] - GND [pin 15] - GND [pin 2] - SBU1 [pin 11] - SBU2 [pin 5] - VBUS [pin 3] - VBUS [pin 14] - VBUS [pin 4] - VBUS [pin 13] ### J2 — [DG250-3.5-02P-11-00A(H)](https://www.flux.ai/adrian95/dg250-3p5-02p-11-00ah~77l.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Degson - Datasheet URL: https://www.tme.com/Document/74a50bb60bd70b3c953bc54e89073085/DG250-3.5.pdf - Part Type: Connector - Manufacturer Part Number: DG250-3.5-02P-11-00A(H) **Pins:** - 1 [pin 1] - 2 [pin 2] ### J3 — [S2B-PH-K-S(LF)(SN)](https://www.flux.ai/lcsc/s2b-ph-k-slfsn~vk6f.md) - LCSC Part Number: C173752 - Manufacturer Name: JST - JLCPCB Part Class: Extended Part - Product Info Url: https://lcsc.com/product-detail/PH-Connectors_JST-Sales-America_S2B-PH-K-S-LF-SN_JST-Sales-America-S2B-PH-K-S-LF-SN_C173752.html - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2304140030_JST-S2B-PH-K-S-LF-SN_C173752.pdf - Manufacturer Part Number: S2B-PH-K-S(LF)(SN) - Part Type: Wire To Board / Wire To Wire Connector - Package or Case Code: CONN-TH_S2B-PH-K-S-LF-SN **Pins:** - 1 [pin 1] - 2 [pin 2] ### J4 — [S2B-PH-K-S(LF)(SN)](https://www.flux.ai/lcsc/s2b-ph-k-slfsn~vk6f.md) - Product Info Url: https://lcsc.com/product-detail/PH-Connectors_JST-Sales-America_S2B-PH-K-S-LF-SN_JST-Sales-America-S2B-PH-K-S-LF-SN_C173752.html - Manufacturer Name: JST - JLCPCB Part Class: Extended Part - LCSC Part Number: C173752 - Package or Case Code: CONN-TH_S2B-PH-K-S-LF-SN - Part Type: Wire To Board / Wire To Wire Connector - Manufacturer Part Number: S2B-PH-K-S(LF)(SN) - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2304140030_JST-S2B-PH-K-S-LF-SN_C173752.pdf **Pins:** - 1 [pin 1] - 2 [pin 2] ### J5 — [Pin Header 01x03 2.54mm Vertical](https://www.flux.ai/adrian95/pin-header-01x03-254mm-vertical~cp4.md) - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### LED1 — [0603GBD0790S01](https://www.flux.ai/adrian95/0603gbd0790s01~iak.md) - Manufacturer Name: ORIENTAL TECHNOLOGY - Manufacturer Part Number: 0603GBD0790S01 - Role: Status Indicator - Part Type: LED - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/4336/0603GBD0790S01.pdf **Pins:** - A [pin 2] - K [pin 1] ### SW1 — [TS-1088-AR02016](https://www.flux.ai/lcsc/ts-1088-ar02016~e3n1.md) - JLCPCB Part Class: Extended Part - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2409302330_XUNPU-TS-1088-AR02016_C720477.pdf - Product Info Url: https://lcsc.com/product-detail/Tactile-Switches_XUNPU-TS-1088-AR02016_C720477.html - Manufacturer Part Number: TS-1088-AR02016 - Part Type: Tactile Switches - LCSC Part Number: C720477 - Package or Case Code: SW-SMD_L3.9-W3.0-P4.45 - Manufacturer Name: XUNPU(讯普) - Role: Reset Button **Pins:** - 1 [pin 1] - 2 [pin 2] ### SW2 — [TS-1088-AR02016](https://www.flux.ai/lcsc/ts-1088-ar02016~e3n1.md) - LCSC Part Number: C720477 - Package or Case Code: SW-SMD_L3.9-W3.0-P4.45 - Manufacturer Name: XUNPU(讯普) - Product Info Url: https://lcsc.com/product-detail/Tactile-Switches_XUNPU-TS-1088-AR02016_C720477.html - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2409302330_XUNPU-TS-1088-AR02016_C720477.pdf - JLCPCB Part Class: Extended Part - Role: Boot Button - Part Type: Tactile Switches - Manufacturer Part Number: TS-1088-AR02016 **Pins:** - 1 [pin 1] - 2 [pin 2] ### U1 — [TPS259474LRPWR](https://www.flux.ai/lcsc/tps259474lrpwr~74ql.md) - Role: USB Power Protection - Manufacturer Name: Texas Instruments - Package or Case Code: VQFN-10_L2.0-W2.0-P0.45-TL - JLCPCB Part Class: Extended Part - Datasheet URL: https://www.ti.com/lit/ds/symlink/tps25947.pdf - Role Details: TPS259474 circuit-breaker eFuse; ILIM set to approximately 3A with 1.1kΩ; UVLO/OVLO divider targets ~4.4V UVLO and ~5.8V OVLO. - Manufacturer Part Number: TPS259474LRPWR - LCSC Part Number: C2864845 **Pins:** - DVDT [pin 7] - EN/UVLO [pin 1] - GND [pin 8] - ILM [pin 9] - IN [pin 5] - ITIMER [pin 10] - OUT [pin 6] - OVLO/OVCSEL [pin 2] - PG/AUXOFF [pin 3] - PGTH/~{FLT} [pin 4] ### U10 — [MCP73871-2AAI/ML](https://www.flux.ai/adrian95/mcp73871-2aaiml~ff3.md) - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/MCP73871-Data-Sheet-20002090E.pdf - Manufacturer Part Number: MCP73871-2AAI/ML - Manufacturer Name: Microchip Technology - Part Type: Integrated Circuit **Pins:** - ~PG [pin 6] - ~TE [pin 9] - CE [pin 17] - EP [pin 21] - IN_1 [pin 18] - IN_2 [pin 19] - OUT_1 [pin 1] - OUT_2 [pin 20] - PROG1 [pin 13] - PROG2 [pin 4] - PROG3 [pin 12] - SEL [pin 3] - STAT1/~LBO [pin 8] - STAT2 [pin 7] - THERM [pin 5] - VBAT_1 [pin 14] - VBAT_2 [pin 15] - VBAT_SENSE [pin 16] - VPCC [pin 2] - VSS_1 [pin 10] - VSS_2 [pin 11] ### U2 — [TPS62840DLCR](https://www.flux.ai/adrian95/tps62840dlcr~zza.md) - Role: 3.3V Buck Regulator - Role Details: TPS62840 750mA buck; 4.7uF input, 2.2uH inductor, 10uF output, RSET=267kΩ selects 3.3V. - Part Type: Integrated Circuit - Package or Case Code: SON50P150X200X100-8N-D - Manufacturer Name: Texas Instruments - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Ftps62840 - Manufacturer Part Number: TPS62840DLCR - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - EN [pin 4] - GND [pin 1] - MODE [pin 3] - STOP [pin 6] - SW [pin 7] - VIN [pin 2] - VOS [pin 8] - VSET [pin 5] ### U3 — [ESP32-C6-WROOM-1-N8](https://www.flux.ai/adrian95/esp32-c6-wroom-1-n8~1iw.md) - Role: WiFi/BLE MCU Module - Package or Case Code: ESP32C6WROOM1N8 - Manufacturer Name: Espressif Systems - Symbol Style: parametric-v1 - Part Type: RF Transceiver - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: ESP32-C6-WROOM-1-N8 - Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-c6-wroom-1_wroom-1u_datasheet_en.pdf - Role Details: ESP32-C6-WROOM-1-N8 with PCB antenna; powered at 3.3V; native USB on IO12/IO13; I2C to SHT40 on IO6/IO7. **Pins:** - 3V3 [pin 2] - EN [pin 3] - GND_1 [pin 1] - GND_10 [pin 36] - GND_11 [pin 37] - GND_2 [pin 28] - GND_3 [pin 29] - GND_4 [pin 30] - GND_5 [pin 31] - GND_6 [pin 32] - GND_7 [pin 33] - GND_8 [pin 34] - GND_9 [pin 35] - IO0 [pin 8] - IO1 [pin 9] - IO10 [pin 11] - IO11 [pin 12] - IO12 [pin 13] - IO13 [pin 14] - IO15 [pin 23] - IO18 [pin 16] - IO19 [pin 17] - IO2 [pin 27] - IO20 [pin 18] - IO21 [pin 19] - IO22 [pin 20] - IO23 [pin 21] - IO3 [pin 26] - IO4 [pin 4] - IO5 [pin 5] - IO6 [pin 6] - IO7 [pin 7] - IO8 [pin 10] - IO9 [pin 15] - NC [pin 22] - RXD0 [pin 24] - TXD0 [pin 25] ### U4 — [SHT40-AD1F-R2](https://www.flux.ai/adrian95/sht40-ad1f-r2~wjk.md) - Manufacturer Name: Sensirion AG - Datasheet URL: https://sensirion.com/media/documents/33FD6951/63E1087C/Datasheet_SHT4x_1.pdf - Part Type: Sensor - Role: Temperature/Humidity Sensor - Role Details: SHT40 I2C address 0x44; requires 100nF VDD decoupling and bus pull-ups to 3.3V. - Manufacturer Part Number: SHT40-AD1F-R2 - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - SCL [pin 2] - SDA [pin 1] - VDD [pin 3] - VSS [pin 4] ### U5 — [USBLC6-2P6](https://www.flux.ai/kicad-part-library/usblc6-2p6~djt.md) - Package or Case Code: SOT-666 - Manufacturer Part Number: USBLC6-2P6 - Manufacturer Name: Texas Instruments Inc. - Role: USB Data ESD Protection - Datasheet URL: https://www.st.com/resource/en/datasheet/usblc6-2.pdf - Role Details: Protects USB D+ and D- near the USB-C receptacle. - Part Type: Protection **Pins:** - GND [pin 2] - I/O1 [pin 1] - I/O1 [pin 6] - I/O2 [pin 3] - I/O2 [pin 4] - VBUS [pin 5] ### U6 — [LM5164DDAR](https://www.flux.ai/lcsc/lm5164ddar~6h70.md) - Operating Temperature: -40℃~+150℃@(TJ) - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2002241531_Texas-Instruments-LM5164DDAR_C477928.pdf - JLCPCB Part Class: Extended Part - Manufacturer Name: TI(德州仪器) - Output Current: 1A - Part Type: DC-DC Converters - Max Input Voltage: 6V~100V - Logic Function: Step-down - LCSC Part Number: C477928 - Frequency: 1MHz - Product Info Url: https://lcsc.com/product-detail/DC-DC-Converters_Texas-Instruments-Texas-Instruments-LM5164DDAR_C477928.html - Manufacturer Part Number: LM5164DDAR - Max Output Voltage: 1.2V~100V - Package or Case Code: SO-8_L4.9-W3.9-P1.27-LS6.0-BL-EP **Pins:** - BST [pin 7] - EN/UVLO [pin 3] - EP [pin 9] - FB [pin 5] - GND [pin 1] - PGOOD [pin 6] - RON [pin 4] - SW [pin 8] - VIN [pin 2] ### U7 — [VEML7700-TR](https://www.flux.ai/adrian95/veml7700-tr~u3b.md) - Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/21/VEML7700.pdf - Part Type: Sensor - Package or Case Code: VEML7700 - Manufacturer Name: Vishay - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: VEML7700-TR **Pins:** - GND [pin 3] - SCL [pin 1] - SDA [pin 4] - VDD [pin 2] ### U8 — [SGP40-D-R4](https://www.flux.ai/jecstronic/sgp40-d-r4~3qp.md) - Manufacturer Name: Sensirion AG - Datasheet URL: https://sensirion.com/media/documents/296373BB/6203C5DF/Sensirion_Gas_Sensors_Datasheet_SGP40.pdf - Manufacturer Part Number: SGP40-D-R4 - Part Type: Sensor **Pins:** - GND - NA - SCL - SDA - VDD - VDDH - VSS ### U9 — [HLK-LD2410C-P](https://www.flux.ai/adrian95/hlk-ld2410c-p~a12.md) - Datasheet URL: https://www.lcsc.com/datasheet/C19723500.pdf - Part Type: Module - Manufacturer Part Number: HLK-LD2410C-P - Manufacturer Name: HI-LINK - License: https://creativecommons.org/licenses/by/4.0/ - LCSC Part Number: C19723500 **Pins:** - GND [pin 4] - OUT [pin 3] - RXD [pin 2] - TXD [pin 1] - VCC [pin 5] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/uli1970/24v-esp32-c6-matter-environmental-presence-sensor~3p](https://www.flux.ai/uli1970/24v-esp32-c6-matter-environmental-presence-sensor~3p).* --- *Generated from [https://www.flux.ai/uli1970/24v-esp32-c6-matter-environmental-presence-sensor~3p](https://www.flux.ai/uli1970/24v-esp32-c6-matter-environmental-presence-sensor~3p)*