SlideShare a Scribd company logo
ABARAJITHAN . G
• Quadcopter
• Flight Control
• Robots
• Self Driving Cars
• Air conditioner
When we need to automatically
control something…
• We are a feedback control system!!
• Try walking / writing with your eyes closed!
Feedback Control
Observe the
Effect
Make changes
Air conditioner
• Our room is at 30°C.
• We need to :
 Cool down it to 22°C
 Within a shortest time.
 Maintain the temperature at 22°C against external effects.
On-Off control
• Can’t control the power: only ON - OFF
• Disadvantage:
oTemperature oscillations
oUnstable System
Switch On
A/C
Switch Off
A/C
Temperature < 22°C
Temperature > 22°C
PID Control System
Remember the
PAST
(Integral)
Consider the
PRESENT
(Proportional)
Predict the
FUTURE
(Derivative)
And adjust power accordingly…
ERROR
• Air condition in a room
• Error will be changing over time.
Error
8°C
ProcessVariable
30°C
Set PointValue
22°C
= -
Proportional Control
Consider the present
Concept : Reduce power gradually
𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝(𝐸𝑟𝑟𝑜𝑟)
Where 𝐾 𝑝 is proportional gain
(we need to tune)
Reduce power of A/C gradually, until temperature = 22°C
• Steady state error may occur
in pure proportional control.
• We don't have this in reality.
Systems have momentum –
The room has heat capacity
Add small overshoot
Proportional control…
Integral Control
Remember the past!
Concept : If past has high errors, increase the power
Integral : Sum of errors over time
𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝 𝐸𝑟𝑟𝑜𝑟 + 𝐾𝑖(𝐼𝑛𝑡𝑒𝑔𝑟𝑎𝑙 𝑜𝑓 𝑝𝑎𝑠𝑡 𝑒𝑟𝑟𝑜𝑟𝑠)
Where 𝐾𝑖 is integral gain (we need to tune)
If temperature doesn’t settle for a long time, apply more power
Proportional-Integral control…
• Removes steady state error
• Tends to introduce overshoot!
• Increases relaxation time
• 𝐾𝑖 should be very small to prevent
overshoot
Derivative Control
Predict the future!
Concept : If room cools slowly, increase the power
𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝 𝐸𝑟𝑟𝑜𝑟 + 𝐾𝑖 𝐼𝑛𝑡𝑒𝑔𝑟𝑎𝑙 𝑜𝑓 𝑝𝑎𝑠𝑡 𝑒𝑟𝑟𝑜𝑟𝑠 + 𝐾 𝑑 𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑒𝑟𝑟𝑜𝑟
Where 𝐾 𝑑 is derivative gain (we need to tune)
eg: Empty room cools fast  Use low power
Water filled room cools slowly  Use high power
PID Equation
Power = 𝐾 𝑝 Error 𝐾𝑖
Sum of past
errors over
time
𝐾 𝑑
How fast
error
changes
+ +
𝑃𝑜𝑤𝑒𝑟(𝑡) = 𝐾 𝑝 ∙ 𝑒𝑟𝑟𝑜𝑟(𝑡) + 𝐾𝑖 ∙
𝑠𝑡𝑎𝑟𝑡
𝑛𝑜𝑤
𝑒𝑟𝑟𝑜𝑟(𝑡) ∙ 𝑑𝑡 + 𝐾 𝑑 ∙
𝑑(𝑒𝑟𝑟𝑜𝑟(𝑡))
𝑑(𝑡)
Math : Second Order Ordinary Differential Equation
𝐾 𝑝 , 𝐾𝑖 , 𝐾 𝑑 are constants to be determined by careful tuning
• 𝐾𝑝 , 𝐾𝑖 , 𝐾 𝑑 are tuned to have
• Minimum relaxation time
• Minimum steady state error
• Minimum oscillations / vibrations
PID Equation
Power = 𝐾 𝑝 Error 𝐾𝑖
Sum of past
errors over
time
𝐾 𝑑
How fast
error
changes
+ +
Arduino
Code
No need of
advanced math!
• To self balance
• 3 axes – Adjust angle
(3 PID equations, 9 constants to be tuned)
• Error - Measured by a gyroscope module,
Power - Given to the motors
Quadcopters,
Aircrafts
THANK YOU
Presentation by:
ABARAJITHAN . G

More Related Content

What's hot

Scada & hmi
Scada & hmiScada & hmi
Scada & hmi
munishgargg
 
Industrial automation
Industrial automation Industrial automation
Industrial automation
Krishna Kant Dharamsot
 
