Escolar Documentos
Profissional Documentos
Cultura Documentos
(a)
(b)
(c)
prevents the current from surpassing the rated armature current. Inputs of the control
unit are the armature current, armature speed, speed change, and change in armature
current. The control unit outputs the PWM pulses to set the armature voltage to the
desired voltage to achieve the desired armature speed. The control unit also outputs the
control values used to generate the PWM pulses. The DC motor is connected to a 30
volt battery with a linear load torque. The DC motor subsystem block, illustrated in
Figure 2 (a), contains a DC-DC converter connected to the PWM pulses to provide the
desired armature voltage. The motor inputs are the torque load, PWM pulses, and
battery voltage. The motor outputs are the armature current, armature speed, armature
voltage, and the field voltage.
(a)
(b)
Figure 2. (a) Complete Electric Vehicle Simulink Model and (b) Simulink
Simulation Results
Figure 2 (b) illustrates the simulation results with the reference speed and
engine speed. The results, with a reference speed of 300 RPM, illustrate that the motor
is able to achieve the desired speed within 0.3 seconds with a 10 RPM overshoot. These
results are used as the baseline for the SIL and HIL evaluation of the RT-Sim.
The outputs of the current controller are Pulses and Ctrl. The Pulses output is
the multiplexed values of the PWM generator fed to the IGBT of the DC Motor
subsystem. The Ctrl output is a bus creator that is used for debugging purposes during
the simulation.
Figure 5 illustrates the contents of the regulation switch, which regulates the
armature current request going into the current controller. The inputs of the regulation
switch subsystem are d_i, If, T*, N*, d_N, and Ia*(p.u.). The d_i input is the current
feedback from the current controller. The input is the field current feedback from the
DC motor. The T* input is the reference speed that the motor should go. The d_N input
is the difference between the armature and reference speeds. The Ia*(p.u.) input is the
generated armature current output generated by the speed controller.
The outputs of the regulation switch subsystem are Ia*(p.u.), d, and Ref. The
Ia*(p.u.) output is the regularized armature current feeding into the current controller.
The d output is the multiplication value of the current feedback and the field current,
used for debugging purposes. The Ref. output is the reference speed, used for
debugging purposes.
1.4.
Figure 6 illustrates the design of the current controller. The current controller
subsystem utilizes a PI controller and a PWM generator which outputs PWM pulses
into the DC motor subsystem. The inputs of the current controller are Ia and Ia*(p.u.).
The Ia input is the armature current feedback from the DC motor. The Ia*(p.u.) input is
the requested armature current which is output by the speed controller.
The current controller subsystem outputs are PWM_Ref, Pulses, SawTooth,
DCycles, Ia*, and d_i. The PWM_Ref output is the Vcontrol output of the PI controller.
The Pulses output is the PWM output, which is comprised of four multiplexed values
with PWMs 1 and 4 having the same value and PWMs 2 and 3 having the same value.
The SawTooth output is the saw tooth generator value and is used for debugging
purposes. The DCycles output is the duty cycle used by each of the four PWMs. The Ia*
output is the converted Ia*(p.u.) value, which is the speed controller output. The d_i
output is the difference between the armature current and the current output by the
speed controller.
1.5.
1.6.
Figure 8 (a) illustrates the content of the PWM generator of the current
controller subsystem. The input of the PWM subsystem is Ref, which is the equivalent
voltage level that the subsystem should output to the DC motor. The outputs of the
PWM subsystem are Pulses and SawTooth. The Pulses output is the multiplexed values
of the Ref input compared to the value of the sawtooth generator. The SawTooth output
is the saw tooth generator value that is used to determine the Pulses output.
Figure 8 (b) illustrates the content of the Sawtooth Generator subsystem of the
PWM subsystem. The Sawtooth Generator subsystem has no inputs and one output,
Out. The Out output is the value of the saw tooth generator that is to be compared with
the Ref. input.
(a)
(b)
Figure 8. Content of (a) PWM Subsystem, (b) Sawtooth Generator, (c) Duty Cycle
Va- inputs are connected to the battery and provide the IGBT with the voltage level to
be regulated.
The DC motor subsystem provides three outputs, Motor, Wm, and If. The
Motor output provides the speed and controllers with feedback values corresponding
with the current state of the motor. The Wm outputs the armature speed in radians per
seconds.
(a)