Quote:
Originally Posted by Dave K.
When pushed to the right, and pwm03 = 140, the resulting positive speed is 140-127 = 13 and in the other direction 127-115 = -12. Depending upon the motor, that might not result in enough voltage to get the motor to overcome friction and allow it to start moving.
You could easily confirm this with a volt meter and watch the resulting voltage applied to the motor when either direction was commanded.
Do you have additional logic that detects that the joystick is within a deadband region and sets the PWM value to 127?
Assuming that you calibrated the speed controller with a stopped PWM value of 127, and set the min/max speeds somewhat near their normal full scale values, then it is probably working as expected... however, if you calibrated with your much smaller values, the speed controller might not have accepted that small of a change as valid values.
|
Thanks for the info Dave...
I am assuming that the speed controller was calibrated with a stopped PWM value of 127 but I am not sure how to tell other than now when the joystick is centered it reads 127 and it is 0 at one end and 255 at the other... was that done correctly?
In my code, I set the pwm to 127 before testing the joystick value and the dashboard viewer shows the joystick value to be 127 at center, 0 at its leftmost position and 255 at its right most position.
I am using one of the smaller motors that came in the kit and in the forward position (140) it moves more than fast enough...
What voltage level should I see on the motor input in either direction (AC or DC)?
Correct me if I am wrong but because the victor output is a Pulse width, I should ba able to see this from value 0 to 255 with a scope set up in differential miode shouldn't I?
Please advise and thanks for your help..