Hand written code
here is my basic idea for the code
to be run every 5 minutes or so
If temp is above x
activate fan 1 (relay)
if temp is below x
deactivate fan 1
if humidity is above x
activate fan 2
if humidity is below x
deactivate fan 2
to be run in conjunction with the motor
when motor is in one of 4 positions (controlled by a switch being in the off position)
test soil moisture
if moisture is below x
activate water for 2 seconds
deactivate water
wait 5 minutes
repeat last 5 lines until moisture is above x
after 6 hours rotate planters 90 degrees to next planter controlled by switch
repeat steps again
x refers to variables not yet known for the plants optimal range will be a range of numbers not a single digit
Top Comments
-
RWReynolds
-
Cancel
-
Vote Up
0
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
shanesissons
in reply to RWReynolds
-
Cancel
-
Vote Up
+1
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Comment-
shanesissons
in reply to RWReynolds
-
Cancel
-
Vote Up
+1
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Children