Hi all,
I'd like to control the direction of rotation and speed of a large stepper motor by using a single potentiometer.
The motor is a Nema 23 3Nm motor which is being driven by a DM542 driver.
I've successfully managed to get the motor wired and working correctly using an Arduino Uno and some test code.
The real-world application is winding the lead screw on the X-axis on a small milling machine which is normally controlled by a hand wheel.
I'd like to arrange it so that when the pot is in the central position the motor is stopped.
When turned a small amount e.g. positive from the central position, the motor turns slowly clockwise. When the pot is turned further positive the speed will increase up to the maximum amount at the end of the pot’s travel.
Retuning the pot to the central position at any point will stop rotation.
Turning the pot in the e.g. negative direction will mirror the above rotation, but this time in the counter clockwise direction.
Any suggestions would be most welcome.
