
PSLab
fossasia/pslab-hardware
PSLab Hardware Design and Schematics https://pslab.io

i made a diy presence detector for my homeassistant smarthome. it can mesure light, instantly detect motion via a PIR, and maintain that state using a mmwave sensor. its basically the perfect presence sensor
Esphome presence detector is an open-source printed circuit board by Theered, from the Theered/ESPHome-Presence-Detector_With-PCB repository on GitHub. It is a 2-layer board of 40.1 × 65 mm with 10 parts on 19 nets, routed with 106 tracks and 0 vias.
It is built around the WS2812B. Its parts include 3 connectors, 1 capacitor, 1 IC and 1 diode. It belongs with the home automation and IoT and sensors and measurement boards and the ESP32 and RISC-V boards of this library.
I was tired of my lights constantly turning off whenever I sat still while using a standard PIR motion detector. Since PIR sensors only detect "big movements", they often fail to notice someone who is sitting quietly.
To solve this, I built a presence detector using an mmWave sensor. Unlike a traditional PIR sensor, an mmWave sensor can detect very small movements, such as your chest moving while breathing, allowing it to reliably detect occupancy even when you're not moving around.
While designing the project, I decided to add a few extra features:
The PCB connects all modules directly to the microcontroller, making installation as simple as plugging the sensors into their designated headers.
Sensor data is sent to Home Assistant using ESPHome, allowing you to create virtually any automation you can think of —from automatically controlling lights to sending notifications when someone enters a room, everything is possible.
Before starting this project, you will need:
Note: The status LED and its resistor are small and can be quite challenging to solder. If you don't care about the LED, it can be left out.
schematic:
PCB:
CAD Model:
🚧 This project is still under development.
Additional documentation will be added soon, including:
Thank you for your patience while I finish building and documenting the project.
BOM:
ws2812b LED (you can desolder them from a led strip or those single pixels)
TSL2591 IIC I2C Light Sensor
ESP32 S3 C3 SuperMini Development Board (Make sure the pins arent pre soldered, or you are gonna have a bad time)
HLK-LD2410c module
AM312 PIR motion detector
Female Pin Header
Custom PCB (gerber files are linked in the project)
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | AM312 pir | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J2 |
| 1 | C | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1 |
| 1 | ESP32-C3_SUPERMINI_SMD | footprints:MODULE_ESP32-C3_SUPERMINI | U2 |
| 1 | LD2410c mmwave | Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_Vertical | J1 |
| 1 | TSL2591 light sensor | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | J4 |
| 1 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D1 |
The 6 most common of 10 parts.

fossasia/pslab-hardware
PSLab Hardware Design and Schematics https://pslab.io

FrameworkComputer/ExpansionCards
Reference designs and documentation to create Expansion Cards for the Framework Laptop



PrintersForAnts/Micron
If you want to purchase full kits there are 3 available (Kits are slowly updating to R1 hardware just make sure to double check the included hardware in your kit and if you have any questions reach out in the discord)



It measures 40.1 × 65 mm and has 2 copper layers, 1.6 mm thick.
10 parts, built around the WS2812B. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the Theered/ESPHome-Presence-Detector_With-PCB repository on GitHub, at the commit this page was made from: the board is PCB/KICAD files/esphome presence detector.kicad_pcb and its schematic PCB/KICAD files/esphome presence detector.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask Theered before reusing the design.