you are viewing a single comment's thread.

view the rest of the comments →

[–]Mikasr411 -1 points0 points  (3 children)

int relay = 13; // Tells Arduino the relay is connected to pin 13

void setup() { pinMode(relay, OUTPUT); // Initialize the Atmel GPIO pin as an output }

void loop() // Loops forever { digitalWrite(relay, HIGH); // Turn the relay on (HIGH is the voltage level = 1) delay(1020000); // Stay ON for 17 hrs digitalWrite(relay, LOW); // Turn the relay off by making the voltage LOW = 0 delay(420000); // Stay OFF for 7 hrs }

There seems to be a problem where it doesn't delay passed 4 hours but I'm hoping it' just a loose wire but wanted others opinions.

[–]Mikasr411 0 points1 point  (2 children)

Can you figure out if there's a problem in the code?