Professional Documents
Culture Documents
Pid Robot Ev3 Cours
Pid Robot Ev3 Cours
PROGRAMMING LESSON
Solid line represents what you have seen, dotted line is the future
At time 20, you see light reading = 40 and error = -10 (red X)
Error
follower -20
Sum of past error
Time (sec)
Like area under the curve 100
Integral
in graph (integral) 50
Green = positive area
Red = negative area
0
10 12 14 16 18 20
Time (sec)
15
How quickly is position changing? 10
Predicts where the robot will be 5 Tangent line
Error
0
in the immediate future -510 20 30
-10
Same as how fast is error
-15
changing Time (sec)
Derivative
1.5
Approximated using two nearby 1
0.5
points on graph 0
10 20 30
Time (sec)
Add the three fixes for P, I, and D together. This will Apply the correction the the
compute the final correction steering of a move steering block
This is what you get if you put all these parts together.
Proportional Integral
Proportional Integral
Proportional Integral
The most common way to tune your PID constants is trial and error.
Proportional PID
Uses the “P” in PID It is better than proportional
control on a very curved line,
Makes proportional turns as the robot adapts to the
curviness
Works well on both straight
and curved lines However, for FIRST LEGO
League, which mostly has
Good for intermediate to
straight lines, proportional
advanced teams need to
control can be sufficient
know math blocks and data
wires