Professional Documents
Culture Documents
MICROCHIP
Grid-Connected Solar Microinverter AN1338
Reference Design Using a dsPIC® Digital
Signal Controller
AN1338
AN1338
SOLAR POWER SYSTEM EVOLUTION section.
Log Cabin System - A simple 12 volt DC system provides
PV cells have been used in many applications to gen- erate
lighting for isolated cabins. Low wattage (<100W) solar
electricity. A few of these are briefly discussed in this
AN1338
Single Inverter with Multiple DC/DC Converters -
The use of DC/DC converters per string provides enhanced
power harvesting from solar panels as shown in Figure 8.
The DC/DC converters may be separate modules or reside
within the inverter module.
This method is still susceptible to single-point-failure of the
inverter, and involves the distribution of high voltage DC
power - a potentially dangerous situation because direct
V Analog AN1
pv
I
pv7 Analog AN0
I
pv2 Analog AN2
V
y
Analog AN3
inv
V
grid Analog AN4
I
AC Analog AN5
Flyback MOSFET Gate Drive Digital PWM1H, PWM2H
Flyback Converter
PV
Voltage
45V
25 V
V.
I AC
V
inmin ' N
' V, y„.
Dut EQUATION 6:
rectified
(1-
ymaxX Where,
Dut
V
rectified = inverter output voltage
V inmin = minimum input voltage
N = transformer turns ratio
Leakage voltage depends on leakage inductance of the
Dutymax = maximum duty cycle of the flyback
transformer. The expected leakage voltage spike is 30V to
MOSFET
35V at full load condition. Therefore, the drain- to-source
voltage across the MOSFET at Vinmax = 55V and maximum
For a Vmmm of 22 VDC and a V^fed of 210V with a maximum
grid voltage is calculated, as shown in Equation 7.
duty cycle of 0.62, the turns ratio of the transformer should
be N » 6.
EQUATION 10:
P Vd 2.68
l 150
B„ 960
0.036 • ( 172000^,164
a • (î 4L 1 1000 J J G
To select the right size of the core, the area product of the EQUATION 12:
core must be calculated using Equation 11. This equation is FIGURE 23: HYSTERESIS LOOP OF
derived from the equation for flux linkage (V= N * $ and MAGNETIC CORE
represents the power handling ability of the core. Therefore,
each core has a number that is a product of its window area, B
Wa, and core cross-section area, Ac.
EQUATION 11:
EQUATION 13:
N
10 • Vinmin • (y) • Dmax 10 • 22 • ( 172000J • a62
p _ ÂB~r _ 960 • 1.6
EQUATION 15:
As primary current is very high, copper foil is used to reduce
copper loss. In addition, to have 4 kV isolation from primary
to secondary, triple insulated wire is used for the secondary
winding. The winding diagram of the transformer is shown in
Figure 24.
Output Rectifier Diode
A power diode requires a finite time to change from the
blocking state to the conduction state and
FIGURE 24: vice-versa.
TRANSFORMER
The time
ELECTRICAL AND required to
MECHANICAL change its
CONSTRUCTION
Peak Forward
EQUATION 16:Current
state, and how the diode current and voltage change during
Peak current is calculated in Equation 16 using the
the transition period affects the circuit operation. The shape
transformer current ratio and peak MOSFET current.
of the waveform (voltage and current) and transition time
depends on diode intrinsic properties. When selecting
diodes the following should be considered:
• Diode Breakdown Voltage
Transformer secondary voltage is calculated with Vs =
Vinmax * Ns/Np, at highest PV module voltage Vs = 55 * 6 =
330V, and maximum peak grid voltage Vs = 145 *
1.414 = 250V. Therefore, the maximum voltage
applied across the output rectifier diode will be Vbr =
330 + 205 = 535V, because of transformer leakage
inductance, and diode internai inductance voltage
EQUATION 18:
P
swD = Qc ' VDC ' fSW
Full-Bridge Thyristor
A thyristor is used in the full-bridge configuration to convert
the inverter output voltage/current (rectified) to sinusoidal
voltage/current. The maximum grid voltage of the SCR will
be equal to the maximum grid voltage peak. Also, the
average and peak current across the SCR will be equal to
the grid current. The S8016N thyristor from Tecco
Electronics was selected.
iC24
+12V tâïuF
C23ll
TëÜFll
v
U20 Pv_GND
/ ENB_B
ENB_A D15
PWM1H R13 R66
—►—
■
INA OUTA
AAAr GND VDD
AAA/—
1K MBR0540 p-jy 0R
Q8g
INB
MCP14E4
OUTB
K Wv
-------
12R
-----
►
C81
V +12V IfeTïüF
Pv_GND
v
C78i
“TDF1
Pv_GND
U1
V
Pv_GND
/ ENB_B
ENB_A D16
PWM2H R14 R14
■
—►— INA OUTA
AAAr GND VDD
1K MBR0540 p-jg 5
INB
MCP14E4
OUTB
K
-------------wv
12 R 0R
Q7g
-----
►
F
V
Pv_GND
V
PV-GND
+12V
C77
1uF
C68
"âlÜF
U18 D1 ->Qig
Pv_GND o 1
x- NC O NC -x MBR0540 R25A
R149 >
12R
PWM1L<- A/VV^ INA OUTA AA
O —Wv—>
R26 12R,
aaa
Q1
9 —Wv—>Q29
PWM2L<-
A/W*- INB Z
o
OUTB
R150
TC4427A D12
->Q2g
MBR0540
Pv_GND
^vw BAR45S
1K
C52 C84
470pF 470pF
R123-
180K ' V
ANA_GND
V
Pv_GND
’R102
R99< C48
8.2K< >3,3K
0.1u?
2.5V
V
ANA-GND
2.5Vref
+5V ANA
U11
L-J
r
v+
v- _
+5V ANA +3.3V DIG
Vac_N R73
—>—WV—WV—WV—WV-
200K
R74
200K
R75
200K
R76
200K
R82
-A/W-
8,2K
C94
ANA_GMD R88
fï
3.3K
R90
3.3K
V ac-Zer o-
U11.1 0,01 Cr oss
U11
uF 2
Vac_L R77 R78 R79 R80 R87 TFÜ24
R83 Q5.
—► -- WV—VVV—WV—WV“ -AA/V- —o
200K 200K 200K 200K -WV— 0R IRFS4321
MCP6022—SO8 H IC817-
16LT1G
3.3K R85 R86
■AA^ R89^
470 3.3 K 3.3K<
R81 R84-<
3.3K< K
< C46
8,2K
2^Vref ANA^GND
<
23. nF
MPPT LOOP
Two algorithms are commonly used to track the MPPT: the
Perturb and Observe (P&O) method and the Incre- mental
Conductance (IncCond) method. The reference design uses
the P&O method for MPPT. Figure 39 presents the control
flow chart of the P&O algorithm. The MPP tracker operates
by periodically incrementing or decrementing the current
reference.
In Figure 39, Set MPPT reference denotes the perturbation of the
solar array voltage, and MPPT ref+ and MPPT ref- represent the
subsequent perturbation in the same or opposite direction,
respectively. The MPPT reference decides the peak value of
sine reference current generated by the PLL.
V
The flyback transformer magnetizing inductance has been
replaced by a buck-boost inductor. The switch is given a
duty cycle, D. The goal is to drive a rectified sine wave
through the load. The topology of the buck- boost produces
an inverted output voltage. Therefore, the average current
through the diode and load should look like an inverted
rectified sine wave. The only current stiff element in the
system is the inductor (transformer magnetizing inductance).
The current in the inductor does not change instantaneously.
The load current is given by Equation 20.
From basic power electronic theory
V x = Vm * D - (1-D) * Vo
The output voltage Vo is the inverted rectified voltage
EQUATION 20:
I
load = IL( 1 - D)
obtained by directly connecting the grid via a thyristor bridge
to the output of the flyback circuit. Since we measure Vin and
Vo, we can obtain D (in Equation 22), as shown in Equation
23.
EQUATION 25:
Source Files
PVInverter main.c Main() Calls the function to configure the operating frequency
of the device and auxiliary clock.
Calls the functions for configuring I/O Ports, Timer,
ADC and PWM modules.
Calls the function to configure the state machine.
Header Files
PVinverter defines.h — Defines all the global function prototype and global
parameters.
PVinverter Variable.h — Supporting file for PVInverter Variable. c.
Sinetable512.h — Sine table for current reference.
dsp .h — Interface to the DSP Library for the dsPIC33F.
MATLAB® Modeling
The control system design for the reference design is
accomplished using the MATLAB Simulink® model. The
various system gains and the parameter values of the PI
controllers and the compensators are derived using this
model.
Figure 41 shows the solar microinverter MATLAB model,
Figure 42 shows the digital control system, and Figure 43
shows the two parallel interleaved flyback converters.
Vin^j-stecowdaryl
,
Vin
D
/
-
Vo
l
oref
Vo
I
H3
Scope2
V
grid and 1ACref Dl
In1 Outl V
o Flyback/Buck Boost 1 1
In2 Out2 Dl 10e-3s+1
Scope3
In3
In4
Out3
Out4
V
in
1oref
o
Transfer Fcn2 "Jj-
In5
In6
Out5
Out6
D2
1
10e-3s+1
Transfer Fcn3
HE! Scope6
---------------------1 ----
ADC1 Digital Controller
Scope7
MICROINVERTER REFERENCE
DESIGN INSTALLATION AND
CONFIGURATION
The reference design is intended to aid the user in the rapid
evaluation and development of a grid-Connected
microinverter using a dsPIC DSC.
This flexible and cost-effective design can be config- ured in
different ways for use with Microchip's special- ized Switch
Mode Power Supply (SMPS) Digital Signal Controllers. The
reference design supports the dsPIC33F “GS” device family.
It offers a mounting option to connect either a 28-pin QFN-S
device or a generic 100-pin Plug-In Module (PIM).
The system has two flyback circuits to control the grid
current. The rated continuous PV panel power that can be
connected to the system is 220 watts. Refer to Appendix
FIGURE 44:
Flyback Converter GRID-CONNECTED
SCR Bridge SOLAR MICROINVERTER
EMI/EMC Filter REFERENCE DESIGN BOARD
HO
El R M
«
H im iwJ 1MW J
mu m
W
RMS(1 . 1 &33A
Source
4
O S(I«T
RMS
RMS Clear
Msn  Thre
sholds
RMS[4| 1 962A
S^ufte Select: Measure Clear Mm s ThrïShûlds
4 RMS RMS
FIGURE 47: SYSTEM ISLANDING: SYSTEM TURNED OFF WHEN GRID FAILS AT PEAK OF AC
VOLTAGE
RMSili 2 031A
Sourc» S*lf£[ M*asurt Clfàf 1“' Thrssholds
4 AM& Meas
AN1338
APPENDIX A: SOURCE CODE
Software License Agreement
The software supplied herewith by Microchip Technology Incorporated (the “Company”) is intended and supplied to you, the Company's customer,
for use solely and exclusively with products manufactured by the Company.
The software is owned by the Company and/or its supplier, and is protected under applicable copyright laws. All rights are reserved. Any use in
violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the
terms and conditions of this license.
THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING,
BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS
SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL
DAMAGES, FOR ANY REASON WHATSOEVER.
AN1338
APPENDIX B: ELECTRICAL
SPECIFICATIONS
The electrical specifications for the Grid-Connected Solar
Microinverter Reference Design are provided in Table B-1.
AN1338
APPENDIX C: DESIGN PACKAGE • Bill of materials (BOM)
a Taylor coefficient
P Taylor coefficient
PV Photovoltaic
PWM Pulse-Width Modulation
Question 1: Can I connect the Solar How is efficiency measured on the Solar
Microinverter directly to the power Microinverter?
grid? The efficiency is measured by using a solar array simulator
Answer: Yes, Microchip's Solar Microinverter on the input side.
Reference Design can be connected
Using a DC power supply
directly to the power grid or for
may result in inaccurate
evaluation purposes, it can be
Question 5: data
connected to an AC source with an
external load. An oscilloscope is used to measure the
If using an AC source with an external Answer: input power by averaging the input
load, ensure that the load connected is voltage/current over several cycles (2x
greater than the power output of the line frequency present on the input
Solar Microinverter. If this precaution is signal).
not taken, the solar inverter may try to Some power meters have averaging
force current into the programmable AC capabilities, but the sample size is usually
source, and may potentially damage the too small. The output power is measured
equipment. using a power meter. An external AC
source and load is connected to the
Question 2: Can I connect a DC source to the output of the Solar Microinverter and the
input of the Solar Microinverter? MPP Tracking algorithm is disabled.
Answer: Microchip's Solar Microinverter
Reference Design has only been
designed and tested for use with PV
panels or solar array simulators.
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip's code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
ISBN: 978-1-61341-670-9