4th doser
Posted: Thu Mar 01, 2018 5:36 am
What's the best way to code a 4th doser?
I assume this will work to have it come on 4 times during the day and run for 1 minute each time, but it's a little inflexible.
I'd probably take out the fixed hours and time and find an unused internal memory location to stick the values in, but this is a standing for now.
I assume this will work to have it come on 4 times during the day and run for 1 minute each time, but it's a little inflexible.
Code: Select all
if (((hour() == 10) || (hour() == 14) || (hour() == 18) || (hour() == 22)) && (minute() < 1)) { // run autofeeder for 1 minute at 10,2,6,10
ReefAngel.Relay.On(Box1_Port5);
} else {
ReefAngel.Relay.Off(Box1_Port5);
}