Control systems are fundamental to mechatronics and automation. They are the brains behind machines and devices that can maintain a desired state or perform tasks without constant human intervention.
Cruise Control in Cars:
Maintains a set speed without the driver pressing the accelerator
Adjusts throttle based on speed sensor readings
Thermostat in a Room:
Keeps room temperature at a set level
Turns heating or cooling on/off based on temperature sensor
Control systems typically consist of four main components:
Input: The desired state or command (e.g., desired speed or temperature)
Process: The system being controlled (e.g., car engine or HVAC system)
Output: The actual state or result (e.g., current speed or room temperature)
Feedback (in closed-loop systems): Information about the output used to adjust the process
In an open-loop system, the control action is independent of the output.
Example: A toaster
Input: Time setting
Process: Heating elements turn on
Output: Toast
No feedback: The toaster doesn't check if the toast is done
Advantages:
Simple design
Lower cost
Suitable for systems where the relationship between input and output is well-known and consistent
Limitations:
Cannot adapt to changes or disturbances
May not achieve the desired output accurately
Use feedback to adjust the process and achieve the desired output.
Example: Autopilot system in an aircraft
Input: Desired altitude and heading
Process: Adjusting flight controls
Output: Current altitude and heading
Feedback: Continuous sensor readings of altitude and heading
Advantages:
Can adapt to changes and disturbances
More accurate in achieving desired output
Can handle complex systems with many variables
Limitations:
More complex design
Higher cost
Potential for instability if not properly tuned
On-Off control, also known as bang-bang control, is the simplest form of control system. It switches between two states based on a threshold value, without any intermediate states.
This type of control is easy to implement and cost-effective, but can lead to frequent switching and overshooting. On-Off control is commonly used in home thermostats and simple industrial processes where precise control is not critical.
PID control combines three terms: Proportional (responds to current error), Integral (addresses accumulated error), and Derivative (predicts future error). It provides a balance between quick response and stability, making it versatile for various applications.
PID control is widely used in industrial processes, robotics, and automotive systems due to its robustness and relatively simple implementation.
MPC uses a model of the system to predict future behavior and optimize control actions based on these predictions. It can handle complex constraints and multiple objectives, making it highly effective for optimizing system performance.
MPC is often used in chemical process control, autonomous vehicles, and energy management systems where complex dynamics and multiple constraints are present.
RL control is an AI-based approach where the controller learns optimal actions through interaction with the environment. It continually adapts and improves its performance over time, without requiring explicit programming of control rules.
RL control is increasingly used in robotics, game AI, and complex industrial processes where adaptability and handling of uncertain environments are crucial.
📖 In your workbook:
Explain the difference between an open-loop and closed-loop control system.
Identify whether various mechatronic systems are open-loop or closed-loop.
In this challenge, you will program the Maqueen robot to follow a circular black line on a white mat without using any sensors. This is an example of open-loop control, where the robot will execute a series of pre-programmed instructions without any feedback from its environment.
from microbit import *
from maqueenplusv2 import *
init_maqueen()
def follow_circle():
# Your code here
pass
while True:
follow_circle()
How accurate is the robot in following the circular path over time?
What factors cause the robot to deviate from the intended path?
How might the robot's performance change over an extended period of operation?
In what real-world scenarios might an open-loop control system like this be used, despite its limitations?
How would a closed-loop system improve the robot's ability to follow the line accurately?