Tasks Part 1: Open-Loop System [15 marks] In open-loop systems, there is no sensor to measure the output and compare it with the user-defined set-poin
Instructions
1) Please ensure that you submit your report by the specified due date through the Turnitin link provided on Moodle.
2) The date of your upload on Moodle will be considered as the official “Date of Submission” for calculating any late submissions.
3) Adhering to the late submission rule is crucial as it will be applied in case of any tardy submissions.
4) Kindly note that the deadline for this project is Wednesday the 12th of December 2024.
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 is mentioned above.
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.
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. The electric equivalent circuit of the motor’s armature and the free-body diagram of the rotor are depicted in the accompanying figure.
In this specific scenario, we will consider the voltage source (𝑉) applied to the motor’s armature as the input to the system, while the rotational speed of the shaft (𝜃̇) 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
𝐽 moment of inertia of the rotor
𝑏 motor viscous friction constant
𝐾𝑒 electromotive force constant V
0.
𝐾𝑡 motor torque constant V
0.
𝑅 electric resistance
𝐿 electric inductance 0.8 H
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 𝑖. This relationship is expressed by the equation below, where the proportionality factor is denoted as 𝐾𝑡. This configuration is commonly referred to as an armature-controlled motor:
𝑇 = 𝐾𝑡𝑖 (1)
The back electromotive force (emf), represented as 𝑒, is directly proportional to the angular velocity of the shaft. This relationship is governed by a constant factor 𝐾𝑒 as follows:
𝑒 = 𝐾𝑒𝜃̇ (2)
In the International System of Units (SI), the constants for motor torque and back electromotive force (emf) are equivalent, meaning that 𝐾𝑡 is equal to 𝐾𝑒. For simplicity, we will denote this common constant as 𝐾 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:
𝐽𝜃̈ + 𝑏𝜃̇ = 𝐾𝑖 (3)
𝑑𝑖
𝐿 + 𝑅𝑖 = 𝑉 − 𝐾𝜃̇
𝑑𝑡 (4)
Transfer Function
By employing the Laplace transform and assuming zero initial condition, we can represent the aforementioned modeling equations, given in (3)-(4), in terms of the Laplace variable 𝑠:
𝑠(𝐽𝑠 + 𝑏)Θ(𝑠) = 𝐾𝐼(𝑠) (5)
(𝐿𝑠 + 𝑅)𝐼(𝑠) = 𝑉(𝑠) − 𝐾𝑠Θ(𝑠) (6)
By eliminating 𝐼(𝑠) between the two equations mentioned in (5)-(6), we obtain the following openloop transfer function:
Θ̇ (𝑠) 𝐾
𝑃(𝑠) = 𝑉 (𝑠) = (𝐽𝑠 + 𝑏)(𝐿𝑠 + 𝑅) + 𝐾2 (7)
In this transfer function, the rotational speed Θ̇ (𝑠) is regarded as the output, while the armature voltage 𝑉(𝑠) is regarded as the input.
Tasks
Part 1: Open-Loop System [15 marks]
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:
1.1 Substitute the numeric values of the system parameters in 𝑃(𝑠) and re-express it again. [5 marks]
1.2 Using MATLAB, code the above transfer function and find the plot of its step response of 12
volts; i.e. 𝑉(𝑠) = 12 . [5 marks]
𝑠
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? [5 marks]
Part 2: Feedforward Control System [22.5 marks]
One of the main objectives of embedding a control system is to ensure that the output signal, represented by Θ̇ (𝑠), closely resembles the input signal, represented by 𝑉(𝑠).
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.
2.1 Using the trial-and-error technique, find the value of the feedforward gain (𝐾𝑓𝑓) that satisfies the condition Θ̇ (𝑠) = 𝑉(𝑠). [7.5 marks]
2.2 Now, find the inverse of the final value of 𝑃(𝑠); i.e., calculate 𝑃(𝑠)−1 when 𝑠 = 0. [7.5 marks]
2.3 Compare 𝐾𝑓𝑓 with 𝑃(0)−1. Are they the same? Why? [7.5 marks]
Part 3: Feedback Control System [62.5 marks]
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:
The disturbance signal is modeled as a step function of magnitude 0.5 and delayed by a time constant of 𝜏𝑑 = 0.1. Thus, the step disturbance in Laplace domain is:
0.5 𝑠
𝐷(𝑠) = ℒ{0.2} = (8)
and the time delay can be expressed as a rational function using the 2nd order Padé approximation:
𝑠2 − 60𝑠 + 1200
𝑒−0.1𝑠 ≈ 𝑠 2 + 60𝑠 + 1200 (9)
The measurement unit’s filter behaves according to the following function:
ℎ(𝑡) = 𝑒−𝑡 (10)
Finally, the compensator is a PID controller whose general expression in Laplace transform is:
𝐾𝑖 𝑠
𝐶(𝑠) = 𝐾𝑝 + + 𝐾𝑑𝑠 (11)
3.1 Using Simulink, model this closed-loop system and connect the input and output signals to a two-channel scope. [10 marks]
3.2 Using MATLAB or by hand, find the overall transfer function between 𝑉(𝑠) and Θ̇ (𝑠) and the overall transfer function between 𝐷(𝑠) and Θ̇ (𝑠). Take 𝐶(𝑠) = 1; only for this task. [10 marks]
3.3 Apply the online Ziegler-Nichols (Z-N) tuning method to find the gains (𝐾𝑝, 𝐾𝑖, and 𝐾𝑑) for PController, PI-Controller, and PID-Controller. [10 marks]
3.4 Apply the online Tyreus-Luyben (T-L) tuning method to find the gains (𝐾𝑝, 𝐾𝑖, and 𝐾𝑑) for PI-
Controller and PID-Controller. [10 marks]
3.5 Check these tuned PID parameters in your Simulink model and compare between the two tuning methods for PI- and PID-Controller in terms of maximum overshoot, settling time, and steady-state error. Which one has a better result? Why is it better in your opinion? [10 marks]
3.6 Tune the built-in PID with low-pass filter block (given in Simulink) to find much better results for the PID-Controller with a maximum overshoot of 15% or less. [6 marks]
3.7 Use the optimal PID tuner (the ready-made MATLAB code is attached) to find much better results for the PID-Controller with a maximum overshoot of 15% or less. [6.5 marks]
Note: there are 3 parts, each task of part 1 weighs 5 marks, each task of part 2 weighs 7.5 marks, and each task of part 3 (except the last two tasks) weighs 10 marks, and the last two tasks of part 3 weigh 6 and 6.5 marks, respectively.
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.