Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

MPPT

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

www.ti.

com Table of Contents

Application Note
Implementing a Simple Maximum Power Point Tracking
(MPPT) Algorithm

Mike Emanuel Battery Management Solutions


ABSTRACT
Solar charging is becoming a popular way to power electronics when grid power is not easy to access. For
solar applications, a MPPT algorithm is needed to maximize the use of the solar panel. MPPT algorithms ensure
that the charger extracts the maximum power from the solar panel and delivers it to the load or charges the
battery, without collapsing the voltage at the solar panel output. The design tradeoffs of accuracy, cost, and
implementation difficulty drive the type of MPPT selected.
This application note presents two different approaches to achieve MPPT with the BQ25798 battery charger.
The first approach relies solely on the BQ25798's integrated Fractional Open Circuit Voltage (FOCV) method.
Periodically the input voltage is measured and the MPP is set based on that measurement. The second
approach uses the charger's ADC and host software to sweep the load on the solar panel in order to find a more
precise MPP.

Table of Contents
1 Introduction.............................................................................................................................................................................2
2 Solar Battery Charging with the BQ25798............................................................................................................................3
2.1 Making Use of FOCV......................................................................................................................................................... 3
2.2 BQ25798 Key Features for MPPT..................................................................................................................................... 3
2.3 BQ25798 Key Registers.....................................................................................................................................................4
2.4 BQ25798 MPPT Algorithm.................................................................................................................................................4
2.5 Using Charge Current for Algorithm Improvement.............................................................................................................5
2.6 Second Algorithm in Action................................................................................................................................................ 6
3 Summary................................................................................................................................................................................. 7
4 References.............................................................................................................................................................................. 7

List of Figures
Figure 1-1. Example of a Solar Panel’s Open Circuit Voltage and Maximum Power Point Voltage vs. Temperature..................2
Figure 1-2. P-V Curve of Solar Panel Under Increasing Irradiances........................................................................................... 2
Figure 2-1. BQ25798 Integration and Features........................................................................................................................... 3
Figure 2-2. Open Circuit Voltage Measurement.......................................................................................................................... 4
Figure 2-3. Sample BQ25798 MPPT Algorithm with ADC...........................................................................................................5
Figure 2-4. MPPT Second Approach Algorithm Example............................................................................................................6

List of Tables
Table 2-1. REG15 Key Bits for MPPT Control............................................................................................................................. 4

Trademarks
All trademarks are the property of their respective owners.

SLUAAI1 – DECEMBER 2021 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm 1
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
Introduction www.ti.com

1 Introduction
One defining parameter of a solar panel is its open circuit voltage (OCV). A solar panel’s OCV has a strong
negative correlation with the temperature of the solar cells [1] - [3]. Figure 1-1 demonstrates the relationship
between the temperature of a solar panel, its MPP voltage (Vmp), and OCV (Voc). As shown, the MPP voltage
and OCV change by the same percentage with temperature. As the temperature changes, whether by season or
climate, the OCV will also change. Having a solar charger that considers these temperature variations makes a
balanced and flexible solar charger. This means that using a MPPT method that combines the real-time OCV of
the panel with a fixed percentage is a great approach because the MPP will track the changes of the OCV as
shown by Figure 1-1.
130
Voltage Percentage Relative to Room Temperature Value (%)

Voc
Vmp

120

110

100

90

80

70
-50 -25 0 25 50 75 100
Temperature (°C)

Figure 1-1. Example of a Solar Panel’s Open Circuit Voltage and Maximum Power Point Voltage vs.
Temperature

The actual voltage a solar panel experiences is also heavily related to the load on the solar panel. For example,
a weakly irradiated solar panel will maintain its OCV based upon temperature, but the output voltage can lower
significantly when a load is applied to the panel. Figure 1-2 demonstrates the power-voltage characteristic under
different irradiance conditions. The peak in the P-V curves is known as the MPP.
To maximize the power given to the battery, a MPPT algorithm is needed. The first and simplest method is
FOCV. In this method, the OCV of the panel is measured and the input is regulated at a certain percentage of
the OCV. The second method is Perturb & Observe (P&O). In this method, you systematically perturb the input
voltage operating point until the maximum power is found. The third method is called Incremental Conductance
and collects panel voltage and current information until the derivative of the panel power with respect to voltage
is zero [4]. This would indicate the MPP has been found.

Figure 1-2. P-V Curve of Solar Panel Under Increasing Irradiances

2 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm SLUAAI1 – DECEMBER 2021
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
www.ti.com Solar Battery Charging with the BQ25798

2 Solar Battery Charging with the BQ25798

