Open Loop vs Closed Loop
You tell your robot to drive forward 1 meter. It starts moving, but when you measure, it only went 0.87 meters. You tell it to turn 90 degrees. It turns 103 degrees instead. What went wrong?
The answer lies in whether your control system uses feedback or not. This is the difference between open-loop and closed-loop control — and it's one of the most fundamental concepts in robotics.
Open-Loop Control: Fire and Forget
In an open-loop control system, you send a command and hope for the best. There's no sensor checking whether the robot actually did what you asked.
Here's a simple example — you want to heat a room to 22°C:
This might work on a perfect day when the outside temperature is 15°C and there's no wind. But what if:
- It's actually 5°C outside? The room won't reach 22°C in 5 minutes.
- Someone opens a window? The heat escapes.
- The heater is less efficient than expected? It takes longer.
Open-loop control has no way to know if the goal was achieved. It just executes the plan blindly.
When Open-Loop Works
Open-loop isn't always bad. It's simple, fast, and works well when:
- The system is predictable (a stepper motor moving a 3D printer head)
- The disturbances are minimal (a door lock — either locked or not)
- The consequences of error are acceptable (a washing machine timer)
But for robots moving in the real world? Almost never good enough.
Closed-Loop Control: Measure and Adjust
In a closed-loop control system, you continuously measure the output and adjust the input based on the error — the difference between what you want and what you have.
Same heating example, but with a thermometer:
Now the system adapts to disturbances. Window opens? The thermometer sees the temperature drop and the heater powers up. Outside temperature changes? The control loop adjusts automatically.
This is feedback — using the sensor output to modify the control input.
The term "closed loop" comes from the circular flow of information: sensor → controller → actuator → sensor. The loop is "closed" because the output feeds back into the input.
Robotics Example: Driving Straight
Let's make this concrete with a robot driving forward.
Open-Loop Approach:
Closed-Loop Approach:
The closed-loop version measures reality and adjusts until the goal is met.
The Core Components
Every closed-loop control system has three parts:
- Sensor — Measures the current state (encoders, thermometer, IMU, etc.)
- Controller — Compares desired state to actual state, computes a correction
- Actuator — Executes the correction (motors, heater, servo, etc.)
The information flows in a loop:
This is the sense-think-act loop we've seen throughout this course — but now with the explicit feedback connection.
What's Next?
Now that you understand the power of feedback, the next question is: how do you calculate the correction? How much more power should the heater get if the room is 2°C too cold? How fast should the robot turn to correct a 5-degree heading error?
The answer is PID control — the most common control algorithm in robotics. We'll break it down step by step in the next lesson.