A light that knows you are still in the room
A PIR sensor notices movement, so it turns the light off on someone who sits quietly reading. A 24 GHz mmWave sensor such as the LD2410 detects even small movements like breathing, which makes presence lighting finally behave. With a light sensor, the lamp stays off when the room is bright anyway.
Getting it to behave
Use the sensor’s presence output or the UART data, and set the off delay to a minute or two, with a slow fade so the end does not feel abrupt. Mount it so that it does not see through into the corridor, since mmWave passes through thin walls and doors. Tune the sensitivity gates for the distance you want.
- Do not switch mains lamps directly with a transistor; use a proper LED driver, a relay or a dimmer made for it.
- Different thresholds for day and night let you walk to the kitchen at night with a dim lamp.
- Keep a manual override on the wall for guests.
Components
- ESP32-C3 SuperMini
- HLK-LD2410 mmWave presence sensor
- BH1750 light sensor (GY-302)
- MOSFET driver module (IRF520/IRLZ44)
- USB charger 5V 2A
Comments
No comments yet. Share your experience or ask a question.