11. IoT Case 07: Automated Lighting Schedule Control¶

11.1. Goal¶
Create a system that automatically provides light to the plants according to a schedule controlled from the cloud.
11.2. Background¶
Why do I need to schedule the light time?
Each type of plant requires a different amount of light. Some need more sunlight, while others thrive with less or even prefer to avoid direct exposure. Improper lighting can hinder a plant’s growth or even cause it to die.
Why need to put the schedule and control it via the cloud?
Plants need consistent care, but people living in cities often lead busy lives and cannot tend to their plants every day. By using cloud control, users can monitor and manage lighting conditions remotely, ensuring their plants receive proper care even when they are away.

11.4. Assembly Steps¶
Step 1
To start with, build the plant pot model with soil and seedling. Install the LCD Display during the build.

Step 2
Step 2. Connect the Module Stand with the Pot base.

Step 3
Insert screw with grow light led to part C1.

Step 4
Put the model onto the pot tray and plastic mat. Completed!

11.7. IoT (IFTTT)¶
Go to https://ifttt.com, register an account and login to the platform.

2. On the top right menu, click “Create”.

3. Create tigger by:
Select “This”.
Select Date & Time.
Select “Every day at”.
Input the trigger time (6 PM).
Click “Create trigger”.

4. Create action by:
Select “That”.
Select Smarthon IoT (micro:bit).
Select “Control Command”.
Input IoT:bit’s device ID and Command “light_on”.
Click “Create action”.

5. Repeat Step 2 - 4 to create another applet that turns off the grow light by sending the command “light_off” to micro:bit at 1 AM every day.

11.8. Result¶
The LED Grow Light turns on when IFTTT sends the command “light_on” to the micro:bit at 6:00 PM every day.
The LED Grow Light turns off when IFTTT sends the command “light_off” to the micro:bit at 1:00 AM every day.


