Labrepo
Labrepo
Control Systems
ECC 402
BACHELOR OF TECHNOLOGY
ELECTRONICS & COMMUNICATION ENGINEERING
By
Sujan singh 22253
SCHOOL OF ELECTRONICS
INDIAN INSTITUTE OF INFORMATION TECHNOLOGY, UNA
HIMACHAL PRADESH
2024
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Software:
MATLAB and Simulink
Background:
A mass-spring-damper system, also known as a harmonic oscillator, is a common mechanical system
used to model various physical phenomena such as vibrations, oscillations, and mechanical structures
subject to external forces.
The general form of the equation of motion for a mass-spring-damper system is:
Where:
Mass M 0.25 Kg
Procedure:
1. Design the model using MATLAB Simulink as shown in Figure 2.
2. Make three subsystems of the model designed above as shown in Figure 3, with three different values of
damping constant (B, B1, B2).
3. Put the above specified values in the command window.
4. Run and obtain the required plots i.e. displacement in x-direction w.r.t time.
Conclusion:
Thus, using the Simulink and the mathematical model of Spring Mass Damper System, plot between
displacement in x-direction w.r.t time can be evaluated. And also we got relation betweendamping
coefficient and system oscillation means if we increases the damping coefficient then itsdecreases
the system oscillations.
Software:
MATLAB and Simulink
Background:
DC motors, utilizing pre-existing power infrastructure and operating on direct current, are easily
manageable. Their speed is regulated by the flow of current through the wiring, directly impacting
their performance. Functioning by converting DC power into mechanical energy, these motors
require a conductor carrying current to interact with a magnetic field, resulting in mechanical force
as per Fleming's left-hand rule.
DC motor systems find extensive applications across various real-world scenarios such as vacuum
cleaners, traction systems, sewing machines, cranes, and robots. They excel in providing high
starting torque, variable speed, and efficiency, particularly in air compression tasks.
These motors are typically characterized as an amalgamation of electrical and mechanical systems,
with parameters including armature resistance, armature inductance, back EMF constant, torque
constant, and friction coefficient.
A second-order differential equation can be derived to model the dynamics of a DC motor speed
control system. The equation relates the speed of the motor to the applied voltage and the
mechanical parameters of the motor. The equation is given as follows:
Procedure:
1. Design the model using MATLAB Simulink as shown in Figure 1.
2. Put the above specified values in the command window.
3. Run and obtain the required plots for Number of rotations w.r.t time.
Figure 2: Graph between angular angle v/s time for DC system and signal builder
The relation between Current and damping coefficient is that if we increase the damping coefficient
then the current decreases. And when the damping coefficient is b = 0 then also currentis increasing.
Also the angle vs time graph always remains constant in every case.
Software:
MATLAB
Background:
The time response of the system is defined as the output of the system obtained by providing specific
input to the system, where both input and output must be the function of time. Time response of the
system provides an idea about the variation in output when a certain input is provided with respect to
time.
The time response of the system is combination of steady-state response and transient response.
The transient response is the part of the output which tends to zero as time tends to infinity and the
remaining part of the output represents steady state response.
Procedure:
1. Write a MATLAB code for a 1st order system with different values of Ƭ.
2. Make three systems with time constant as Ƭ, Ƭ/2 and 2Ƭ.
3. Plot all the systems with different standard input signals such as impulse signal, step signal,
ramp signal and parabolic signal.
MATLAB Code:
tau=25;
sys=tf(1,[tau 1]);
tau2=44;
sys1=tf(1,[tau2 1]);
tau3=40;
sys2=tf(1,[tau3 1]);
s=tf("s");
%step response
step(sys, sys1, sys2)
title("Step Response")
legend("sys","sys2","sys3")
figure()
%ramp response
step(sys/s, sys1/s, sys2/s);
title("Ramp Response")
legend("sys","sys2","sys3")
figure()
%parabolic response
step(1/(s^2), sys/(s^2), sys1/(s^2), sys2/(s^2), 30);
title("Parabolic Response")
legend("sys","sys1","sys2","1/s^2")
figure ()
Result and Discussion:
Conclusion:
With the help of MATLAB for different systems and different standard signals (like Unit step,
Impulse response, unit ramp, parabolic response) we get the graphs.
Software:
MATLAB
Background:
In control systems, the time-domain performance of first-order systems refers to how these systems
behave over time. These systems are characterized by a single pole in their transfer function, resulting in
an exponential response to a step input.
Where, Ƭ is the time constant. The time constant represents the time required for the system to attain
63.2% of its steady-state value.
First-order systems exhibit exponential decay or growth in their response to a step input.
The key parameters that describe the time-domain performance of first-order systems include rise
time, settling time, overshoot, and steady-state error.
Rise time is the time taken for the system's response to rise from 10% to 90% of its final value.
Settling time is the time required for the system's response to reach and remain within a specified
percentage (usually 5%) of its final value.
Overshoot represents the maximum percentage by which the response exceeds its final value
before settling.
Steady-state error refers to the difference between the desired and actual output values once the
system has reached a steady-state condition.
Procedure:
1. Write a MATLAB code for a 1st order system with different values of Ƭ.
2. Make three systems with time constant as Ƭ, Ƭ/2 and 2Ƭ, where Ƭ is last two digits of your
roll number i.e.22.
3. Plot all the systems with different standard input signals such as impulse signal, step
signal,ramp signal and parabolic signal and also calculate various parameters of different
systems.
Conclusion:
1. We observe a direct relationship between the rise time and the parameter " 𝑟 "; as " 𝑟 " increases,
both the rise time and settling time increase.
2. Additionally, we generate the step response graph for various values of " 𝑟 using MATLAB.
Software:
MATLAB
Background:
The time response of second-order systems to standard signals typically involves analyzing how the
system behaves when subjected to different types of input signals, such as step, impulse, ramp.
Where, wn is the natural frequency of the system and Ç is the damping ratio.
Here are the standard signals commonly used to analyze the time response of second-order systems:
2. Impulse signal:
Impulse function is denoted by δ(t). It is defined as :
δ(t) = 1 , when t = 0
δ(t) = 0 , when t≠0
4. Parabolic Signal:
Parabolic signal can be defined as: x(t) = 𝑡^2/2 when t >=0 , x(t) = 0 when t < 0
2. Make four systems with different values of Ç and wn as last two digits of your roll number
i.e.22.
MATLAB Code:
w=22
s=tf('s')
%Impulse response
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
step(s*sys,1)
hold on
end
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
title("Impulse Response")
figure()
% Step response
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
step(sys,1)
hold on
end
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
title("Step Response")
figure()
% Ramp response
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
step(sys/s,1)
hold on
end
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
title("Ramp Response")
figure()
% Parabolic response
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
step(sys/s^2,1)
hold on
end
title("Parabolic Response")
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
We get all the graphs using MATLAB. We get step response, impulse response, ramp response , Parabolic
response for different value of 𝜻(damping ratio) means different system(like underdamped , undamped ,
critically damped , overdamped system).
Software:
MATLAB
Background:
Transfer function of 2nd order system is:
Where, wn is the natural frequency of the system and Ç is the damping ratio .
The time-domain performance of second-order systems is influenced by the location of the poles in the
system's transfer function. The poles determine the system's natural frequency (wn) and damping ratio
(ζ). These parameters play a crucial role in shaping the system's response characteristics, including rise
time, settling time, overshoot, and stability.
Here's how the location of the poles affects the performance of the system's response time:
Natural Frequency (ωn): The distance of the poles from the origin of the complex plane determines the
natural frequency of the system. A higher natural frequency results in faster oscillations and shorter rise
time. As the poles move further from the origin, the natural frequency increases, leading to a faster
response time.
Damping Ratio (ζ): The angle of the poles with respect to the negative real axis determines the damping
ratio of the system. A higher damping ratio results in faster settling time and reduced overshoot. Poles
closer to the real axis indicate higher damping, leading to faster convergence to the steady state without
overshooting or oscillations.
In summary, for second-order systems:
• Poles closer to the origin of the complex plane result in lower natural frequency and longer rise
time.
• Poles further from the origin lead to higher natural frequency and shorter rise time.
• Poles closer to the real axis result in higher damping ratio and faster settling time.
• Poles further from the real axis result in lower damping ratio, potentially leading to oscillatory
behavior and longer settling time.
Characteristic Equation:
School of Electronics, IIITU 24
𝜻𝑚𝒏 ± 𝜔𝑛√𝟏 − 𝜻2
Response of 2nd order systems is mainly dependent on the value of 𝜻 {damping ratio}.
MATLAB Code:
w=22
s=tf('s')
figure()
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
step(sys,1)
stepinfo(sys)
hold on
end
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
figure()
for z=[0,0.75,1,1.5]
sys=tf(w^2,[1,2*z*w,w^2])
pzmap(sys)
hold on
end
legend("\zeta=0","\zeta=0.75","\zeta=1","\zeta=1.5")
Conclusion:
We got the step response graphs for 2nd order system for different value of 𝜁 𝑢sing MATLAB. Also we get
the pole zero map for 2nd order system at different value of 𝜁.