# Difference between revisions of "PID control"

From www.wiki.ardumower.de

Alexanderg (Talk | contribs) (→PID settings) |
Alexanderg (Talk | contribs) (→PID controller) |
||

Line 9: | Line 9: | ||

=PID controller= | =PID controller= | ||

− | + | [[File: Pid_controller.png | 600px]] | |

− | + | ||

− | + | ||

Examples: | Examples: |

## Revision as of 08:32, 3 June 2016

# Abstract

Ardumower uses a digital PID controller for

- heading/course tracking
- perimeter tracking
- motor speed control
- ...

# PID controller

Examples:

- Tracking: input sensor is inside/outside, output plant is the left and right motor. Goal is to keep error (inside/outside state time) small.
- Motor speed: input sensor is odometry, output plant is the motor. Goal is to keep the error (setpoint rpm - actual rpm) small.

# PID settings

The optimal P,I,D parameters depend on the actual hardware. The software default PID parameters are for the Ardumower motors available in the shop. To use your own motors, one method is trial & error (it can be difficult to find the optimum PID parameters):

- Increase P until system starts to oscillate
- Set I=0.6 * P and D = 0.125 * P

Proportional, Integral and Derivative (PID) controller concept:

P : Determines how aggressively the PID reacts to the current amount of error (Proportional) D : Determines how aggressively the PID reacts to the change in error (Derivative) I : Determines how aggressively the PID reacts to error over time (Integral)

# Velocity PID

The standard form is most used for position control. If you derivate the standard form, you obtain the velocity form:

# Simulator

For interactive learning, you can find a PID simulator here: PID simulator