Contol of water pump using plc
Contol of water pump using plcContol of water pump using plc
Contol of water pump using plc
GhousiaSamdani
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
Waqas Afzal
 
PID controller in control systems
PID controller in control systemsPID controller in control systems
PID controller in control systems
khalaf Gaeid
 
PID controller
PID controllerPID controller
PID controller
Tsuyoshi Horigome
 
PID Controller and its design
PID Controller and its designPID Controller and its design
PID Controller and its design
KonirDom1
 
Pid controllers
Pid controllersPid controllers
Pid controllers
milind1076
 
VFDARIABLE FREQUENCY DRIVE
VFDARIABLE FREQUENCY DRIVE VFDARIABLE FREQUENCY DRIVE
VFDARIABLE FREQUENCY DRIVE
VISHAKHA GARG
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
Mahesh Vadhavaniya profmjv
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
Gaurav Verma
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
Amr E. Mohamed
 
Proportional integral and derivative PID controller
Proportional integral and derivative PID controller Proportional integral and derivative PID controller
Proportional integral and derivative PID controller
Mostafa Ragab
 
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPTAUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
rishav164
 
pid controller
 pid controller pid controller
pid controller
shurjeel amjad
 
Pid control
Pid controlPid control
Pid control
AB Rizvi
 
PLC Brief
PLC BriefPLC Brief
PLC Brief
Tamer salem
 
Static ward leonard drive
Static ward leonard driveStatic ward leonard drive
Static ward leonard drive
Manju Karthick
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller TuningAhmad Taan
 

What's hot (20)

Scada & hmi
Scada & hmiScada & hmi
Scada & hmi
 
Industrial automation
Industrial automation Industrial automation
Industrial automation
 
Contol of water pump using plc
Contol of water pump using plcContol of water pump using plc
Contol of water pump using plc
 
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
PID controller, P, I and D control Comparison PI, PD and PID Controller P, I,...
 
PID controller in control systems
PID controller in control systemsPID controller in control systems
PID controller in control systems
 
PID controller
PID controllerPID controller
PID controller
 
PID Controller and its design
PID Controller and its designPID Controller and its design
PID Controller and its design
 
Pid controllers
Pid controllersPid controllers
Pid controllers
 
VFDARIABLE FREQUENCY DRIVE
VFDARIABLE FREQUENCY DRIVE VFDARIABLE FREQUENCY DRIVE
VFDARIABLE FREQUENCY DRIVE
 
PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Modern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID TuningModern Control - Lec 06 - PID Tuning
Modern Control - Lec 06 - PID Tuning
 
Proportional integral and derivative PID controller
Proportional integral and derivative PID controller Proportional integral and derivative PID controller
Proportional integral and derivative PID controller
 
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPTAUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
 
pid controller
 pid controller pid controller
pid controller
 
Plc presentation
Plc presentation Plc presentation
Plc presentation
 
Pid control
Pid controlPid control
Pid control
 
PLC Brief
PLC BriefPLC Brief
PLC Brief
 
Static ward leonard drive
Static ward leonard driveStatic ward leonard drive
Static ward leonard drive
 
PID Controller Tuning
PID Controller TuningPID Controller Tuning
PID Controller Tuning
 

Viewers also liked

Document control system with iot help (rfid &amp; raspberry pi)
Document control system with iot help (rfid &amp; raspberry pi)Document control system with iot help (rfid &amp; raspberry pi)
Document control system with iot help (rfid &amp; raspberry pi)
Nick Guan
 
Lec 13
Lec 13Lec 13
Control system
Control systemControl system
Control system
Dr. Munthear Alqaderi
 
تصنيف أنظمة التحكم
تصنيف أنظمة  التحكمتصنيف أنظمة  التحكم
تصنيف أنظمة التحكم
Dr. Munthear Alqaderi
 
Lec 4
Lec 4Lec 4
Lec 1
Lec 1Lec 1
PID Control System
PID Control System PID Control System
PID Control System
Asheesh Kumar Shahi
 
Lec 11
Lec 11Lec 11
Lec 10
Lec 10Lec 10
Pid controllers
Pid controllersPid controllers
Pid controllers
Abhishek Mehta
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Carol Smith
 

Viewers also liked (11)

Document control system with iot help (rfid &amp; raspberry pi)
Document control system with iot help (rfid &amp; raspberry pi)Document control system with iot help (rfid &amp; raspberry pi)
Document control system with iot help (rfid &amp; raspberry pi)
 
Lec 13
Lec 13Lec 13
Lec 13
 
Control system
Control systemControl system
Control system
 
تصنيف أنظمة التحكم
تصنيف أنظمة  التحكمتصنيف أنظمة  التحكم
تصنيف أنظمة التحكم
 
