Hi all,
I'm certain I'm not seeing the correct setting to make the motor brake correctly. I've implemented a speed control system with the closed loop Speed register supplying a value between 0-4095. Everything works great for speeding up the motors to the desired speed. My issue comes from when the motor is under an external load and I set the speed register to a slower speed, I then see that the motor "runs away" and does not brake at all (or it is not comparable to the load that is forcing it).
Any ideas on what I might be missing? I would expect the system to apply the brakes in order to match the speed set in the speed register. Maybe I have to manually apply the brake pin to force the brake when I detect the speed too high? If that is the case how quickly can I pulse the brakes to ensure smooth braking?
Any help would be very much appreciated.
SPDMODE is set to 2 (Internal Register PWM Mode)