Example of multiple water pumps

Hello guys,

I am quite newbie,

But I have 9 different waterpumps each of them shall be responsible for a own plant.

I have googled a lot but I couldnt find a good example where you use multiple pumps

Do someone got an example / tutorial

I am using a Arduino Mega 2560

Many thanks in advance

best regards

There must be MUCH more to your project than water pumps.

Write and debug the code for one pump.

Repeat 9 times.


Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.


In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.

You can make this easier on yourself by using structs and arrays (not complicated!)

1 Like

You seem to think programming is like entering the cheatcode into a game to enter platinum-level.

If you think "I only have to find the right code and then it is working."
It is very very unlikely that you find exactly a code for 9 pumps where the code fits to your pumps.

The microcontroller-world is not super-standardised like USB-devices.
You have to take care of more details than just "Does the plug fit into the socket?"

For adapting answers to your knowledge-level you should post a description about your knowledge-level about electronics and about programming.

best regards Stefan

2 Likes

are the pumps totally independent of each other or interconnected in some way?
does each pump have lower and upper limit switches?
what voltage/power are the pumps?

Plant watering system for multiple plants - Using Arduino / Project Guidance - Arduino Forum

Commercial
Elecrow Smart Plant Watering System Using Arduino Uno Review and Tutorial (electromaker.io)

Google:
arduino "watering" system "multiple" plants - Google Search

each pump are indepentent and each pump has voltage 5 volt ,

Is it good idea to use a relay for them?

Many thanks sir! I check em out!

Are you hinting that each pump has it's own power supply? How do you intend to supply each pump station with it's own controlling signals from your Arduino? What length or wire will that be?

yes, also the motors will require a seperate power supply from the Arduino
what is to control the operation of the pumps? limit switches, timers, ?????
if simple limit switches what is the Arduino suposed to do? do you require a microcontroller?
how far apart are the pumps?

Hi again sorry for late reply,

my thoughts is that each pump will pump 0.5 water into a plant afterwards if possible turn off the pump.

,

Since the plant has been watered already I believe I could turn of the soil moisture sensors as well?

then in the for loop turn on the soil moisture 1 time every day I think enough.

Sounds that resonable?

Thank you

coul;d you not simply

  1. read the soil mositure sensors and when the moisture level drops below a set level turn on the corresponding pump
  2. when the moisture level reaches the required level switch off the pump

No, that will not work because of the delay in the water at the top of the plant takes time to get down to the sensor. In that time the plant will be in flood stage. The program should add a bit of water and wait some time to check the moisture level. Then wait some more and add a bit more water if necessary. loop to continue until moisture sensor is satisfied.

something along the lines of

loop reading the soil mositure sensors

  1. if moisture level X drops below a set level turn on the corresponding pump X for specified period
  2. delay before testing moisture level X again

A refinement would be to count the number of times the cycle was tried. If the count exceed some number, raise an alarm because the watering cycle is not getting the plant watered.

Thanks a lot for so many good replies,

Regardin the relays how should I take care of those in the logic?

I don't understand this question. Relays are switched on or off.
So what do you want to know that goes beyond switching on/off?

I think things will become clearer if you start writing code.
If you are a beginner who is just about start writing code,
new questions will arise. I guess the new questions will be specific and therefore will be easy to answer

Consider how long you will have the pumps turned on as compared to how long the pumps will be turned off. If the off time is longer than the on time, you want the pumps connected between the relay common terminal and the NO or normally off terminal. And you want to usually have relay turned off. How you do that is entirely up to you and how you have the relays connected to your Arduino and the relay power supply.

1 Like

Hi Paul,

Thanks a lots for the help very appreciated.

could you simplify your answer little bit I didnt understood fully