Help with automated hydroponics

Hey all, I havent touched arduino in a while and I think I've gotten a bit rusty. I can't get this to run properly and I'm not sure why.

Is anyone able to have a quick look and help me problem solve it?

Basically i've got an EC sensor that when it reads an amount under a set limit it will dose the three nurtients in the solution.

When the PH is down it will dose the PH Up in and vice versa for the when it is too high.

I'm also hoping to have the values readable from a phone via bluetooth however that is less important at this stage.

hydroponics.ino (9.01 KB)

(deleted)

unless you update PHValue within the while loop, there are zero chance you'll exit this infinite loop once you enter it... (I removed the useless parenthesis)

  while (PHValue > PHhigh)
  { Serial.println(PHdown.flowPump(0.1));
    delay(waittime);
  }
  while (PHValue < PHlow)
  { Serial.println(PHup.flowPump(0.1));
    delay(waittime);
  }

but yeah, describe what's the problem...

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile: