Welllll
Relays are very interesting.
I'm setting up one right now, with an arduino uno.
I've set the setting for 1 second of high-stream water dispense, per every 6 hours.
Here's the code.
int RelayPin = 12;
void setup() {
// Set RelayPin as an output pin
pinMode(RelayPin, OUTPUT);
}
void loop() {
// Let's turn on the relay...
digitalWrite(RelayPin, LOW);
delay(21600000);
// Let's turn off the relay...
digitalWrite(RelayPin, HIGH);
delay(3000);
}
int RelayPin = 12;
void setup() {
// Set RelayPin as an output pin
p
I mean according to my mental math tis is 6 hours
I'll come and post more updates once I'm done.
BTW a bit more:
I'm using a 4 channel relay, only one is activated, powering with 12V DC, (Breadboard PSU because I don't have any of those connectors) and a standard 12V DC adapter. I've hooked it up to an UNO and a 12V water pump, with a straw(since I ran out of those TPU tubes) and a TPU tube.