Project Update System Identification & PID Tuning
Project Update System Identification & PID Tuning
Realised by :
-Rachdi Issam
-Akachar Mohammed
Table of Contents
Introduction .
PID Tuning
Conclusion
Introduction :
DC motors are widely used in robotics due to their reliability, ease of
control, and fast response. To control these motors accurately, it is
important to understand and model their dynamic behavior.
In this project, we focus on identifying the mathematical model of two DC
motors used in a self-balancing robot. By modeling the motors, we are
able to design and tune PID controllers to maintain the robot's balance.
There is no information
input about the system; only the
input is converted to the output
output.
gearbox
A gearbox is a mechanical system
used to transmit power from the DC
motor to an output shaft, typically to
reduce speed and increase torque. It
consists of a set of gears that change
the speed and direction of rotation.
In the case of the gearbox used in
this project, it has a 10:1 reduction
ratio, meaning that for every 10
rotations of the DC motor, the output
shaft completes only 1 rotation. This
setup increases the torque at the
output while reducing the rotational
speed.
Importance of Modeling in
Motor Control .
Modeling is essential in motor control because
it provides a mathematical representation of
the motor's behavior, which is crucial for
designing effective controllers. Accurate models
allow engineers to predict how a motor will
respond to various inputs, optimize control
strategies, and improve system performance.
Without a proper model, controlling the motor
becomes a trial-and-error process, potentially
leading to instability, inefficiency, and poor
performance.
By creating reliable models, whether through
white-box (physical equations) or black-box
(data-driven) methods, it's possible to fine-tune
controllers, such as PID, for precise control,
ensuring stability, responsiveness, and
efficiency in motor-driven systems, such as
robots, industrial machinery, and automotive
applications.
White-Box Modeling
White-box modeling of a system involves deriving a mathematical
model using first principles—i.e., physics-based laws and known
parameters. For a Permanent Magnet DC (PMDC) Motor, we can
derive its transfer function and state-space model from the
electrical and mechanical dynamics. .
1. System Overview:
3. Mechanical Model:
Using Newton's Second Law for rotation:
Transfer Function
Laplace transform (eq. 1), (eq. 2), (eq. 3), (eq. 4):
Block Diagram
Black-Box Modeling
Data Collection and Preprocessing
cost function
PID Tuning :
PID Tuning
After identifying the transfer function of the DC
motor, we proceed with tuning a PID controller to
achieve stable and accurate motor speed control. The
goal is to minimize the error between the desired and
actual RPM. The tuning process involves adjusting the
proportional (P), integral (I), and derivative (D) gains to
ensure a fast response, minimal overshoot, and
reduced steady-state error. The tuned PID controller is
then tested on the system to evaluate its performance
and stability.
PID parameters
Conclusion :