Smart Grow Light Controller with UNIHIKER K10

Project Introduction


Succulents are easy to keep alive but hard to keep thriving. An indoor balcony often gets only two or three hours of direct sunlight, while most succulents need six to seven hours of bright light each day to stay compact and keep their color. Leaving a grow light on for seven hours wastes power and, when combined with sunlight, can also scorch the plants.
This build is a plant grow light assistant based on the UNIHIKER K10. Because succulents need plenty of light, it sets a daily 6-hour light target and a lighting window of 10:00–16:00. During this window, it turns on the grow light whenever the ambient light falls below a set threshold. Once the daily light target is reached, the light turns off automatically, giving the plants time to metabolize and recover.
The setup suits balconies, small gardens, and classrooms, and works well as a first complete build that goes from sensor to actuator.


Demo Video

Material List

HARDWARE LIST
1 UNIHIKER K10
1 WS2812 RGB LED Strip
1 PH2.0-3P Male-to-Male Cable for Boson & UNIHIKER
1 USB 3.0 to Type-C Cable
1 3D-Printed Structure

Software

Mind+

 

 

Note: This build uses the onboard light sensor, so no external sensor is needed. To run it without a power adapter, use a 3.7–4.2 V lithium battery.


Key Code

 

 

How the code works:


Between 10:00 and 17:00, the program reads the ambient light sensor and responds to the light level as follows: if the light is weak, it turns on the RGB LED strip and sets it to blue and purple (colors suited to plant needs), indicating that although the timing is appropriate, the current light is insufficient; if the light is strong, it turns off the RGB LED strip, indicating that the light is sufficient and no extra supplemental lighting is required.

 

 

Full Code

 

 

Try It Yourself


Try the ideas below to upgrade your plant lighting assistant.

 

 

Appendix
 

Attachment List

icon Attachment.zip 290KB Download(0)

Notes


- Enter your Wi-Fi credentials in the program and select the correct time zone.

- The board supports only 2.4 GHz Wi-Fi; 5 GHz networks cannot connect.
- In very bright sunlight, the light sensor reading may saturate and the progress bar may overflow. This is normal; adjust the mapping upper limit if needed.
- If the LED strip switches on and off repeatedly, the gap between the two thresholds is too small. Increase the difference between them.

License
All Rights
Reserved
licensBg
0