| ??? 08/17/00 13:31 Read: times |
#4501 - RE: control the DC motor's speed with PWM ? |
To control the speed of a DC-motor you can use the following formula in pseudo pascal:
Delta(n):=WantedSpeed-CurrentSpeed Value(n):=Value(n-1)+Delta(n)*Ki+(Delta(n)-Delta(n-1))*Kp This is a simple PI filter, the constants Kp and Ki have to be determined for your specific system. |