Lec 4
Lec 4Lec 4
Lec 4
 
Lec 1
Lec 1Lec 1
Lec 1
 
PID Control System
PID Control System PID Control System
PID Control System
 
Lec 11
Lec 11Lec 11
Lec 11
 
Lec 10
Lec 10Lec 10
Lec 10
 
Pid controllers
Pid controllersPid controllers
Pid controllers
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
 

Similar to PID Control system for Dummies

4470838.ppt
4470838.ppt4470838.ppt
4470838.ppt
MuhammadMubeen58
 
Feedback amps.ppt
Feedback amps.pptFeedback amps.ppt
Feedback amps.ppt
Jagruthi M S
 
Intro to control ca
Intro to control caIntro to control ca
Intro to control caMISY
 
14446351.ppt
14446351.ppt14446351.ppt
14446351.ppt
MuhammadMubeen58
 
Control systems
Control systemsControl systems
Control systems
asser2021
 
Proportional-Derivative-Integral (PID) Control
Proportional-Derivative-Integral (PID) ControlProportional-Derivative-Integral (PID) Control
Proportional-Derivative-Integral (PID) Control
guest9006ab
 
Controllers ppt
Controllers pptControllers ppt
Controllers ppt
KevalSavsviya
 
day 3: Control Concepts & BMS
day 3: Control Concepts & BMS day 3: Control Concepts & BMS
day 3: Control Concepts & BMS
RCREEE
 
Control systems diagraming
Control systems diagramingControl systems diagraming
Control systems diagraming
Nuwematsiko Chris
 
Speed controller for fan
Speed controller for fanSpeed controller for fan
Speed controller for fan
Rifatkhasru009
 
control technology of bachlor of engineering technology
control technology of bachlor of engineering technologycontrol technology of bachlor of engineering technology
control technology of bachlor of engineering technology
engineerfazi245
 
2nd day System Configuration & Basic Functions Control Functions Design Tools...
2nd day System Configuration & Basic Functions Control Functions Design Tools...2nd day System Configuration & Basic Functions Control Functions Design Tools...
2nd day System Configuration & Basic Functions Control Functions Design Tools...
ssuserd973fe
 
Pid control by Adarsh singh
Pid control  by Adarsh singhPid control  by Adarsh singh
Pid control by Adarsh singh
Adarsh Singh
 
3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx
AravindanMohan4
 
On off controller
On off controllerOn off controller
On off controller
SayanSarkar55
 
TTHERM GEO presentation
TTHERM GEO presentationTTHERM GEO presentation
TTHERM GEO presentation
Larry Wurtak
 
2a contol systems
2a contol systems2a contol systems
2a contol systemsMISY
 

Similar to PID Control system for Dummies (20)

4470838.ppt
4470838.ppt4470838.ppt
4470838.ppt
 
Feedback amps.ppt
Feedback amps.pptFeedback amps.ppt
Feedback amps.ppt
 
Intro to control ca
Intro to control caIntro to control ca
Intro to control ca
 
14446351.ppt
14446351.ppt14446351.ppt
14446351.ppt
 
1578385.ppt
1578385.ppt1578385.ppt
1578385.ppt
 
Control systems
Control systemsControl systems
Control systems
 
Proportional-Derivative-Integral (PID) Control
Proportional-Derivative-Integral (PID) ControlProportional-Derivative-Integral (PID) Control
Proportional-Derivative-Integral (PID) Control
 
Temperature controllers
Temperature controllersTemperature controllers
Temperature controllers
 
Controllers ppt
Controllers pptControllers ppt
Controllers ppt
 
day 3: Control Concepts & BMS
day 3: Control Concepts & BMS day 3: Control Concepts & BMS
day 3: Control Concepts & BMS
 
Control systems diagraming
Control systems diagramingControl systems diagraming
Control systems diagraming
 
Speed controller for fan
Speed controller for fanSpeed controller for fan
Speed controller for fan
 
control technology of bachlor of engineering technology
control technology of bachlor of engineering technologycontrol technology of bachlor of engineering technology
control technology of bachlor of engineering technology
 
2nd day System Configuration & Basic Functions Control Functions Design Tools...
2nd day System Configuration & Basic Functions Control Functions Design Tools...2nd day System Configuration & Basic Functions Control Functions Design Tools...
2nd day System Configuration & Basic Functions Control Functions Design Tools...
 
Selaidechou
SelaidechouSelaidechou
Selaidechou
 
Pid control by Adarsh singh
Pid control  by Adarsh singhPid control  by Adarsh singh
Pid control by Adarsh singh
 
