Tips of Learning and PID Control
Tips of Learning and PID Control
P. Sooraksa
** Robotics and AI Program
**School of Engineering,
King Mongkut’s Institute of Technology Ladkrabang
Math: Calculus
Basic ideas
Other ideas
Master ideas
Physics and Fundamental
Engineering
P: Physical meaning
P: Physical meaning
Physical meaning
Physical meaning
Physical meaning
Physical meaning
Inventing vs Engineering
Engineering Design: System
Specification
• Stability
• Performance
• Robustness
• Cost
• Time (to develop)
• Security
Engineering Design: A Mobile
Robot
• Conceptual Drawing
Overall Designed System
802.11b
Wireless LAN
Executive level
CCD
Main PC
Camera
High level
Photo
89C51 89C51 IR Ultrasonic Bar-code
sensors
Board #1 Board #2 Sensors Sensors Sensor
(5 Pcs)
Short range Wall-following Positioning
Collision & Long range Subsystem
Motor driver Motor driver Avoidance Collision
Board #1 Board #2 Subsystem Avoidance
Subsystem
Front
Steering
motor
motor
(Drive motor)
Low level
Subsumption Architechture
Example
Mechatronic Subsystems:
Low Level
Robot
Movement
Servo Positioning with Feedback
• An optical encoder is used to provide the control
system with position feedback
Control System
Motor Load
Optical encoder
PID Controller
PID control: Proportional / Integral / Derivative control
de
V = Kp (ωd − ω) + Ki ∫ (ωd − ω) dt + Kd dt
V = (Kp • e + Ki ∫ e + Kd d e )
dt
Error signal
ωd −e ωa
desired
ωd V actual ω
compute V using
- PID feedback
Motor
actual speed
ω
Evaluating the response
rise time
Kp = 20 Kp = 50
Kp = 500
Kp = 200
Steady-state Errors, P-type
Kp = 50 Kp = 200
Control Performance, PI - type
Kp = 100
Ki = 50 Ki = 200
You’ve been integrated...
Kp = 100
instability &
oscillation
Control Performance, PID-type
Kp = 100
Ki = 200
Kd = 2 Kd = 5
Kd = 10 Kd = 20
PID final control
The Characteristics of P, I, D controllers