2.1 Making Use of FOCV


It is critical to find the OCV when using FOCV for MPPT in solar panels. To do this, the solar charger needs to be
able to disable its input and then measure the OCV.
The next critical element is finding the K-factor. This is a ratio between 0 and 1 that is multiplied by the OCV to
determine the input voltage operating point. Typically, this is found experimentally, and can vary depending on
the solar panel and environmental conditions.
After the OCV and K-factor have been found, they are multiplied together and this is the MPP voltage. The solar
charger needs to hold the input voltage no lower than this voltage to maximize the solar input.
The last key piece is a way to maintain the input voltage of the charger at the MPP voltage. In a solar charger,
if this feature is absent you could crash the input voltage to the converter due to the solar panel current-voltage
characteristic. It is necessary to hold the input voltage at the MPP voltage if the charger tries to draw more
current than the solar panel can source.
2.2 BQ25798 Key Features for MPPT
To implement these key requirements for a solar charger, we need a charger that:
1. Can disable its input
2. Can measure the OCV
3. Can set the K-factor
4. Can hold the input voltage at the MPP
The BQ25798 is the perfect candidate and meets all of these requirements. First, it has a Hi-Z mode that allows
disabling of the input. Second, it has an ADC that can measure the OCV. Third, it has an I2C register to set
the K-factor. Last, it has flexible Input Voltage Dynamic Power Management (VINDPM) to hold the solar panel
voltage at the MPP voltage. See Figure 2-1 for BQ25798 features that enable MPPT.
Adjustable
VINDPM
ADC measurement

VBUS
VSYS
+
±

IBUS
QBAT

Input FET ICHG


for Hi-Z mode VBAT +
Q1 Q4

Q2 Q3
Integrated
half bridge
for 4-switch BQ25798
buck-boost
converter

Figure 2-1. BQ25798 Integration and Features

SLUAAI1 – DECEMBER 2021 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm 3
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
Solar Battery Charging with the BQ25798 www.ti.com

2.3 BQ25798 Key Registers


The BQ25798 has one key register, REG15, to allow solar panel MPPT. The most important bits relate to the
K-factor control and the MPPT enable control. Table 2-1 demonstrates the key bits for MPPT control.
The K-factor control is implemented by the VOC_PCT bits and determines what percentage of the OCV of the
solar panel the BQ25798 will set the VINDPM register to. This is crucial to the operation of the panel.
To enable the MPPT, the EN_MPPT bit needs to be checked. The battery has to also be above VSYSMIN to
enable MPPT.
In addition, the VOC_RATE bits adjust how often the OCV of the solar panel is measured. The VOC_DLY bits
adjust how long the converter turns off when the solar panel OCV is measured.
Table 2-1. REG15 Key Bits for MPPT Control
Name Bits Function
VOC_PCT 7-5 To set the VINDPM as a percentage of the VBUS open circuit voltage when the VOC measurement is
done.
EN_MPPT 0 Enable the MPPT to measure the VBUS open circuit voltage.
VOC_RATE 2-1 The time interval between two VBUS open circuit voltage measurements.
VOC_DLY 4-3 After the converter stops switching, the time delay before the VOC is measured.

2.4 BQ25798 MPPT Algorithm


To ensure the MPPT algorithm fully works, the charger needs to be in VINDPM. The easiest way to ensure this
is to set the charging current to maximum. The user can configure the battery charger to start the MPPT mode.
The charger will turn off the input for the VOC_DLY time and measure the OCV. Then the charger will multiply
the chosen VOC_PCT by the measured OCV and set the VINDPM to this value. The charger will resume
charging until VOC_RATE has been met and the OCV will be measured again. The VOC_PCT chosen value will
be determined by the user’s application. See Figure 2-2 for more details of the OCV measurement.

Figure 2-2. Open Circuit Voltage Measurement

Based upon the tested solar panel's measurement results, a VOC_PCT of 81.25% optimized the input power for
a specific day. Assuming no significant change in sunlight conditions, the tested solar panel could remain at this
setting all day across different seasons in order to maximize the use of the tested solar panel.
This algorithm helps the BQ25798 to perform in different temperature and sunlight environments. As the
temperature gets colder the OCV of the panel will rise. However, the VINPDM setting will also rise because
the VOC_PCT register value remains the same. This makes the BQ25798 an ideal candidate for a solar charger
because it can handle the variations of the seasons and can be used in different climates around the world.

4 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm SLUAAI1 – DECEMBER 2021
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
www.ti.com Solar Battery Charging with the BQ25798

2.5 Using Charge Current for Algorithm Improvement


