project for pump and motor

hey guys I need some help, I am doing a project with a 240v to 24v transformer, an uno arduino and a 4 relay module

push button
starts 24v dc pump
pump runs 15000
stops pump - starts 24v dc motor
motor runs 10000
stops motor - loop - starts 24v dc pump
pump runs 15000
stops pump - starts 24v dc motor
motor runs 10000
stops motor

clarkemush89:
how do I find the right code for doing this?

You won't, well not in the sense of picking it off the shelf.

You need to take a stab at some code first. You could very likely just control 2x LEDs to prove the code, then eventually use those outputs to control the relays.

For timing related stuff it's usual to suggest BlinkWithOutDelay, so it would be worth your while to digest that example.

to add in a loop to the blink without delay to by pass the pushbutton how would the code go fit in then?

thanks for the reply