Cycle a motor for 5 seconds to mix compost for a composting toilet

I have a 24 volt motor,

SPECIFICATIONS
RPM 30
Voltage 24 DC
Amps 0.68 no load
Torque 47 in. lbs.
Rotation Reversible
Duty continuous

that i will be running on 12 volt. it will be turning a shaft to mix compost. I want to be able to hit a momentary switch and that will turn on the motor to cycle for 3-5 seconds to mix the compost, (the motor will be mixing 2 gallons of compost in a 5 gallon bucket) and then the motor will shut off till the button is pressed again. Has anyone had experience with this type of application that can give me pointers?

DaveMUtah:
turn on the motor to cycle for 3-5 seconds

Does that mean you need a way to set the time between those limits, each time you fire it up?

Or that you haven't yet decided what the time needs to be?

I think 5 seconds would be perfect.

DaveMUtah:
I think 5 seconds would be perfect.

It would in any case be simple to edit and re-compile to experiment with different values.

In essence you need a circuit like the below, with someone else to guide you on component values, especially the mosfet.

The coding's quite simple:

  • Check the state change detect tutorial to see how to recognise a button press
  • When the press is detected, assign the current value of millis() to a variable and turn on the pin controlling the mosfet
  • Then every time through loop() check to see if 5 seconds has elapsed since the variable was set to the original millis() and turn off if it has

Good information

But it's probably unnecessary to use an Arduino: a 555 with the right components could surely do the job of timing a few seconds?

Im just getting started into this technology, limited experience. Can you give me more information?

Have a dig around in the pages near to that 555 link, here.

So using this 555 timer to trigger a relay that would then run the motor?

DaveMUtah:
I have a 24 volt motor,

RPM 30
...

that i will be running on 12 volt.

Are you still expecting 30 RPM?

My comment would be that motor doesn’t have a lot of torque, and a lot less on 12v and probably not up to the job(ies).

no i realize that at 12 volt the rpm with be half. The motor is turning a 12" long shaft in a 5 gallon bucket to mix 2 gallons of peatmoss/compost.

hammy:
not up to the job(ies).

Will the real Billy Connolly please stand up?

DaveMUtah:
So using this 555 timer to trigger a relay that would then run the motor?

In principle I reckon so; others would need to comment on the specifics of hooking that together.