Water-level-controller-help

Untitled drawing

Hi, i want to write a code for fluid level controller as shown in the attachment such that the common line will be output 5v. When the liquid level falls below low level(when its not 5v), pump output should turn on but it should not turn off untill it reach high level. Please help.

1 Like

Your post was MOVED to its current location as it is more suitable.

Select water level/presence sensors. Post the link to their data sheet.

If you’re suggesting immersion sensors, you might find a common 5V is harder to implement than you think.
Insulating the U-shaped container in all circumstances will be a lot harder than expected.

Possibly, grounding the container 0V will be a lot easier, and adding positive bias to the depth probes will make more sense..

Keep in mind any voltage will expose the project to the possibility of spark ignition, and cathodic effects.

I have 1000 liters tank. Please help me with a code. I have float switches. Im from Slovenia and my english im not so good.

What part of the code is difficult?

I have relay on pin 13, low level 2 and high level is 3. Water starts going in tank but i dont know how to code it to stop. All automatic

Relay is for pump

Post the code You have so far.
Have You tested simple code exercising the relay? Maybe post schematics for the relay control.




i have done this but i dont know code for stop the water when its full.


this is my relay

Please read the first topic telling how to get the best out of this forum, section how to post code.
The pale picture You posted is not readable here.

The relay is a relay module. Good.

Is the tank metal?

If not these level sensors might be on interest:

Taidacent Non Contact Liquid Level Sensor Contactless Water Level Sensor for Tank Water Level Control with Low and High Level Output

AmazonSmile: Taidacent Non Contact Liquid Level Sensor Contactless Water Level Sensor for Tank Water Level Control with Low and High Level Output : Industrial & Scientific

Welcome to the Arduino forum.

I have exactly those float switches to control the water in my irrigation system. I have a solenoid valve to control the tank filling, not a pump, but the rest is the same.
My wiring has ONE lead from both switches connected to the Arduino ground, the second wire from a switch goes to one Arduino Nano pin and the second switch wire goes to another Arduino pin. Both pins are identified as input pullup.

Has been working well for about 3 years.
Good luck,
Paul

no i have plastic tank

You don’t need any processing power at all , just use float sensors and power the pump through them , bit of relay logic will do it

I dont know how Hammy

May I recommend that once the pump is enabled that the pump runs for a time period instead of to a level. After the run time, the level is checked and if more filling needs be done, then another do another motor run time.

You responded whilst I was putting a picture up lol

I just googled it !!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.