Elec/Tele/Phtn 4123 Electrical/Telecommunications Design Proficiency Lab2
Elec/Tele/Phtn 4123 Electrical/Telecommunications Design Proficiency Lab2
Elec/Tele/Phtn 4123 Electrical/Telecommunications Design Proficiency Lab2
1. The desired voltage should be set from using Matlab via DAQ
2. Model the plants in order to design control system.
3. The system should work in load and non load situation. small value resistor will
be used in load situation.
4. Overshoot is smaller than 5 percent
5. Controller should have zero stead state error.
6. The speed and output voltage measurements should be displayed in Matlab.
Components
1 Bread Board
1 Motor Generator Set
Resistors
Capacitors
4 LM741 op-amp
High level design
reference controll current The verificatio
input er amplifier plant n
Desired voltage is from DAQ analogue pin and set up in Matlab. With DAQ,
analogue port can output exactly the same value we input to the computer.
So it can be used as reference voltage to the control system.
A negative feedback control system will be implemented in this design. The
output of generator plant connects back to control system. Before starting the
controller designing, the transfer function of generation plant is required to
model first. And base on the transfer function, controller needs to calibrate
the whole system to match the requirements above, such as minimizing
steady state error and overshoot.
The motor driver current amplifier is given. The whole controller system is
purely voltage-voltage type. Which means that the input and output of system
is demonstrated by voltage. The system cannot guarantee the current is high
enough to drive the motor. So the motor driver current amplifier is necessary
to be used between controller and plant.
The generator plant includes a motor and a generator. The motor represents
turbine and the speed is controlled by the voltage of input. The transfer bar
will put generation in motion.
In the display and verification part, the speed of generation and the output
voltage provided by generator should be displayed in Matlab via DAQ. The
method of speed measurement can be achieved by using a light and a photo
transistor. Both transistor output and output of generator connect to DAQ
analogue input.
Low Level Design
MODELLING
Function Derivation
Before the controller is implemented, the transfer function of system(including
generator and motor) needs to be estimated first.
Graph 1
Ra : resistance of the armature winding
La : inductance of the armature winding
Graph 1 show the equivalent circuit of motor. the assumption is that
permanent magnet which can provide fixed field is in the motor. So current
from power supply only flow into armature circuit.
Theoretical deviation will show below by some assumption.
motor J generator
E out(s ) s+a 2
=
E (s) s+ a1
So the assumption of transfer function is first order equation.
Low Pass Filter
When the input is constant 5 volt DC from DAQ analog output through motor
deriver. We can see the output is noisy. A digital filter will be implemented in
order to reduce noise.
Now the transfer function will be estimated by using step response graph.
t
V =V 0(1e ) ;
t t
V V 1
=1e =V 0te ( 2 )
V 0
delta beta is the gap between real result and estimate result.
V V
c = [ V 0 ] ; X =[ ];
V 0
Plant K*G(s)
Motor Motor And
Controller Generator
Driver
C(s)
Feedback
Graph 5. Block Diagram H(s)
19.598
With the transfer function of Plane known, KG ( s )= , the PID
s+22.22
controller has the transfer function know, C(s) = Kp + Kd*s +Ki/s. According to
block diagram, the open loop transfer function with controller is
19.598(Kp+ Kds+ Ki /s)
KC ( s)G( s)= . ----
s+22.22
Since there is a unity feedback H(s) = 1 ----
KC ( s )G( s)
The overall transfer function is T ( s )= . ----
1+ KC ( s )G ( s )H (s)
By substituting in and into equation , the closed-loop transfer function
can be found.
Ki = 55.57
Kp = 1.1899
Kd = 0
23.320( s+ 2.383)
T ( s )= 2
s +45.54 s+ 1089.061
Routh Table
S2 1 1089.061
S1 45.54 0
S0
[ 1
45.54
1089.061
0 ] [ 1
45.54
1089.061
0 ]
45.54 45.54
= 1089.039 =0
According to the Routh table, there is no sign change, therefore the system is
stable.
Circuit Design
Op-amp
2
Feedba
ck
Output
Vref
Op-amp Op-amp
1 4
Op-amp
3
Graph 8. Circuit Diagram
1 R2
As Ki= and Kp= . With Ki and Kp known, taking one value of
R 3C R1
the components in each equation, the other value could be calculated.
The op-amp 1 is an error amplifier, the non-inverting node of op-amp 1 is
connected to the reference voltage connected to the output of DAQ, the
inverting node of op-amp 1 is connected to the feedback. The output will be
Gain*(Vref-Vfeedback). In our case, Gain =1.
Graph 9. Effect of Ki Kp
The op-amp 2 and 3 is a proportional controller and an integral controller
respectively. The proportional controller decreases rising time and integral
controller eliminates steady state error.
Since the gain of op-amp 2 and 3 are negative, therefore a summing and
inverting op-amp 4 is added in the circuit.
Since the value of Ki and Kd is known.
1 R2
Ki= Kp=
R 3C R1
The final values are C = 10uF, R3 = 1.8K, R1 = 10K, R2 = 12K.
Decoupling capacitor
A decoupling capacitor is the capacitor connect between power supply lines
and the ground. Decoupling capacitor not only can kill the noise from power
supply lines, it also can cancel noise from other circuit elements which is
shunted to the capacitor. Controller based on negative feedback still is
sensitive to the noise. decoupling capacitor is necessary to add in the circuit.
There are three 220uF decoupling capacitors, through V++ and G, V-- and G,
V++ and V-- respectively.
Speed Measurement
The method of speed measurement is using photo transistor and a light. The
light is connect to 5V power supply instead of theatrical value 9V from
datasheet, because it is impossible to connect a 9V from power supply in this
lab. A disc with an empty hole is on the transfer bar that between motor and
generator. An light and an photo transistor are on different sides of the disc.
Light will go through the hole on the disc once a rotation and transistor will
receive input. The graph below shows components inside the plants and the
circuit should be partially developed. DAQ analogue input pin would get 5V
signal once photo transistor receive light.
Table 2: Nominal and Actual Component Values and Design Parameters of low
pass filter
Small
Decrease Increase Decrease Degrade
change