assessment cover sheet assessment title designing a speed controller f
Search for question
Question
Assessment Cover Sheet
Assessment Title
Designing a Speed Controller for a DC Motor
Programme Title:
Bachelor of Engineering Technology
Course No .:
EN7230T
Course Title: Instrumentation and Automatic Control
Student Name:
Student ID:
Section Number:
Tutor Name:
➢
Assessor:
Date of Marking:
Grade/Mark: Assessment Weight: 60% of total mark
Comments:
Course Project Descriptor (EN7230T)
Learning Outcomes
The tasks included in this assignment fulfill the Learning Outcomes of the course as follows:
1) Demonstrate advanced knowledge of core principles of control and instrumentation.
2) Critically analyze and evaluate transient response characteristics of first and second order systems.
3) Apply and demonstrate instrumentation and control strategies for feedforward and feedback control systems.
4) Formulate, apply, and present tuning methods for finding suitable PID controller parameters to meet an industry standard requirement for a defined control design problem.
The completion of this project carries a weightage of 60% towards your final grade. The project entails designing a speed controller for a DC motor using MATLAB/Simulink. The specific time frame for the project will be announced by your tutor.
Deliverables
By the project deadline, please submit:
1) The MATLAB/Simulink files used to design your proposed controller.
2) A MATLAB/Simulink simulation model of the complete control system.
3) A project report explaining how you determined the controller design and why you made those particular design choices.
The report should include details of your calculations and reasoning behind the design. Simulation results and analysis can help show the effectiveness of the approach.
2 | Page
Course Project Descriptor (EN7230T)
Guidelines for the Project Report
Prepare a comprehensive project report that encompasses the following tasks. Justify your selection of the controller and demonstrate how it meets the criteria for the transient response design specifications. Ensure that the report is clear and transparent by following these guidelines:
. Present your results using appropriate MATLAB/Simulink plots and code (very, very strict rule).
· Include all m-files (editable text, no pictures) and Simulink block diagrams in the appendix section of your report (not-so-strict rule).
. Label the axes of each graph, including a figure legend when necessary. Specify the units in the label itself, such as "speed (m/s)" or "time in milliseconds [ms]," to provide clarity about the measured quantities (very, very strict rule).
· To avoid sending multiple figures, consider using the subplot() function to group related figures (not-so-strict rule).
. Add comments within each m-file to describe the purpose of the MATLAB code or command (very, very strict rule).
. Give each graph a descriptive title and ensure that all axes are labeled and scaled accurately (very, very strict rule).
. If a plot includes multiple lines, include a legend that explains each curve (very, very strict rule).
. Do not include Simulink 'Scope' images in the report, as they lack proper labeling (very, very strict rule).
· When creating Simulink block diagrams, minimize overlapping and crossing lines as much as possible. Rearrange icons to establish a clear left-to-right path (very, very strict rule).
. Number your plots and graphs sequentially, such as Fig. 1, Fig. 2, and so on (very, very strict rule).
DC Motor
The DC motor is a widely used actuator in control systems. It is capable of producing rotary motion directly and, when combined with wheels, drums, or cables, can also generate translational motion.
3 | Page
Course Project Descriptor (EN7230T)
The electric equivalent circuit of the motor's armature and the free-body diagram of the rotor are depicted in the accompanying figure.
Fixed field
R
L
T
+
Armature circuit
0
v
+
e
i
-
bė
Rotor
In this specific scenario, we will consider the voltage source (V) applied to the motor's armature as the input to the system, while the rotational speed of the shaft (0) will serve as the output. Both the rotor and the shaft are assumed to possess rigid characteristics. Additionally, we adopt a viscous friction model, meaning that the friction torque is proportionate to the angular velocity of the shaft.
The physical parameters for our particular example are as follows:
Parameter
Description
Value
J
moment of inertia of the rotor
0.05 kg·m2
b
motor viscous friction constant
0.1 N.m.s
Ke
electromotive force constant
0.05
rad.s
Kt
motor torque constant
V
V
0.05
rad·s
R
electric resistance
0.5 02
L
electric inductance
0.8 H
4 | Page
Course Project Descriptor (EN7230T)
System's Model Derivation
Typically, the torque produced by a DC motor is directly related to both the armature current and the strength of the magnetic field. However, in this particular case, we will assume that the magnetic field remains constant, resulting in the motor torque being solely proportional to the armature current i. This relationship is expressed by the equation below, where the proportionality factor is denoted as Kt. This configuration is commonly referred to as an armature-controlled motor:
T = Kti (1)
The back electromotive force (emf), represented as e, is directly proportional to the angular velocity of the shaft. This relationship is governed by a constant factor Ke as follows:
e = KęÒ (2)
In the International System of Units (SI), the constants for motor torque and back electromotive force (emf) are equivalent, meaning that Kt is equal to Ke. For simplicity, we will denote this common constant as K to represent both the motor torque constant and the back emf constant.
Using the information provided in the preceding figure, we can derive the following governing equations by applying Newton's second law and Kirchhoff's voltage law:
JÄ + bÒ = Ki
(3)
L - + Ri = V - KÒ dt di
(4)
Transfer Function
By employing the Laplace transform, we can represent the aforementioned modeling equations, given in (3)-(4), in terms of the Laplace variable s:
s(Js + b)0(s) = KI(s)
(5)
(Ls+ R)I(s) =V(s) - Ks0(s)
(6)
By eliminating I(s) between the two equations mentioned in (5)-(6), we obtain the following open- loop transfer function:
P(s)=Ó()- Ở(s)
(Js+b)(Ls+R) + K2 K (7)
In this transfer function, the rotational speed O(s) is regarded as the output, while the armature voltage V(s) is regarded as the input.
5 | Page
Course Project Descriptor (EN7230T)
Tasks
Part 1: Open-Loop System
In open-loop systems, there is no sensor to measure the output and compare it with the user-defined set-point via a feedback stream, and thus there is no compensator for the mismatch between input and output. This system can be illustrated as follows:
V(s)
₿(s)
P(s)
1.1 Substitute the numeric values of the system parameters in P(s) and re-express it again. 1.2 Using MATLAB, code the above transfer function and find the plot of its step response =.
1.3 From these plots, calculate the difference between the input signal and the output signal. Will the output reach the input, or will it have a steady-state error?
For the step response mentioned in 1.2, each student should use the following amplitude:
Student ID A
Student ID
A
Student ID
A
202306613 3.25
Part 2: Feedforward Control System
One of the main objectives of embedding a control system is to ensure that the output signal, represented by O(s), closely resembles the input signal, represented by V(s).
If we assume zero external disturbances and a perfect match between the model and the actual system, we can incorporate the following feedforward controller to achieve the objective.
6 | Page
Course Project Descriptor (EN7230T)
V(s)
u(s)
₿(s)
Kff
P(s)
2.1 Find the value of the feedforward gain (Kff) that satisfies the condition O(s) = V(s).
2.2 Find the inverse of the final value of P(s); i.e., calculate P(s)-1 when s = 0.
2.3 Compare Kff with P(0)-1. Are they the same? Why?
Part 3: Feedback Control System
The main inherent weakness of the feedforward control scheme is its inability to mitigate uncertainty, such as unknown or unconsidered disturbances and/or imperfections in the model. Also, there is no control on the output performance (such as overshoot, undershoot, raise time, settling time, and offset or steady-state error). To achieve these criteria, a feedback control scheme is suggested.
Assume the following block diagram represents the prospective feedback control scheme where a filter is placed in series with the sensor and the process is affected by an external disturbance:
Step Disturbance
Time Delay
Rotational
D(s)
Speed
Armature Voltage
e -Tas
d(s)
Step Change
in Set Point
Compensator
DC Motor
V(s)
e(s)
+
C(s)
P(s)
u(s)
f(s)
Ò(s)
+
+
Filter
m(s)
H(s)
The disturbance signal is modeled as a step function of magnitude 0.2 and delayed by a time constant of Ta = 0.1. Thus, the step disturbance in Laplace domain is:
= 6021 - 0,2 0.2
(8)
and the time delay can be expressed as a rational function using the 2nd order Pade approximation:
e-0.15 ~
s2 + 60s + 1200 s2 - 60s + 1200
7 | Page
(9)
Course Project Descriptor (EN7230T)
The Laplace transform of the measurement unit's filter is given as follows:
H(s) = S+ 1 1
(10)
Finally, the compensator is a PID controller whose general expression in Laplace transform is:
C(s) = Kp + + + Kas
(11)
3.1 Using Simulink, model this closed-loop system and connect the input and output signals to a two-channel scope.
3.2 Using MATLAB or by hand, find the overall transfer function between V(s) and Ò(s) and the overall transfer function between D(s) and ((s).
3.3 Apply the online Ziegler-Nichols (Z-N) tuning method to find the PID gains (Kp, Ki, and Ka).
3.4 Apply the online Tyreus-Luyben (T-L) tuning method to find the PID gains (Kp, Ki, and Ka).
3.5 Check these tuned PID parameters in your Simulink model and compare between the two tuning methods. Which one has a better result? Why?
3.6 Can you reach a better result? How (state some references)? Show it numerically.
Note: there are 3 parts, each task of part 1 weighs 1 mark, each task of part 2 weighs 1.5 mark, and each task of part 3 (except the last task) weighs 2 marks, and the last task of part 3 weighs 2.5 marks.
Plagiarism & Collusion
WARNING ON PLAGIARISM & COLLUSION
Plagiarism - is defined as the misrepresentation of another person's ideas, thoughts or words as though they were your own. All types of deliverables are covered by this definition, including, written work, diagrams, designs, engineering drawings and pictures.
At Bahrain Polytechnic, we encourage independent thinking, and you are entitled to criticize other people's work and include it in your report. However, you MUST acknowledge your sources. This can be achieved by quoting and citing the published or unpublished work of others, which include sources from the internet, books, journal articles, conference proceedings, and any other credible or uncredible sources. A full reference to the source must be provided in an appropriate format and should be included in your References/Bibliography section of your report.
Collusion - is defined as an unauthorized conscious collaboration between two or more students in producing work that is deemed to be identical or largely similar in content and representing the work as though they were their own. If a tutor suspects a plagiarism and/or collusion offence in a report, then this may result in an allegation of cheating. Such cases will be dealt with under the Bahrain Polytechnic's procedure and may result in a severe penalty being taken against any student found guilty and it may result in the student being expelled from the course indefinitely. Departments can give advice about the appropriate use and correct acknowledgements of other sources in your own work.
8 | Page