0% found this document useful (0 votes)
5 views

Document 15

Uploaded by

moeez786amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Document 15

Uploaded by

moeez786amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab report 7:

Part (b): Study and Analysis of Controllers (P, PD, PI, PID) using
MATLAB/SIMULINK

Introduction:

In control systems, controllers play a crucial role in achieving desired performance and stability.
The goal of a controller is to minimize the error between the desired output and the actual output
of a system. In this laboratory experiment, we will study and analyze the performance of diverse
types of controllers, including Proportional (P), Proportional-Derivative (PD), Proportional-
Integral (PI), and Proportional-Integral-Derivative (PID) controllers, using MATLAB and
Simulink.

The objective of this experiment is to design and implement controllers to achieve an ideal
response, characterized by a minimum rise time, minimum overshoot, and zero steady-state
error. We will analyze the performance of each controller by observing the transient response
and steady-state behavior of the system.

The system under consideration is a closed-loop speed control of a DC motor with unity-
feedback. We will first analyze the system without any controller and then design and implement
different controllers to achieve the desired performance. The results will be compared and
analyzed to determine the best controller for achieving the ideal goal.

In this report, we will present the implementation of each controller in MATLAB and Simulink,
and discuss the results obtained. We will also compare the performance of each controller and
conclude which controller is best suited to achieve the desired performance.

Objective:
• Study of Controllers.
Measurements:
To conduct this experiment, I first implemented the transfer function of the system, which
represents the closed-loop speed control of a DC motor with unity-feedback, in MATLAB. I then
used the step function to analyze the system's response to a step input without any controller.

Next, I designed and implemented four different types of controllers: Proportional (P),
Proportional-Derivative (PD), Proportional-Integral (PI), and Proportional-Integral-Derivative
(PID) controllers. For each controller, I modified the transfer function to include the controller's
gains (Kp, Ki, and Kd) and analyzed the system's response to a step input using the step
function.

To evaluate the performance of each controller, I measured and recorded the rise time (Tr),
settling time (Ts), steady-state error (SS Error), and overshoot (%OS) of the system's response. I
compared these measurements to determine how each controller affected the system's behavior
and which controller achieved the desired performance goals of minimizing rise time, overshoot,
and steady-state error.

Throughout the experiment, I adjusted the gains of each controller to optimize their performance
and achieve the best possible response. By analyzing the results and comparing the performance
of each controller, I was able to determine which controller was most effective in achieving the
desired goals and why.

Graphs:

With PD controller

G = tf(1, [1 3 2]);

step(G)

WITH PI CONTROLLER
WITH PID CONTROLLER:

Issue:

We do not face aby issue.

CONCLUSION:

In this experiment, we investigated the effect of different controllers on the closed-loop speed
control of a DC motor with unity-feedback. The results show that each controller has its
strengths and weaknesses, with the PID controller achieving the best overall performance,
featuring a fast response time, minimal overshoot, and zero steady-state error. The choice of
controller depends on the specific performance goals and constraints of the system, but the PID
controller is a versatile and effective choice for many control systems. This experiment
demonstrates the importance of controller design and tuning in achieving optimal system
performance, and future work can explore the effect of disturbances and noise on the system's
response and controller performance, as well as advanced control techniques to further improve
system performance.

Applications:
• Robotics
• Process Control
• Automotive Systems
• Industrial Automation
• Medical Devices

You might also like