Help with a Sharp IR distance sensor and water tank - Will pay

Hi,

Ok, i have been banging my head against a wall with this for a long time and have now accepted i need help. I would like to develop a control for a small tank i have by changing the speed of the discharge pump. The tank is fed by a variable feed of water, which i have no control over. However, the pump on the underflow of the tank can be controlled to maintain a set water level in the tank (these are low flows by the way (1 l/s max)).

I have a Sharp IR distance sensor (GP2Y0A21YK) which is used to measure the water level in the tank (I have this already connected to the Arduino and can measure the distance accurately to around 1 cm via the serial output). What i want to do is that the Arduino computes the input from the sensor and controls the speed of a pump to maintain the level. The pump has a standard 4 – 20 ma and 1 – 10 V inputs available. So this is the first part, get the Arduino to talk to the pump and control its speed based on the level the sensor reads.

The second task is that the level may need to be changed slightly. Whereby an operator should be able to change the level by adjusting a dial (such as a variable potentiometer) and the Arduino and pump speed will set accordingly. An LCD readout of the level would be nice too, but not essential.

So in summary, i need an Arduino sketch and help with how i can get the Arduino to talk to my pump with some sort of variable resistor (as well as an idea of any extra components i need to buy).

I am willing to pay some cash to get this up and running to what is proposed.

Thanks in advance

I'm interested
can you send me links to the parts you're using and I'll take a look
cheers
Mike

Hi,

Considering there have been over 280 views and one reply, i guess this project is either not actually possible or very difficult to implement. If anyone has any suggestions or alternative approaches, I'd be very interested to here them.

Thanks in advance.

We'll I am interested!

Mike. I sent you an email friday. :slight_smile: I guess you never got it. Pm me.

burt46:
Mike. I sent you an email friday. :slight_smile: I guess you never got it. Pm me.

'tis done!