The second MPPT algorithm builds upon the first using charge current measurement. First, one K-factor is
selected and tested. After charging resumes, the charging current is recorded. Next, another K-factor is chosen
and the charge current following the change is evaluated. This process is performed iteratively across all
K-factors. Whichever K-factor gives the highest charge current optimizes the input power the most. With a nearly
constant battery voltage in the short term, the charge current is a benchmark for the output power.
Due to the presence of the VOC_PCT register bits and the ADC in the BQ25798, both the K-factor selection
and the charge current observation are realizable. A sample algorithm for finding the MPPT with one power
maximum for the BQ25798 is demonstrated in Figure 2-3. In the sample algorithm, a VOC_PCT setting above
and below the original VOC_PCT setting is tested each time and whichever of the three settings yields the most
charge current decides the next steps.

POR

Enable MPPT and


begin algorithm

Log IBAT_Original
and
IBAT_Lower< Yes
VOC_PCT_Original
IBAT_Original
<IBAT_Higher
Raise VOC_PCT and
wait for measurement
No Raise VOC_PCT
from original setting
IBAT_Higher<
Measure IBAT and
IBAT_Original
log as IBAT_Higher
<IBAT_Lower Yes

Lower VOC_PCT and No


wait for measurement
Keep original MPPT
Lower VOC_PCT
from original setting
Measure IBAT and
log as IBAT_Lower MPPT found

Figure 2-3. Sample BQ25798 MPPT Algorithm with ADC

SLUAAI1 – DECEMBER 2021 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm 5
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
Solar Battery Charging with the BQ25798 www.ti.com

2.6 Second Algorithm in Action


The second proposed MPPT solution is a combination of the FOCV and P&O methods and leverages several
key features of the BQ25798. First, the charger implements a simple yet robust MPPT feature using the VINPDM
feature of the part with a configurable K-factor. Second, the charger allows access to the charge current via the
ADC to monitor if the MPP has been reached.
Figure 2-4 shows a demonstration of this MPPT algorithm. First, the user starts with MPPT enabled at the lowest
setting of 56.25% of the open circuit voltage. Every 30 seconds, the MPPT register setting is increased and the
change in the charge current is observed. After increasing the MPPT register setting to 87.5% it was noticed
the charge current decreased, indicating the 81.25% maximizes the charge current. The host could rerun the
algorithm as the sun condition changes to find the new MPPT.

Figure 2-4. MPPT Second Approach Algorithm Example

6 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm SLUAAI1 – DECEMBER 2021
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
www.ti.com Summary

3 Summary
Two different algorithms to implement solar MPPT with the BQ25798 were discussed. They both make use of
the key VINDPM feature that allows the input voltage to be maintained at the MPP. The first method requires just
setting the VOC_PCT and keeps the VINDPM at the value of the multiplication of the OCV and the VOC_PCT.
Adding in the tracking of the charge current allows greater flexibility to find the MPP.
4 References
1. N. H. Zaini, M. Z. Ab Kadir, M. Izadi, N. I. Ahmad, M. A. M. Radzi and N. Azis, The effect of temperature
on a mono-crystalline solar PV panel, 2015 IEEE Conference on Energy Conversion (CENCON), 2015, pp.
249-253.
2. Texas Instruments, Maximum Power Point Tracking With the bq24650 Charger (pp 3-4) application report.
3. N. I. Ahmad, M. Z. Ab Kadir, M. Izadi, N. H. Zaini, M. A. M. Radzi and N. Azis, Effect of temperature on
a poly-crystalline solar panel in large scale solar plants in Malaysia, 2015 IEEE Conference on Energy
Conversion (CENCON), 2015, pp. 244-248.
4. T. Esram and P. L. Chapman, Comparison of Photovoltaic Array Maximum Power Point Tracking
Techniques, in IEEE Transactions on Energy Conversion, vol. 22, no. 2, pp. 439-449, June 2007.

SLUAAI1 – DECEMBER 2021 Implementing a Simple Maximum Power Point Tracking (MPPT) Algorithm 7
Submit Document Feedback
Copyright © 2021 Texas Instruments Incorporated
IMPORTANT NOTICE AND DISCLAIMER
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATA SHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, regulatory or other requirements.
These resources are subject to change without notice. TI grants you permission to use these resources only for development of an
application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license
is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you
will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these
resources.
TI’s products are provided subject to TI’s Terms of Sale or other applicable terms available either on ti.com or provided in conjunction with
such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for
TI products.
TI objects to and rejects any additional or different terms you may have proposed. IMPORTANT NOTICE

Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2022, Texas Instruments Incorporated

You might also like