Solar Powered Smart Garden Light
by Supernova09 in Outside > Backyard
118 Views, 1 Favorites, 0 Comments
Solar Powered Smart Garden Light
SolarGlow is an intelligent, energy-efficient backyard lighting system designed to transform traditional outdoor illumination into a smart, responsive experience. Unlike conventional lights that remain continuously on or require manual control, SolarGlow uses a network of solar-powered smart nodes that automatically react to human presence and environmental conditions.
At its core, SolarGlow combines motion sensing, ambient light detection, and wireless mesh communication (ESP-NOW) to create a dynamic βlight-followingβ pathway. As a person walks through the garden or backyard, nearby lights illuminate instantly while neighboring nodes activate in sequence aheadβguiding the user safely while minimizing unnecessary energy use. Once the path is clear, the lights gradually dim, conserving stored solar power.
Each lighting node operates independently using solar energy and onboard battery storage, making the system fully off-grid and sustainable. A central hub enhances user control by allowing customization of lighting modes such as security lighting, warm ambient glow, or colorful party effects through a mobile interface.
SolarGlow is more than just lightingβit is a smart outdoor ecosystem that improves safety, enhances aesthetics, and promotes sustainable energy usage. Designed for modern homes, it demonstrates how embedded systems and IoT can seamlessly integrate into everyday life to create smarter, greener environments.
Supplies
Component Quantity
ESP32-C3 Super Mini 6 (5 nodes + 1 hub)
WS2812B Addressable LED Strip (1m) 6
PIR Motion Sensor (HC-SR501) 6
LDR Light Sensor Module 6
6V/2W Mini Solar Panel 6
TP4056 Charge Module + 18650 Battery 6 sets
Weatherproof Garden Stake Housing 6
Buck Converter (5V) 6
System Architecture
1. Power System
- A solar panel collects sunlight during the day.
- It charges a battery using a charging module.
- A converter makes sure the system gets stable 5V power.
π In short:
Sunlight β Battery β Power for the system
2. Hub Node
This is the main controller of the system.
It does 3 important things:
- π Checks light (LDR sensor)
- β Detects if itβs day or night
- πΆ Detects motion (PIR sensor)
- β Knows when someone is nearby
- π‘ Sends signals to other lights
- β Uses ESP-NOW (wireless communication)
- π± Optional: App control via Wi-Fi
- β You can control settings from your phone
π In short:
Hub = Brain that decides when lights should turn ON/OFF
3. Mesh Nodes
These are the other garden lights placed around your backyard.
Each node:
- Has an ESP32-C3 (small controller)
- Has an LED strip
- Receives signals from the hub
β No PIR sensor here (as you specified)
π They just follow the hubβs command
π In short:
Mesh Nodes = Lights that listen and react
4. How the System Works
- βοΈ During the day
- β Battery gets charged
- π When it becomes dark
- β Hub detects night using LDR
- πΆ When motion is detected
- β Hub detects movement using PIR
- π‘ Hub sends signal
- β All mesh lights turn ON
- π‘ Lights glow for some time
- β Then go back to dim/off mode
Wiring the Circuit
ESP32-C3 Super Mini Connections
LDR Light Sensor
- VCC β 3.3V
- GND β GND
- OUT β GPIO 0
PIR Motion Sensor (HC-SR501)
- VCC β 5V
- GND β GND
- OUT β GPIO 1
WS2812B LED Strip
- VCC β 5V
- GND β GND
- DIN β GPIO 2
Add a 330Ξ© resistor between GPIO and DIN (recommended)
Power System
- Battery β TP4056 β Buck Converter β 5V Output
- 5V β ESP32-C3 5V pin
- GND β Common Ground
Hub ESP32 Code
Upload this to your HUB ESP32
Setup Instructions
1. Upload HUB Code
2. Open Serial Monitor
Youβll see:
- IP address β open in browser
- MAC address β copy to nodes
3. Put HUB MAC into Node Code
4. Power Multiple Nodes
Each node will:
- Auto connect via ESP-NOW
- Start sending data
ESP32 Mesh Node Code
What You Need to Modify
Change Node ID (IMPORTANT)
Each device must have a unique ID.
πΉ Set HUB MAC Address
On your hub ESP32, print MAC:
Convert to hex array:
Prototype Desigen
Outdoor Installation
- Place solar panel facing sunlight
- Use waterproof enclosure
- Mount LEDs along path or stake
- Keep PIR facing walking direction
Safety Tips
Never connect solar panel directly to ESP32
Use TP4056 with protection
Ensure all grounds are common
Use capacitor for LED stability
Final Result
You now have a fully autonomous smart garden light system that:
- Runs on solar
- Reacts to motion
- Works only at night
- Uses efficient ESP32 control