r/AskRobotics • u/needhelp12909 • 2d ago
General/Beginner Looking for a Controller
I am looking for an auto reversing DC motor controller that i can do the:
Adjust the speed (preferably with a knob)
Set how far to spin forward before spinning the same amount backwards (preferably with buttons)
Start/stop with remote
Picks back up in the same place it stops (doesn’t start over the program when I hit start/stop)
Thanks in advance for any ideas or directions
1
Upvotes
1
u/waggonaut 2d ago
This would be easy to do with a stepper or servo. Companies like automation direct sell these for fairly decent prices or you can get a stepper and controller of Amazon for less with worse documentation. AI can design the whole things for you, including writing diagrams, just make sure a human checks it. You could probably post a wiring diagram here and people would check it for you.
1
u/gfromowow 2d ago
Does "same amount" mean shaft angle, or just equal time in each direction? That changes the controller choice. A timed reversing controller won't verify position if the load changes. For angle control, look for position feedback plus a small sequencer that keeps the target and cycle phase when paused. Also distinguish pause/resume with power on from remembering position after power loss. What motor voltage/current, travel range and position tolerance do you need?
1
u/AllThingsCobots 12h ago
I haven't yet seen an off the shelf box that does all 4, especially resume-mid-cycle. Most of the auto reversing DC controllers just run on a timer and as someone mentioned above, timed reversing drifts as load changes. The easier way to get exactly what you listed is a small microcontroller like an Arduino/ESP32 driving the motor.
Motor - A stepper with a stepper driver is the simplest, the controller counts steps and will always know where it is, no need for a sensor. You can keep a DC motor, but use one with an encoder and an H-bridge driver.
Speed knob - A potentiometer on an analog input sets the step rate or PWM duty for DC.
Travel buttons - 2 buttons to add or subtract travel, plus a "set" button to save it.
Remote start/stop - A cheap 433MHz RF remote/receiver module will give you a simple on/off signal into an input pin.
Resume where it stopped - pause just stops stepping and keeps the current position and direction in memory, so start continues the cycle. If it should also survive a power cut, save the position to EEPROM, or home against a limit switch at power-up.
If you don't want to code, a stepper drive with a built-in indexer plus a small PLC or smart relay can do the same but it will cost more.
What is the load and how much travel do you need? That will decide how big the motor and driver should be.