PID Control with Arduino
Learn the basics behind how a proportional-integral-derivative (PID) controller works and how to implement one on the Arduino hardware!
A PID controller is the most common feedback controller used in the industry, but they can also be used for hobbyist electronic projects such as quad-copters, self-balancing robots, temperature controllers, and much more! In this course, we will not be going into the classical control theory behind PID controllers, instead we will approach the controller intuitively so that it’s role and implementation is practically understood.
The lecture series contains 7 lectures covering:
- Feedback Systems, P, PI, and PID Controllers
- Arduino Implementation and Live Demonstration (Propeller Arm Example)
- Heuristic PID Tuning
A template for the Arduino code will also be provided and explained in the series. In order to demonstrate the controller in real-time, a propeller arm example has been constructed. The live demonstration will be used to explain the behavior of the PID controller and how to tune one heuristically.
This course is suitable for any student, engineer, hobbyist, or maker who always wished to understand PID control in a easy intuitive manner; although a basic understand of electronics, C coding, and calculus is preferred. Having knowledge of feedback control prior to taking this course is also a plus!
After taking this course, you will not only understand PID control better, but you’ll become a lot more comfortable with designing projects that involve feedback control.
An Arduino template code for a PID controller is attached below!
Disclaimer Note: During the demonstration where I decreased the Kd value from 0.3255 to 0.103 which resulted in a sustained underdamped oscillation, I had also increased Kp from 2.1 to 2.4. Increasing Kp does increase overshoots but in this scenario it was mainly because I had lowered Kd value by nearly 68%.