Boost PFC Converter Control Loop Design: Tutorial - December 2018
Boost PFC Converter Control Loop Design: Tutorial - December 2018
www.powersmartcontrol.com
No part of this tutorial may be reproduced or modified in any form or by any means without the written permission
of Power Smart Control S.L.
Notice
Power Smart Control tutorials or other design advice, services or information, including, but not limited to,
reference designs, are intended to assist designers who are developing applications that use SmartCtrl; by
downloading, accessing or using any particular Power Smart Control resource in any way, you (individually or, if
you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the
terms of this notice.
Power Smart Control reserves the right to make corrections, enhancements, improvements and other changes
to its resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and
judgment in designing your applications and that you have full and exclusive responsibility to assure the safety
of your applications and compliance of your applications with all applicable regulations, laws and other applicable
requirements.
Disclaimer
Power Smart Control S.L. (PSC) makes no representation or warranty with respect to the adequacy or accuracy
of this documentation or the software which it describes. In no event will PSC or its direct or indirect suppliers
be liable for any damages whatsoever including, but not limited to, direct, indirect, incidental, or consequential
damages of any character including, without limitation, loss of business profits, data, business information, or
any and all other commercial damages or losses, or for any damages in excess of the list price for the licence to
the software and documentation.
The software SmartCtrl© used in this tutorial is furnished under a license agreement. The software may be used
only under the terms of the license agreement.
Boost PFC Converter Control Loop
Design
General index
1. Introduction ............................................................................................ 4
2. Open SmartCtrl........................................................................................ 5
3. Inner Loop Design .................................................................................... 6
4. Configure the plant and the inner loop compensator ........................................ 8
5. Outer Loop Design ................................................................................. 11
6. Design results and interpretation ............................................................... 14
7. Export and simulate with Psim .................................................................... 7
Figure index
Figure 1: PFC required system........................................................................ 4
Figure 2: Ways of accessing PFC design wizard .................................................. 5
Figure 3: PFC template structure..................................................................... 5
Figure 4: Inner loop multiplier ........................................................................ 6
Figure 5: UC3854 multiplier ........................................................................... 6
Figure 6: inner loop current sensor .................................................................. 7
Figure 7: Inner current loop almost defined ....................................................... 7
Figure 8: Power plant parameters.................................................................... 8
Figure 9: Select a Type 2 for inner loop regulation .............................................. 8
Figure 10: Type 2 parameters ........................................................................ 9
Figure 11: Inner loop solution map accessing button ........................................... 9
Figure 12: inner loop solution map ................................................................ 10
Figure 13: Inner loop solution map shortcut access ........................................... 10
Figure 14: Outer loop sensor choice ............................................................... 11
Figure 15: Outer loop compensator choice ...................................................... 11
Figure 16: Outer loop single pole compensator parameters ................................. 12
Figure 17: Accessing the outer loop solution map.............................................. 12
Figure 18: Outer loop solution map................................................................ 13
Figure 19: outer loop solution map shortcut access ........................................... 13
Figure 20: SmartCtrl main utilities ................................................................. 14
Figure 21: SmartCtrl main window for inner loop ................................................ 1
Figure 22: input/output data report ................................................................. 1
Figure 23: Parametric sweep of inner loop plant parameters.................................. 1
Figure 24: SmartCtrl main window for outer loop ................................................ 2
Figure 25: line current FFT 1st and 3rd harmonics ................................................ 2
Figure 26: Red dot which represent the wta parameter ........................................ 3
Figure 27: wta parameter sweep and its effect in open loop .................................. 3
Figure 28: Detail of the blue dot of the rectified line voltage view ........................... 4
Figure 29: Gain at low frequency with two different designs .................................. 5
-2-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
Figure 30: Zero-crossing distortion with different compensators in the current loop .... 6
Figure 31: SmartCtrl exporting to Psim button .................................................... 7
Figure 32: SmartCtrl exporting to Psim options ................................................... 7
Figure 33: Psim schematic created by SmartCtrl ................................................. 7
Figure 34: Traces of the Psim simulation ........................................................... 8
-3-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
1. Introduction
SmartCtrl is a general-purpose software specifically designed for power electronics
applications. This tutorial is intended to guide you, step by step, to design the control
loops of a PFC (power factor correction) boost converter with the SmartCtrl Software.
The example used in this tutorial is the PFC boost converter circuit that comes with the
PSIM example set. The PSIM schematic is shown in Figure 1.
The circuit includes the inner current loop and the outer voltage loop. The current loop
regulator parameters are the resistance R11, R2_i and the capacitances C2_i, C3_i; and
the voltage regulator parameters are the resistance Rset and the capacitance Css and
Ct, highlighted in the red boxes of Figure 1.
The objective of this tutorial is to design the current and voltage regulators using the
SmartCtrl software. The design procedure is described below.
-4-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
2. Open SmartCtrl
To begin the design process, in SmartCtrl, click on the icon highlighted in top part of
Figure 2 or click on the icon of tool bar shown in bottom part of Figure 2.
It can also be accessed with the Design menu, Predefined topologies ->AC/DC
converters ->PFC Boost converter. Whatever the access selected, the window of
Figure 3 will appear.
In Figure 3 it has been grouped all the fields depending if they are for inner or outer
control loop.
As it can be seen from Figure 3, the PFC boost converter is controlled by a double loop
control scheme. The inner loop is a current loop, and the outer loop is a voltage loop.
Note that the PFC boost converter design must be carried out sequentially. SmartCtrl
program will guide you through this process.
-5-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
Attending to the schematic in Figure 1, the parameters of the multiplier for this
particular example are the ones shown in Figure 5.
Notice that KFF, the feed-forward gain, is the ratio between the rms input voltage
and the average input voltage to the multiplier. It has been calculated applying [1].
2 𝑅𝑅𝑅𝑅𝑅𝑅3
𝐾𝐾𝐾𝐾𝐾𝐾 = √2 · · [1]
𝜋𝜋 𝑅𝑅𝑅𝑅𝑅𝑅1+𝑅𝑅𝑅𝑅𝑅𝑅2+𝑅𝑅𝑅𝑅𝑅𝑅3
Where RFF1, RFF2 and RFF3 are the resistances with the same name which can be
observed in the schematic of Figure 1.
-6-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
2. Select the gain of the inner loop current sensor. See Figure 6.
Select the value of the resistor which will act as the current sensor (Rs). This resistor
is represented in the picture of the power plant.
3. At this point, the inner current loop is almost defined as it can be seen in Figure 7.
To finish this loop, it is necessary to define the plant topology. To do so, select a
boost PFC (resistive load) plant.
-7-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
Note that wta(º) is the line angle in degrees at which the plant operation point is
calculated. The current loop is designed considering the plant calculated for this
operating point. This line angle is indicated as a red dot in the output panel that
represents the Rectified voltage and external compensator output.
2. Select a Type 2 as the current regulator as done in Figure 9 and configure it as it has
been done in Figure 10.
-8-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
It is necessary to know the ramp waveform (Figure 10) in order to specify the
parameters Vp (maximum voltage), Vv (minimum voltage) and tr (rise time). These
parameters configure the converter modulator whose gain is important in the inner
loop calculation.
3. Select the crossover frequency and the phase margin with the help of the solution
map. See Figure 11 and Figure 12.
SmartCtrl provides a guideline and an easy way of selecting the crossover frequency
and the phase margin through the Solution Map. See Figure 12.
-9-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
In the Solution Map, each point within the white area corresponds to a combination
of the crossover frequency and the phase margin that leads to a stable solution. In
addition, when a point is selected, the attenuation given by the sensor and the
regulator at the switching frequency is provided.
To carry out the selection, click a point within the white area, or it can be done
manually by entering the crossover frequency and the phase margin and clicking in
update.
In this design it has been selected a cross frequency of 1kHz and a Phase Margin of
50 degrees. This parameter pair will generate a -39dB of attenuation at switching
frequency.
Once the crossover frequency and the phase margin are selected, the Solution Map
will be shown on the right side of the converter input window. If, at any time, the
user wants to modify the crossover frequency or the phase margin, just click on the
white area of the Solution Map, as shown in Figure 13.
- 10 -
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
1. Select the voltage sensor. In this particular example, the option which has been
chosen is “Regulator embedded voltage divider”. See Figure 14.
In this example, the regulator type is a “Single pole_unatt”, with the parameters
specified in Figure 16.
- 11 -
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
The crossover frequency and the phase margin of the outer loop must be selected. A
Solution Map is also provided to help select a stable solution. Press the Solution map
(outer loop) button (Figure 17) and the solution map will appear (Figure 18).
- 12 -
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
Select a point by clicking within the white area, and click OK to continue. In this
tutorial a cross frequency of 10Hz and a Phase Margin of 60 degrees have been
selected.
Once the crossover frequency and the phase margin are selected, the Solution Map
will appear on the right side of the converter input window. If, at any time, these two
parameters need to be changed, just click in the white area of the Solution Map, as
shown in Figure 19.
The program will automatically show calculated control system. By means of Bode
plots, Nyquist plot, etc. its stability and dynamic response can be checked.
- 13 -
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
a) Check the steady state waveforms – they are shown in the right part. They are
quite useful to identify possible oscillations, noises or waveform distortions.
For example, if PI compensator would have been chosen for the outer loop, a
current distortion will appear in these traces. See Figure 21.
b) Check the response to a small signal step – It gives information about the
response of the system, if it is underdammed or overdamped. See Figure 21.
c) Check the bandwidth with the bode plots – The crossover frequency in open loop
is pretty close with the closed loop bandwidth. See Figure 21.
d) Check the stability with the Nyquist plot – it provides quick-understanding info
about the stability of the system. See Figure 21.
e) View the input and output reports. See Figure 20 and Figure 22.
f) Perform a parametric sweep. See Figure 20 and Figure 23.
g) Modify input data for inner loop, outer loop and plant. See Figure 20.
h) Visualize data from input or output loop. See Figure 20.
i) Export to Psim. This functionality has been covered in point 5.
Note that the solution map window is always enabled so the user is always capable of
changing the pair Phase Margin – crossover frequency.
- 14 -
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Figure 21: SmartCtrl main window for inner loop
Figure 22: input/output data report
The Bode plots and Nyquist plot corresponding to the inner loop are shown in Figure 21,
as well as the graphical information regarding the outer loop is shown in Figure 24. In
the right panel “Method”, three parameters appear:
• Loop gain (2fl)(dB). This is the attenuation in dB achieved by the open loop
transfer function at twice the line frequency (100 Hz or 120 Hz). It should be
high for the inner loop and low for the outer loop.
Boost PFC Converter Control Loop
Design
• Stim. Vo (V). As the outer loop compensator is a single pole, it has not enough
low frequency gain to archive the reference value. That is why SmartCtrl provides
the output voltage value obtained with this compensator.
By clicking with the right button on the line current panel, a floating menu appears,
offering different choices. One of them is the command FFT, which displays a new
window with a plot that shows the amplitude of the first and third harmonics of the line
current, to provide more information regarding the harmonic distortion. See Figure 25.
-2-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
The red dot in the rectified line voltage plot of Figure 26 originally corresponds to the
line angle wta specified in the plant window (Figure 8). This dot can be moved by clicking
and dragging, and the Bode plot and the attenuation parameters will refresh, as the
plant is recalculated considering the equivalent DC/DC converter for that particular
operating point. An example is depicted in Figure 27, modifying the line angle. Notice
how the open loop transfer function.
Figure 27: wta parameter sweep and its effect in open loop
-3-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
The blue dot in the rectified line voltage plot (Figure 26) is placed in the line angle that
corresponds to the maximum current ripple through the inductor. Some results obtained
by simulating the schematic in Figure 1 are depicted in Figure 28.
To illustrate the meaning of this blue dot. In the left part of Figure 28, the voltage at the
output of the rectifier and the current through the inductor are shown, indicating the
position of the blue dot.
In the right part of the figure, a detail of the same waveforms is shown, as well as the
oscillator ramp and the internal compensator output.
The plot that shows the oscillator ramp and the inner compensator output is useful to
determine whether there could be oscillations. If the slopes of both functions are too
similar, there could be more than one intersection per period, causing oscillations.
Inductor current
Oscillator ramp
PSIM
Figure 28: Detail of the blue dot of the rectified line voltage view
When a single-pole is used as the compensator type of the outer loop, there are some
advantages regarding the line current distortion. On the other hand, the actual output
voltage may not be exactly the specified due to the low gain at low frequency. This
causes some differences between the SmartCtrl results and the simulated results. This
problem can be easily compensated by the user by increasing the output voltage
reference.
However, if the actual output voltage is 10% higher than the specified one, SmartCtrl
will provide a warning message, recommending the user to check this point and increase
low frequency gain. In this particular example, the actual output voltage is 415 V instead
the specified 400 V, and consequently there is not any warning message.
-4-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
To illustrate this problem related with the low gain of the outer loop at low frequency, a
new outer loop has been design, with different phase margin (PM) and cross-over
frequency (fc).
The comparison between this design and the original one can be found in Table 1. The
new design has a lower gain at low frequency and the measured output voltage is 448V,
that is, more than 10% higher than the specified value. See Figure 29.
Inner loop (type 2) fc=15 kHz Inner loop (type 2) fc=15 kHz
PM=60º PM=60º
PM=40º PM=60º
-5-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
Regarding the inner control loop, it is very important to consider that it is necessary to
have a high enough bandwidth in order to follow the rectified sinusoidal reference. If the
cross-frequency of the current loop is not high enough, a zero-crossing distortion in the
input current will happen.
In these occasions, the results provided by SmartCtrl may not match the actual results,
as the line current waveform is calculated by SmartCtrl assuming that the current loop
follows perfectly well the reference generated by the outer loop.
To illustrate this problem related with the low cross-over frequency of the inner loop, a
comparison between several designs of the inner loop with different phase margin (PM)
and cross-over frequency (fc). The input current waveforms achieved with these designs
are compared in Figure 30.
Notice the important zero-crossing distortion for cross-over frequency lower than 5 kHz,
and how the distortion is minimized as the cross-frequency is increased.
Figure 30: Zero-crossing distortion with different compensators in the current loop
-6-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
-7-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com
Boost PFC Converter Control Loop
Design
As it can be seen, the schematic of Figure 33 is exactly the objective of this tutorial. In
Figure 34, it appears the output voltage and the rectified input current.
As it can be seen, his current has no any distortion or ripple and the output voltage is
exactly what was specified in SmartCtrl.
-8-
Boost P F C C onverter C ontrol Loop Design Tutorial V 3.0 – December 2018 www.powersmartcontrol.com