A Project For A Decorative Fountain

Hi! i was just wondering if anyone can help me with a code. i want my code to work like this:

When i press a button a waterpump turns on for a desired time (say 1 hour), and then turns off. i also want another button that turns of the pump at will.

I have no idea how to do it because i only know a litte about coding in arduino.

If anybody wants to help me, Thank you!

Start with the examples given in the IDE on how to read a button.

Or if you don't want to write the code yourself feel free to have this thread moved to "gigs & collaborations" and make it a paid job.

Do you already know how to control your pump with the Arduino in the first place?

I guess its the same as a DC motor right?

LoveHolgersson: I guess its the same as a DC motor right?

Depends on your DC motor. If that pump is a brushless DC motor, then you have only one direction and no PWM, so can switch low side with an n-channel logic level MOSFET.

LoveHolgersson: I guess its the same as a DC motor right?

In some cases, but who knows?

"waterpump" is not a good description of the device you try to control and there are many types of waterpumps.

Stepper, wind, mule, men, AC and DC are all used to drive waterpumps.