An-2121 Solarmagic™ Sm3320-Batt-Ev Charge Controller Reference Design
An-2121 Solarmagic™ Sm3320-Batt-Ev Charge Controller Reference Design
An-2121 Solarmagic™ Sm3320-Batt-Ev Charge Controller Reference Design
ABSTRACT
The SM72442 MPPT digital controller and SM72295 photovoltaic full bridge drivers are designed to control
high-efficiency DC/DC conversion used in photovoltaic applications. This application report details the
usage of those devices in a battery charging application. The reference design is meant to provide support
for a wide variety of implementations, however, unless otherwise noted, this reference design system is
shown charging a 12V commercial automotive lead acid battery.
Contents
1 Charging Profile ............................................................................................................. 3
2 Features ...................................................................................................................... 3
3 Quick Setup Procedure .................................................................................................... 4
4 10V Power Supply .......................................................................................................... 4
5 DC/DC Converter ........................................................................................................... 5
6 Programmable Modes/Gain Settings ..................................................................................... 6
7 Current Sense Gains and Offset .......................................................................................... 6
8 Start-Up Circuitry ............................................................................................................ 7
9 Output FET Disabling ....................................................................................................... 8
10 Output Current Regulation ................................................................................................. 9
11 Voltage Regulation .......................................................................................................... 9
12 MPPT ....................................................................................................................... 10
13 Microcontroller Functions ................................................................................................. 11
13.1 Normal Operation ................................................................................................. 11
13.2 Start-Up Operation ............................................................................................... 11
13.3 Safety Feature .................................................................................................... 11
14 Microcontroller Program Code ........................................................................................... 13
14.1 Function: check_lead_acid() .................................................................................... 14
14.2 Function: Main() .................................................................................................. 14
14.3 Function: get_i2c_data ........................................................................................... 14
14.4 Function: send_i2c_command(char number) ................................................................. 15
14.5 Function: Set_Voutmax() ........................................................................................ 15
14.6 Function: Check_low_current() ................................................................................. 15
15 Charging a Li-ion Battery ................................................................................................. 15
16 Bill of Materials ............................................................................................................. 17
17 Charge Controller System Schematic .................................................................................. 19
List of Figures
1 Lead-Acid Charging Profile ................................................................................................ 3
2 System Connection ......................................................................................................... 4
3 10V Power Supply .......................................................................................................... 4
4 DC/DC Converter Stage ................................................................................................... 5
5 Buck Gate Drive Signals From SM72442................................................................................ 5
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 1
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com
2 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Charging Profile
1 Charging Profile
Figure 1 shows the lead-acid charging profile used in this reference design.
If the battery voltage is very low, a slow charge current is applied and limited until the voltage rises above
a pre-set threshold value Vt. The full charge current is then applied. Once full charge is detected on the
voltage of the battery, the system switches to a floating charge and maintains the battery voltage at a fixed
threshold. At any time, the system will run in MPPT mode if the available power is lower than the power
required to achieve voltage or current regulation.
2 Features
• 12V Lead Acid Battery
• Vin range = 15V to 45V Vmp (50V Voc)
• Max Input Current: Isc = 11A
• MPPT algorithm for optimized photovoltaic applications
• Up to 9A charging current
• Reverse current protection
• Trickle charge and fast charge mode
• Up to 98% converter efficiency
• 14.2V max charge voltage, 13.5V floating voltage
• Output voltage set-points can be re programmed
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 3
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Quick Setup Procedure www.ti.com
4 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com DC/DC Converter
5 DC/DC Converter
The DC/DC converter stage is a step up/step down four switch converter as shown in Figure 4. This stage
transfers the power from the PV panel to the load.
C18, R11, and D15 as shown in the system schematic in Figure 20, form a snubber to reduce ripple on
the switch node on the “Buck” side of the converter. C19,R14 and D14 form a snubber circuit to reduce
ripple on the switch node of the “Boost” side of the converter.
When the circuit operates in Buck mode, the Boost switch node will issue small pulses at a lower
frequency in order to recharge the Bootstrap capacitor of Q2. Likewise, in Boost mode, the Buck switch
node will pulse to recharge the bootstrap capacitor of Q1.
Specific design guidelines for the DC/DC converter can be found in the AN-2124 Power Circuit Design for
SolarMagic SM3320 Application Report (SNOSB84) for power optimizers.
Specific timings related to the switches can be found in SM72442 Programmable Maximum Power Point
Tracking Controller for Photovoltaic Solar Panels (SNVS689) and SM72295 Photovoltaic Full Bridge Driver
(SNVS688).
The waveforms in Figure 5 through Figure 8 are examples of the switching signals of the DC/DC converter
stage.
If the system is to be used at elevated power levels causing high temperature increases in MOSFETs Q1,
Q2, Q3, and/or Q4, we recommend the use of a proper heatsink for the MOSFETs, especially at higher
ambient temperatures. Care must be taken to prevent electrical contact between the drains of the
MOSFETs in the process of proper heatsinking.
Figure 5. Buck Gate Drive Signals From SM72442 Figure 6. Switch Nodes in Buck Mode
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 5
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Programmable Modes/Gain Settings www.ti.com
Figure 7. Boost Gate Drive Signals From SM72442 Figure 8. Switch Nodes in Boost Mode
6 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Start-Up Circuitry
8 Start-Up Circuitry
If the panel voltage is lower than the battery voltage, a start up circuit (Figure 9) is required to force the
duty cycle high enough to create a flow of current to the battery. Once current is established, the circuit
can be turned off to allow MPPT operation to perform.
As long as the start-up circuit is activated, the duty cycle will increase every 1ms up to its maximum value.
However, the duty cycle will still be limited by the SM72442’s internal output voltage limiter.
The circuit is turned on when the anode of D101 and the cathode of D100 are kept at 5V. It is disabled
when that node is set at 0V.
The circuit should be disabled 5ms after current begins to flow into the battery to allow proper MPPT
operation.
If the current drops to 0 for any reason (no light, reset, and so on) the start-up circuit can be re-engaged
according to the timing diagram in Figure 10.
This circuit operates by sensing the average value of the gate voltage on the main buck switch (Q1) and
main boost switch (Q4). This value is fed back to the input current sense of the SM72442. At the same
time, a constant 4.4V is set at the input voltage sense pin of the SM72442. This results in the SM72442
measuring a virtual power that increases each time the duty cycle is increased and decreases each time
the duty cycle is decreased. The SM72442 will track this virtual power and increase the duty cycle of the
converter continuously. When this circuit is de-activated, the real input voltage and current appear at the
sensing pins of the SM72442 chip which will then perform regular MPPT operation.
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 7
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Output FET Disabling www.ti.com
Figure 11 shows the expected waveform if the panel voltage is less than the battery voltage. The panel
Vmp for this example is 12V @ 3A and the battery voltage is at 25V. Figure 12 showcases the magnified
version of the battery current shown in Figure 11.
NOTE: To highlight the boosting capability of the system and start-up circuit, the board has been re-
configured to run with a 24V battery for the experiments shown in Figure 11 and Figure 12.
Figure 11. Start-up VPanel < VBatt Figure 12. Start-up Detail of Battery Current
8 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Output Current Regulation
11 Voltage Regulation
Voltage regulation with the SM72442 is performed internally. The initial output voltage setting is set
through pin A0 (0-5V). The output voltage set point can then be changed through the I2C communication
interface by setting the register 0x03 bits 20:29 to the required voltage set point and bit 46 to 1.
Figure 13 shows the system performing voltage regulation on the battery at 13.5V.
In addition to the voltage regulation, a comparator (U11B) will reset the SM72442 and cause the DC/DC
converter to shutdown if the output voltage increases beyond the values set by R71 and R72. When the
negative input of the comparator reaches over 5V, the SM72442 controller will be reset. The default value
corresponds to 14.6V battery voltage.
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 9
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
MPPT www.ti.com
12 MPPT
The SM72442 chip will perform the MPPT function using an implementation of the Perturb and Observe
algorithm method. The MPPT algorithm will extract maximum power from the solar panel and deliver it to
the battery regardless of the panel’s characteristics. Figure 14 and Figure 15 show the effect on the panel
voltage as the MPPT algorithm maintains constant power at the panel regardless of the voltage on the
battery.
Figure 14. Battery Charging with Figure 15. Battery Charging with
VPanel < VBattery (Boost) VPanel > VBattery (Buck)
10 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Microcontroller Functions
13 Microcontroller Functions
The charge profile is implemented in the current design using a PIC16F722 microcontroller.
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 11
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Microcontroller Functions www.ti.com
12 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Microcontroller Program Code
Initialization
Set SM72442
Engage SM72442
Output Voltage to
Reset
14.3V
Yes
Vbatt>14.5V?
Defective battery
or no batter No
Vbatt<8V?
Yes
No
No
No
Set high current
limit
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 13
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Microcontroller Program Code www.ti.com
Check_Lead_Acid Check_low_current
- Sense battery voltage Check if current is very low
- Return value of battery state
Get_i2c_data
Main - Send request for data through I2C
Init()
- Call proper functions - Recover and parse data in global variable
Setup
registers - Set Voltage Levels
- Enable/disable SM72442
Send_i2c_command
Send the content of the communication
buffer on the I2C bus
Set_Vout_max
Setup I2C communication words to
change the output voltage level
controlled by the SM72442
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 15
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Charging a Li-ion Battery www.ti.com
• R103 and R104 set the voltage at the input of the microcontroller. The voltage at the input of the
microcontroller is:
R103
VA12 = VBAT x
R103 + R104
(2)
• R103 and R104 should be chosen so that the maximum expected battery voltage creates a voltage
close to 5V to maximize resolution (but less than 5V to avoid saturating the measure).
• R51, R52 and R53 are for the voltage measurement of the SM72442 and should be modified in the
same way:
R53
VAVOUT = VBAT x
R51 + R52 + R53
(3)
• R21 needs to be set to zero ohm (short).
• Once the values are picked, the proper threshold needs to be programmed through I2C. The
maximum level (0x3FF) is now VAVOUT = 5V at the input of the SM72442.
• Finally, the overvoltage protection should be adjusted to:
R72
VHARD_OVP = VBAT x
R71 + R72
(4)
• The OVP level is set at VHARD_OVP = 5v.
2. The proper voltage setpoints and charging curve need to be programmed in the microcontroller. The
initial voltage limit is set by R28 and R38. Voltage limit setpoint is AVOUT = A0. Once overridden
through I2C, the voltage at A0 is not used anymore. Hence, there is the option of setting the value
through resistors R28 and R38 or by programming it from the microcontroller into SM72442 through
I2C each time the SM72442 is reset/powered.
3. Proper current limits also need to be set if required by the battery model. The current limit value is set
when the voltage at pin 3 of U11A equals the voltage at pin 2. Hence, R111 and R112 will need to be
adjusted accordingly.
4. The software needs to be changed to follow the Li-ion charge control profile: battery voltage is set
either by hardware as stated above, which requires no action from the software, or it is set from the
microcontroller through the I2C interface similar to the Lead Acid battery.
5. Finally, the software needs to include the full State-Of-Charge cut-off: When the battery reaches its full
voltage and current has dropped below 500mA (can vary depending on battery), charge is cut-off and
the battery is considered fully charged (no trickle charge of Li-ion batteries should be done). It is
important to remember that current can drop below 500mA during the charge when solar power
becomes unavailable (low light intensity). Therefore the charge cut-off needs to be programmed to
occur only when the battery voltage is at the limit AND current has dropped below the required
threshold.
Figure 19 shows the typical charging profile for a Li-ion battery.
Voltage
Voltage Limit
Current
Charge
Cut-Off
time
16 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference SNOSB76C – December 2010 – Revised May 2013
Design Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Bill of Materials
16 Bill of Materials
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference Design 17
Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
Bill of Materials www.ti.com
18 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference Design SNOSB76C – December 2010 – Revised May 2013
Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
www.ti.com Charge Controller System Schematic
SNOSB76C – December 2010 – Revised May 2013 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference 19
Submit Documentation Feedback Design
Copyright © 2010–2013, Texas Instruments Incorporated
Charge Controller System Schematic www.ti.com
20 AN-2121 SolarMagic™ SM3320-BATT-EV Charge Controller Reference Design SNOSB76C – December 2010 – Revised May 2013
Submit Documentation Feedback
Copyright © 2010–2013, Texas Instruments Incorporated
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration
and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products Applications
Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive
Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications
Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers
DLP® Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps
DSP dsp.ti.com Energy and Lighting www.ti.com/energy
Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial
Interface interface.ti.com Medical www.ti.com/medical
Logic logic.ti.com Security www.ti.com/security
Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense
Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video
RFID www.ti-rfid.com
OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com
Wireless Connectivity www.ti.com/wirelessconnectivity
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2013, Texas Instruments Incorporated