Kids OK with adultESP32Level 2/3
Smart Rangoli That Lights Up When You Come Near
A rangoli outlined with addressable LEDs. A small distance sensor sees guests coming and the whole pattern glows to welcome them.
Sign in to save
Kids OK, with an adult
DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.
Use a 5 V supply big enough for the strip, with a 1000 µF capacitor across it. Keep wires out of the walking path and away from diyas and candles.
Strictly follow the description given with this video.
Video
How it works
- A time-of-flight distance sensor watches the doorway.
- When someone comes within about 1.2 m, the ESP32 starts a lighting pattern.
- Its data signal goes through a level shifter and a 330 Ω resistor to the LED strip, so every LED gets clean 5 V data.
- When nobody is near, the rangoli settles back to a soft glow.
Parts you need
Wiring
PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Signal | Distance sensor SDA / SCL | ESP32 I2C (D21 / D22) |
| 2 Power | Distance sensor VCC | ESP32 3V3 |
| 3 Signal | ESP32 data pin | Level shifter → 330 Ω → strip DIN |
| 4 Power | 5 V supply | Strip 5V and ESP32 VIN |
| 5 Power | 1000 µF capacitor | Across the 5 V supply |
| 6 Ground | All grounds | Common GND |
3D print files
This project has no 3D-printed parts.
Code
The tested Arduino / ESP32 code for this project will be posted here, ready to copy.