Presence alert
PIR motion alert that stays quiet in daylight, using an ambient light sensor. Powered over USB-C. About $43 in parts.
Parts
- ESP32-S3-DevKitC-1 (N8R8) C-001$19.95
- PIR Motion Sensor (BISS0001 module, Adafruit 189 / HC-SR501 class) L-003$9.95
- BH1750 Ambient Light Sensor V-005$4.50
- USB-C 5.1 V 3 A Power Supply E-005$8.74
Parts $43.14 · powered by the USB-C 5.1 V 3 A Power Supply
- Note: The USB-C 5.1 V 3 A Power Supply's plug (usb-c-v1) doesn't fit the ESP32-S3-DevKitC-1 (N8R8)'s port (usb-micro-b-v1). You'll need an adapter cable, which isn't in the parts list.
Wiring
The volts are the parts' own: the USB-C 5.1 V 3 A Power Supply puts out 4.845–5.355 V, and the ESP32-S3-DevKitC-1 (N8R8)'s regulator makes the 3.251–3.349 V rail its GPIO and most of the sensors run from. Which header pin each lead lands on is our suggestion — the registry has no pin map, and nothing here has been wired on a bench.
Power the board off while you plug anything in. Every connector here is keyed: if it doesn't click in easily, turn it over rather than forcing it.
Readings
What this build sends: one column per channel its parts read or drive, with the unit the capability carries. The values and times below are sample data.
| Time | MotionL-003 | Ambient light lxV-005 |
|---|---|---|
| clear | 412 | |
| clear | 396 | |
| MOTION | 88 | |
| MOTION | 74 | |
| clear | 63 | |
| clear | 55 |