What is a PID Controller? | DigiKey DigiKey Kho Tổng Hợp 215,155 2 năm trước Add Nghe mp3 Facebook Tweet XEM MÔ TẢ PID controllers are popular control mechanisms found in many systems used to help drive the main process’s output to achieve some desired set point. PID stands for “proportional, integral, derivative.” The controller compares the output of the process to some set point to create an error term. That error term is used in three separate calculations to produce a control signal for the process or plant. The written description for PID controllers can be found here: https://www.digikey.com/en/maker/projects/introduction-to-pid-controllers/763a6dca352b4f2ba00adde46445ddeb In the video, we use an example of a cruise control system in a car. We want to design a mechanism that can maintain a constant speed by controlling the position of the accelerator (gas pedal). PID controllers are a perfect fit for such a system. In fact, most modern cars use PID controllers for cruise control. A simple, naive approach to designing such a controller is to adjust the process’s input signal based on the set point alone with no feedback. This is known as an “open-loop control system.” This may work in some cases, but most of the time, the output is dependent on other factors (such as road conditions and hill climbs for our cruise control system). As a result, we need to incorporate feedback into our controller. A “closed-loop control system” measures the actual output of the process and compares it to the set point. The error is the difference between these two values, and it’s used as the input to the controller. The controller looks at that error and makes adjustments as needed to the process’s input. The proportional (P) part of the PID controller simply multiplies the error term by a constant, Kp. The further away the process’s output is from the set point, the higher the magnitude of the input value. This works in some cases, but it can result in “steady-state error” where the desired output can never be achieved. In our cruise control example, if we are at our cruising speed, the error is 0, which means that we should completely release the gas pedal. Obviously, this is not a desired behavior, so we add additional terms to our controller. The integral (I) term sums the error term over time and multiplies this sum by a constant, Ki. This process solves the issue of steady-state error found in the P controller. As the steady-state error accumulates, the I term causes the process input signal to increase, thus closing the gap found in that steady-state error. It essentially looks at the past performance of the system and adjusts as needed. Sometimes, a PI controller is sufficient. However, you often face a tradeoff when tuning such a system. You can either have an “overdamped response” where the error slowly (but surely) approaches 0, or you can have an “underdamped response” in which the output quickly approaches the set point but oscillates for some time. If you want a “critically damped” system that quickly approaches the set point and settles with little or no oscillation, you need to add a third term. The derivative (D) term counteracts the effects of the proportional and integral terms. It attempts to predict where the response is headed by solving for the slope of the error curve and multiplying that value by the constant Kd. If the magnitude of the slope is too high, such that the system is approaching 0 error too quickly, it will add a negative value to the sum of the P and I terms, thus “pulling back” on the input. With properly tuned Kp, Ki, and Kd values, systems should ideally become critically damped where the output quickly approaches the set point without any overshoot. Tuning a PID controller can be quite involved, and we will cover it in a future video. Note that most modern PID controllers are implemented in software to run on computers or microcontrollers. We provide a snippet of pseudocode to help you get started implementing your own PID controllers in, say, Arduino. Product Links: STMicroelectronics Inverted Pendulum Kit - https://www.digikey.com/en/products/detail/stmicroelectronics/STEVAL-EDUKIT01/11696333 Related Articles: STMicroelectronics Inverted Pendulum Kit Curriculum - https://www.st.com/content/st_com/en/campaigns/educationalplatforms/motorcontrol-edu.html Learn more: Maker.io - https://www.digikey.com/en/maker DigiKey’s Blog – TheCircuit https://www.digikey.com/en/blog Connect with DigiKey on Facebook https://www.facebook.com/digikey.electronics/ And follow us on Twitter https://twitter.com/digikey 00:00 - Intro 00:57 - Control Theory Overview 02:53 - Open-loop System 03:59 - Closed-loop System 05:06 - Proportional Controller - Distance 07:37 - Proportional Controller - Cruise Control 10:04 - Proportional and Integral Controller 14:05 - Over, Under, and Critically Damped Responses 15:04 - Proportional, Integral, and Derivative Controller 18:12 - PID Controller Tuning 19:43 - Code Example 21:09 - Use Cases 21:44 - Conclusion Video liên quan 16:59 Cách Làm Chà Bông Thịt Gà Tại Nhà Ngon Nhất-Món Ngon Mẹ Nấu Hướng Dẫn Món Ngon Mẹ Nấu Mom's Best Food 320,894 view 6 năm trước Add 4:14 Découverte : le Jardin Keriel, un bijou végétal Hortus Focus, le Vivant d'abord 3,967 view 8 năm trước Add 3:54 LeStudio - Ihr Fitnessstudio mit Milon Zirkel in Puchheim LeStudioPuchheim 869 view 12 năm trước Add 26:17 TESTING VIRAL SQUISHIES FROM TIKTOK SHOP... *ASMR* Lana Rae 336,348 view 22 ngày trước Add 8:52 Bishop Barron on St. Paul and the Mission of the Church Bishop Robert Barron 70,876 view 15 năm trước Add 3:10 Can I Drake - Topic 25,865,683 view 6 năm trước Add 3:01 🔥 Tony Compilation 28 Tony LC SIGN 583,179 view 9 tháng trước Add 0:38 Queen Elizabeth I became queen of England against all odds #queen #shorts #royal #royalty #viral Royalty Zenith 1,809,353 view 10 tháng trước Add 18:07 I Built The TALLEST SKYBASE in 99 NIGHTS IN THE FOREST... Lana's Life 834,324 view 3 tháng trước Add 6:26 CÁCH LÀM MỰC NƯỚNG SA TẾ NGON TUYỆT | MÓN NGON MỖI NGÀY Mon Ngon Moi Ngay 298,806 view 13 năm trước Add 15:29 Vagus Nerve Massage For Stress And Anxiety Relief Sukie Baxter 6,287,835 view 5 năm trước Add 1:12:19 NONSTOP 2026 BAY PHÒNG BASS CỰC MẠNH ✈️ NHẠC SÀN VINAHOUSE DJ MIXTAPE 2026 ✈️ NHẠC REMIX CỰC MẠNH P5 Mee Remix 53,390 view 21 ngày trước Add 2:26 집값 급등기에 영끌…주담대 금리, 두배 뛰었다 / SBS 8뉴스 SBS 뉴스 110,092 view 23 ngày trước Add 16:20 Can Trump Leave NATO Alone? Not So Fast Professor Gerdes Explains 🇺🇦 66,973 view 19 ngày trước Add 25:43 Khám phá món ngon chính gốc Tứ Xuyên chỉ dân bản địa mới biết🍜Ẩm thực Trung Quốc Ghé Quán Ngon 8,448 view 3 tháng trước Add 20:56 Can US allies reopen the Strait of Hormuz without military force, or US help? | DW News DW News 55,223 view 18 ngày trước Add 5:19 Cory Wong // St. Paul Cory Wong 517,358 view 6 năm trước Add 13:16 Saint Paul the Liar?! What the Early Followers of Jesus Really Believed The Recovering Catholic 32,970 view 9 tháng trước Add 4:17 Tevin Campbell - Can We Talk (Official Video) UPROXX 158,329,121 view 5 năm trước Add 0:44 Tony是傳奇! 喵耳電波 1,372,027 view 8 tháng trước Add