• ******* To read about the changes to the marketplace click here

DIY Arduino Controller

Ato

Simple ATO addition - requires relays module to activate your ato pump.
I wired two float switches together so both have to be in the 'low water' orientation to deliver water. This reduces the chances of dumping too much top off from one switch being stuck.

View attachment floatswitch.pdf

This is the code to power it, it assumes your relay for your top off pump is going to be plugged into A1

PHP:
const int floatswitch = A3;
int floatstate = 0;
const int topoffpump = A1;

void topoff()
{
  floatstate = digitalRead(floatswitch);
  if (floatstate == HIGH){digitalWrite(topoffpump, LOW);}
    else{digitalWrite(topoffpump,HIGH);}
  delay (1000);
}


void setup()
{
  pinMode(floatswitch, INPUT);
  pinMode(topoffpump, OUTPUT);
  digitalWrite(topoffpump, HIGH);
}

void loop()
{
topoff();
}


Full code for the entire project is listed here https://github.com/johntan/Reef-Controller/blob/version6/controller5/controller5.pde
 
i ran across this a while back an aquarium shield for Arduino I dont know if you guys seen it. seems like has lot of features and built in functions web interface and open source code. http://www.practicalmaker.com/products/45 I havent done anything with it or purchased just researched as far as i got with it.
 
I have seen that project, I'm not a fan of it though as it costs as much as a RKL without the lcd or enclosure! Also it means you either use the 'macroduino' code or set up a webserver for the webapp which to me sounds like more of a learning curve than people might like.

With this thread I'm trying to break down the functions into manageable bites haha.

A good open source controller though with tons of features is the reef angel. It's 'open source' but not user friendly at all for the average joe builder to DIY.
 
Back
Top