Components:
...
PID controls:
We used PD control where kp = 0.2 and , kp = 1.4, and we feedback on the encoder reading for error.to get errors, then we got the input PWM we need to control the motor speed.
Arduino code:
View file | ||||
---|---|---|---|---|
|
...
We used PD control where kp = 0.2 and , kp = 1.4, and we feedback on the encoder reading for error.to get errors, then we got the input PWM we need to control the motor speed.
View file | ||||
---|---|---|---|---|
|