Page 38 - RoboGenius Pro C7
P. 38
Ÿ digitalWrite(7, HIGH): Turns ON the red LED (dry soil indicator).
Ÿ digitalWrite(6, LOW): Turns OFF the green LED (wet soil indicator).
else: If the soil is wet, the pump and red LED are turned off and the green LED is turned on.
Ÿ digitalWrite(8, LOW): Turns OFF the water pump.
Ÿ digitalWrite(7, LOW): Turns OFF the red LED.
Ÿ digitalWrite(6, HIGH): Turns ON the green LED.
delay(10): Pauses the program for 10 milliseconds to improve stability.
After completing all the steps and connecting the components, your Smart Irrigation System will
automatically water the plants when the soil is dry and stop watering when the soil is wet.
When soil is dry
When soil is wet
CHALLENGE CHAIN
If you wanted to create a fan with adjustable speed, what components would you need to control
the fan's speed and how would you integrate them into the system?
RoboGenius Pro - VII
36

