Closed Loopsart 1

PID

Okay, you probably know a bit about setting up a motor and sensor to control speed and position. No, well let me quickly 'plain. You know about using a microcontroller and PWM to run the speed of a motor up and down on a wheeled bot but how far will it travel or how large is the turn if direction is the point? So you add a feedback speed senor and count pulses to get speed and direction. If you're just running around with no particular purpose, that's fine but if you talking about a drone things get more difficult to control. This is where Proportional, Integration, Derivitive (PID) controllers become important to understand.

Let's say you want to take your drone to a particular height. You run up your props until liftoff and measure the height with an altimeter sensor. You have a dynamic system at play that has natural resonance and response times not to mention parameter limits or saturation points. If prop speed gets you to altitude, what happens when you get there? The props stop! If you want to get to altitude fast, you may order props speed/voltage beyond the power supply limit of the motor system. The integration part of your PID control will overshoot and cause a massive delay in correcting control at altitude. Point being, you need to better understand PID systems to get good flying results.

To learn about PID control systems, you can explore various resources that provide comprehensive explanations, tutorials, examples, and practical applications. Here are some recommended resources:

Online Courses and Tutorials:

Books:

Websites and Online Resources:

YouTube Channels and Videos:

Remember to practice implementing and tuning PID controllers on real or simulated systems to reinforce your understanding. Using software like MATLAB, Simulink, or Python with control libraries can be helpful for simulation and hands-on experimentation.

(This information was constructed using ChatGPT)