Irrigation?

Greetings,
I am working on a project, but this is my first time using Arduino. I plan on buying a Solu Water Level Sensor Depth of Detection Water Sensor for this project. Amazon.com I have an Arduino Uno, but I have been told that I might need to buy the Mega.

Anyways, I would like to be able to create a water reservoir that has a door(small dc motor) that allows water to flow in or not. So, I'd like to be able to set an angle for the door to open or let the door open to a point and then stop it with the keypad. Then afterwards be able to reverse the motor so the door can close. I'd like to have a potentiometer in that portion of the circuit. I would like to be able to have the "angle" of the door displayed on the display, whether it says "what angle would you like?" or just displaying the current angle of the door as it moves and then use the keypad to move the door forward or back and start and stop it all with the keypad.

When the water get's too high, I'd like the sensor to automatically detect the level and then turn on the "pump"(or other dc motor) so the water can come out of the tank. Then when the water is too low the "pump" turns off. The pump side of this project needs to be more automatic, but the door or inlet needs to be more keypad hands on.

What do you people think? I need help with the code and setup of wires too. I really have no idea what I am doing at the moment, because I'm still researching and trying to understand how to code and set this up. The automatic pump portion seems to be easier, but for the door side is where I am having real trouble. I found some code online for the water sensor that appears to work fine. Can someone please help me out. Thank you in advance.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

We would like to know the model Arduino you will be using.
Link to the data/specs of the level sensor.
What your pump is? (Voltage Amps).

Can you lay your posting out a bit clearer, as in space and paragraphs to show your particular parts of your project.
As it is at the moment, all running together, there will be readers who will see your post and not bother to read it.

Tom... :slight_smile:

information overload. your whole post is in one paragraph.

if you could have one thing, what is it ?

I would highly suggest you break down your project into bits.
get an Arduino of any sort
get a pump, get that crap sensor and some LED's
get it to work in a small fish tank or some such.

once you get those bits to work together, save your sketch as Version1 or some such and keep it safe.
then make a copy of it and start to add one sensor at a time or one output and each time you get it working, save as Version2 or 3 and so on.

when you have problems with a thing, such as why when you have a single drop of water on that sensor, it reads about 8,000 ohms or why, when that drop has the tinyiest bit of salt, it reads 4,000 ohms wet and 10,000 ohms damp......
then come back with your sketch and the one problem you need help with.

we are GREAT at helping with a problem that is defined.
we can only offer wild ideas when there is no specific details.

You really need to get upto speed with your Arduino first - use the IDE examples , learn about inputs , then servos, steppers etc , relays and start to put it all together.
If you are new, you will get frustrated trying to do all that in one go

Thank you all for your help, I have edited the post and I plan on asking specific questions in the future.

This is what I have so far. I am trying to have the sensor read the water height. Then, if the water is too high, the motor turns on. if it is too low the pump shuts off. I'd like to create an if statement as sort of a loop so that this is all automatic. I would also like to of course have an LED turn on when the water reaches the max height when motor will turn on and the low point where the pump will turn off. Thoughts?

#include <Keyboard.h>
#include <LiquidCrystal.h>
#include <Wire.h>
int h20 = 0;
void setup() {
pinMode(h20, INPUT);
Serial.begin(9600); // bit per second
}
/Pump/
void loop() {
int i = analogRead(h20);
Serial.println(i);
delay(1000); // value in milliseconds
}

P.S. I am not planning on having this portion of information display on an LCD. I will want it to display the data on my computer screen though as it reads the values. I think it could be too much info to display both sides of this project on the LCD.

with water height, you could put in a simple circuit board with multiple wires.
as the water covers two holes, the wired connected would send back a value based on resistance. that board you linked is little larger than your thumb, so it will not offer much help in water height.

try it out, play with it, experiment and you will soon have the experience and knowledge to make your project successful.

Anyways, I would like to be able to create a water reservoir that has a door(small dc motor) that allows water to flow in or not. So, I'd like to be able to set an angle for the door to open or let the door open to a point and then stop it with the keypad.

You are talking about irrigation so I am not sure why you are talking about doors and angles. Normally people don't try to open or close doors against flowing water, it requires too much force. Instead they use penstocks which are gates that move up and down at right angles to the water flow. They don't have to push against the water they just need to be able to raise and lower the weight of the gate.

If you look at a boat canal it appears as if the locks open against the water flow but in fact penstocks are used first to equalise the water height on both sides of the lock.