Presence-based lighting with mmWave

A mmWave sensor notices even a person sitting still, a light sensor keeps the lamp off in daylight, and the light fades out after the room is really…

Smart home Board: ESP32-C3 SuperMini Level: ●●○ ⏱ 2–3 h

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

What you need

Buy the parts kit · Estimated total: $13.50

ESP32-C3 SuperMini × 1
$2.50
Buy at AliExpress Buy at Amazon.com
HLK-LD2410 mmWave presence sensor × 1
$4.00
Buy at AliExpress Buy at Amazon.com
BH1750 light sensor (GY-302) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
MOSFET driver module (IRF520/IRLZ44) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
USB charger 5V 2A × 1
$4.00
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Ukraine: we buy and sell these parts ourselves, order them on this site.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Router and Starlink watchdog

Pings the internet and power-cycles the router or ONU through a relay when the connection hangs, with a Telegram notice.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1 h
Pick parts / kit

Power-status lamp

An LED ring that shows green when power is on, red when it is off, and amber for a scheduled outage window.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1 h
Pick parts / kit
⚠ Caution

Switch only low-voltage loads yourself. For mains loads use a certified isolated module in a box or call an electrician.

Gate and garage door status with remote pulse

Two reed switches report open and closed, a relay gives the opener a pulse, and a message tells you when the gate was left open.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1–2 h
Pick parts / kit

← All module ideas →

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.