-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rainbird
42 lines (40 loc) · 1.43 KB
/
Rainbird
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const int relaisPin1 = 3;
const int relaisPin2 = 4;
//*************************************************************************************************
//Relais LOW schaltet ein!!!
//Dieses Script ist Produktiv!
//Aktiv seit Aug. 2017
//
//Wenn die Anlage für den Winter ausgeblasen werden muss dann dieses Programm laufen lassen.
//Wichtig ist dabei, dass die kleinen Ventile an den Wechselstromventilen leicht geöffnet werden!!
//Wenn die Anlage wieder in Betrieb genommen wird wie folgt vorgehen:
// 1)
// 2)
// 3)
//*************************************************************************************************
void setup() {
//pinMode(relaisPin1, OUTPUT); // Den PWM PIN "relaisPin" als Ausgangssignal setzen.
// pinMode(relaisPin2, OUTPUT);
Serial.begin(9600);
}
void loop() {
pinMode(relaisPin1, OUTPUT);
/* Zone 1 */
digitalWrite(relaisPin1, HIGH); //Relais aus
delay(600); //500ms warten
digitalWrite(relaisPin1, LOW); //Relais ein
delay(600000);// 10Minuten warten
pinMode(relaisPin1, INPUT);
digitalWrite(relaisPin1, HIGH); //Relais aus
delay(7000);
//---------------------------------------------------
/*Zone 2 */
pinMode(relaisPin2, OUTPUT);
digitalWrite(relaisPin2, HIGH); //Relais aus
delay(600); //500ms warten
digitalWrite(relaisPin2, LOW); //Relais ein
delay(300000);// 5 Minuten warten
pinMode(relaisPin2, INPUT);
digitalWrite(relaisPin2, HIGH); //Relais aus
delay(5000);
}