For this project, I used Arduino nano to control the water pump. It will circulate the water every 5 minutes for 7 seconds. The language used was C++, and the source code looks as follows:
#define water1 10
#define water2 11
void Setup()
{
pinMode(water1, output)
pinMode(water2, output)
serial.begin(9600)
}
void Loop()
{
digitalWrite(water1, HIGH)
digitalWrite(water2, LOW)
delay(7000)
digitalWrite(water1, HIGH)
digitalWrite(water2, HIGH)
delay(300000)
}
תגובות