|
Re: Globe Motor Programming Questions
Quote:
|
Originally Posted by Daniel_LaFleur
We do not use 255 for a pwm output since it may cause an issue.
Also be aware that there is a dead band of ~ 4 pwm counts around the neutral (pwmXX=127) position. Thus 123-131 tend not to move the motor.
Also, The speed of the motor going full forward may (probably will) differ from full speed reverse.
|
I just do this:
Code:
...
if ((pwm01 > 127) && (pwm01 < 251)) pwm01+=4;
else if ((pwm01 < 127) && (pwm01 > 3)) pwm01-=4;
...
-Q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
Last edited by Qbranch : 19-07-2006 at 21:03.
|