ATO with I/O expansion
Posted: Sun Dec 01, 2013 7:29 am
So I picked up a couple of wp25s and decided to change things up a bit and picked up a few more things. Now I'm stuck.
What I have:
AI cable on ATO low
dimming expansion for wp25s
water level expansion for ATO reservoir
old RA moonlights on day/act ports
I/O expansion with 2 float switches ;set up for single ATO
buzzer on ATO high ;to be mounted in head unit with a wife friendly switch to "make it stop" until i get home
What I think I want to do:
if ATO float down for (seconds) and enough water in reservoir
turn on ato pump until float up for (seconds) or ATO timeout
if ATO reservoir low
sound buzzer (loop: beep,beep,beep,5 sec off)
if ATO reservoir full //for refilling
sound buzzer (single 5 second tone then stop)
if return float down turn off return and skimmer
sound buzzer (loop:1 sec on 1 sec off)
What I have now:
(You are not authorized to post url links, please remove or rename:
ReefAngel(dot)IO ??)
I tried setting up the buzzer on an arduino uno with a button and led with the "blink without delay" code using millis from the arduino site, but I couldn't make it work right all of the time. Also, I cant figure out the timeout for the ATO either, the I/O class doesn't work like singleATO. Now I've been up all night and can't think.
What I have:
AI cable on ATO low
dimming expansion for wp25s
water level expansion for ATO reservoir
old RA moonlights on day/act ports
I/O expansion with 2 float switches ;set up for single ATO
buzzer on ATO high ;to be mounted in head unit with a wife friendly switch to "make it stop" until i get home
What I think I want to do:
if ATO float down for (seconds) and enough water in reservoir
turn on ato pump until float up for (seconds) or ATO timeout
if ATO reservoir low
sound buzzer (loop: beep,beep,beep,5 sec off)
if ATO reservoir full //for refilling
sound buzzer (single 5 second tone then stop)
if return float down turn off return and skimmer
sound buzzer (loop:1 sec on 1 sec off)
What I have now:
Code: Select all
// ATO---------------------------------------------------------
static time_t LastATO=millis();
if (ReefAngel IO.GetChannel(0) && ReefAngel.WaterLevel.GetLevel ()>10) LastATO=millis();
if (millis()-LastATO<60000 && millis()-LastATO>100)
ReefAngel.Relay.On(Box1_Port6);
else
ReefAngel.Relay.Off (Box1_Port6);
// short beep when RO reservoir is full
if (ReefAngel.WaterLevel.GetLevel ()>90)
//buzzer//
// digitalWrite(highATOPin,HIGH);
//low top off water alarm
if (ReefAngel.WaterLevel.GetLevel ()<10)
//buzzer//
// digitalWrite(highATOPin,HIGH);
// float switch for return shutoff on low water in sump
if (ReefAngel IO.GetChannel(1)) ReefAngel.Relay.Off(Port5);
// buzzer//
// digitalWrite(highATOPin,HIGH);
ReefAngel(dot)IO ??)
I tried setting up the buzzer on an arduino uno with a button and led with the "blink without delay" code using millis from the arduino site, but I couldn't make it work right all of the time. Also, I cant figure out the timeout for the ATO either, the I/O class doesn't work like singleATO. Now I've been up all night and can't think.