3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx3.CONTROL ACTIONS.pptx
3.CONTROL ACTIONS.pptx
 
On off controller
On off controllerOn off controller
On off controller
 
TTHERM GEO presentation
TTHERM GEO presentationTTHERM GEO presentation
TTHERM GEO presentation
 
2a contol systems
2a contol systems2a contol systems
2a contol systems
 

Recently uploaded

欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
freshgammer09
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
PinkySharma900491
 

Recently uploaded (7)

欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
 

PID Control system for Dummies

  • 2. • Quadcopter • Flight Control • Robots • Self Driving Cars • Air conditioner When we need to automatically control something…
  • 3. • We are a feedback control system!! • Try walking / writing with your eyes closed! Feedback Control Observe the Effect Make changes
  • 4. Air conditioner • Our room is at 30°C. • We need to :  Cool down it to 22°C  Within a shortest time.  Maintain the temperature at 22°C against external effects.
  • 5. On-Off control • Can’t control the power: only ON - OFF • Disadvantage: oTemperature oscillations oUnstable System Switch On A/C Switch Off A/C Temperature < 22°C Temperature > 22°C
  • 6. PID Control System Remember the PAST (Integral) Consider the PRESENT (Proportional) Predict the FUTURE (Derivative) And adjust power accordingly…
  • 7. ERROR • Air condition in a room • Error will be changing over time. Error 8°C ProcessVariable 30°C Set PointValue 22°C = -
  • 8. Proportional Control Consider the present Concept : Reduce power gradually 𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝(𝐸𝑟𝑟𝑜𝑟) Where 𝐾 𝑝 is proportional gain (we need to tune) Reduce power of A/C gradually, until temperature = 22°C
  • 9. • Steady state error may occur in pure proportional control. • We don't have this in reality. Systems have momentum – The room has heat capacity Add small overshoot Proportional control…
  • 10. Integral Control Remember the past! Concept : If past has high errors, increase the power Integral : Sum of errors over time 𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝 𝐸𝑟𝑟𝑜𝑟 + 𝐾𝑖(𝐼𝑛𝑡𝑒𝑔𝑟𝑎𝑙 𝑜𝑓 𝑝𝑎𝑠𝑡 𝑒𝑟𝑟𝑜𝑟𝑠) Where 𝐾𝑖 is integral gain (we need to tune) If temperature doesn’t settle for a long time, apply more power
  • 11. Proportional-Integral control… • Removes steady state error • Tends to introduce overshoot! • Increases relaxation time • 𝐾𝑖 should be very small to prevent overshoot
  • 12. Derivative Control Predict the future! Concept : If room cools slowly, increase the power 𝑃𝑜𝑤𝑒𝑟 = 𝐾 𝑝 𝐸𝑟𝑟𝑜𝑟 + 𝐾𝑖 𝐼𝑛𝑡𝑒𝑔𝑟𝑎𝑙 𝑜𝑓 𝑝𝑎𝑠𝑡 𝑒𝑟𝑟𝑜𝑟𝑠 + 𝐾 𝑑 𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑒𝑟𝑟𝑜𝑟 Where 𝐾 𝑑 is derivative gain (we need to tune) eg: Empty room cools fast  Use low power Water filled room cools slowly  Use high power
  • 13. PID Equation Power = 𝐾 𝑝 Error 𝐾𝑖 Sum of past errors over time 𝐾 𝑑 How fast error changes + + 𝑃𝑜𝑤𝑒𝑟(𝑡) = 𝐾 𝑝 ∙ 𝑒𝑟𝑟𝑜𝑟(𝑡) + 𝐾𝑖 ∙ 𝑠𝑡𝑎𝑟𝑡 𝑛𝑜𝑤 𝑒𝑟𝑟𝑜𝑟(𝑡) ∙ 𝑑𝑡 + 𝐾 𝑑 ∙ 𝑑(𝑒𝑟𝑟𝑜𝑟(𝑡)) 𝑑(𝑡) Math : Second Order Ordinary Differential Equation 𝐾 𝑝 , 𝐾𝑖 , 𝐾 𝑑 are constants to be determined by careful tuning
  • 14. • 𝐾𝑝 , 𝐾𝑖 , 𝐾 𝑑 are tuned to have • Minimum relaxation time • Minimum steady state error • Minimum oscillations / vibrations PID Equation Power = 𝐾 𝑝 Error 𝐾𝑖 Sum of past errors over time 𝐾 𝑑 How fast error changes + +
  • 16. • To self balance • 3 axes – Adjust angle (3 PID equations, 9 constants to be tuned) • Error - Measured by a gyroscope module, Power - Given to the motors Quadcopters, Aircrafts