Arduino Sketch for DC Motor Control with Soft Start

Job ID: 31997777

Budget: $30 – $250 AUD

Hardware to be used is:
Arduino Uno
Cytron MD10C Motor Controller
24vdc Motor with Rotary Encoder (2 channel)

On startup, the motor needs to turn on at very slow speed and drive until the first stop point has been detected, this will need call "startPoint". It will then reverse direction and drive until the second stop point has been detected, This we will call "endPoint".
Now the motor should reverse direction again and return to startPoint. Initialisation now complete.
On button press, the motor will soft start and drive to the endPoint, however, it must slow down before reaching the endPoint. On next button press, the motor will drive back to startPoint, also slowing down before reaching startPoint.
Other considerations:
Motor speed needs to be adjustable in the sketch.
Slowing distance needs to be adjustable in the sketch.
Slow movement speed needs to be adjustable in the sketch.
The motor will carry varying loads, so PWM needs to be monitored to keep constant speed when operating.
Project will be fixed price, however, future development will be required as an ongoing project.
If you have questions, please ask before starting.