PID Controller in 60 Seconds
A PID controller corrects an error using three ideas: how big it is now, how long it has lasted, and how fast it is changing.
The controller keeps measuring the angle and pulls the arm back to the green target.
The P part pushes in proportion to the current error, so a big gap gets a big push. The I part adds up error over time, so a small gap that stays gets removed. The D part watches how fast the error changes and calms the motion.
Together they let a motor reach a target quickly, without shooting past it or sitting short.
One simple recipe controls speed, position, temperature and more, in robots, drones and cars.
Simple on-off control overshoots and oscillates, or settles short of the target.
The three gains need tuning. Wrong values give shaking, slow response or instability.
What does the I term in PID fix?
Go deeper in the Atlas
Control and Balance
- Feedback Control Explained
- Line Follower Robot
- Why You Don't Fall in a Moving Bus (And Robots Do)
- How Boston Dynamics Robots Keep Their Balance
- How Drones Stay Level in Strong Wind
- PID Controller in 60 Seconds
- ROS 2
- How Robots Learn to Walk
- A* Pathfinding
- State Machine
- Robot Latency
- Reward Hacking
- Sim to Real
- How Humanoid Robots Walk Without Falling (ZMP Explained)
- Gain and Damping
- How Self-Driving Cars Think
- Swarm Robotics
- Robot Dog (Quadruped) Explained
- How a Drone Hovers
- Behavior Tree