Design of intelligent charger based on UCC3895 and PIC microcontroller

Publisher:和谐共处Latest update time:2011-05-18 Keywords:UCC3895  PIC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
0 Introduction
Modern communication equipment, electronic products, electric vehicles, UPS, etc. generally use batteries as power sources. However, most charging devices have single functions, poor versatility, and low maintenance quality, which greatly reduces the efficiency of product use. This paper uses UCC3895 and PIC microcontrollers to design and develop an intelligent charger for commonly used lead-acid batteries.
UCC3895 is a new control chip produced by TI that is dedicated to PWM phase-shifted full-bridge DC/DC conversion. It can work in voltage mode or current mode, and can realize output pulse duty cycle from 0 to 100% phase shift control. Soft start and soft stop can be adjusted as required; built-in 7MHz bandwidth error comparison amplifier; has perfect current limiting and overcurrent protection, power supply undervoltage protection, reference undervoltage protection, soft start and soft stop functions.
PICl6F917 microcontroller and UCC3895 together form the controller part. Compared with the method of using only microcontroller as the controller, it has the advantages of fast response speed, high control accuracy, simple software design, and stable operation.


l Overall structure
As shown in Figure 1, the power supply of the charger uses a switching power supply, and its input is 220V AC mains. After rectification and filtering, one part provides auxiliary working power and reference voltage for the digital devices of the control circuit, and the other part is converted into high-frequency AC through full-bridge inverter, and then high-frequency rectification and filtering are performed to provide 0-60V pulse DC for the battery. PIC and UCC3895 cooperate to form a closed-loop control circuit. By comparing the user set value and the feedback value obtained by sampling, the inverter is PWM controlled at different stages of the charging process. At the same time, PIC completes functions such as display and alarm.

2 Hardware Design
1) Main Circuit Design
As shown in Figure 2, the charging main circuit adopts phase-shifted full-bridge ZVT-PWM conversion technology, using the output capacitor of the power MOS tube and the leakage inductance of the output transformer as resonant elements, so that the four switch tubes of the FB-PWM converter are turned on in sequence at zero voltage, realizing constant frequency soft switching, reducing switching losses, and ensuring that the transformer efficiency reaches 80-90%, and there will be no problem of excessive switch stress.

2) Control circuit design
The control circuit is divided into two parts. The first part is the front-stage controller, which consists of UCC3895 and its peripheral circuits, used to generate PWM pulses to control the switch tube. The second part is the back-stage controller, which consists of PIC and TLV5618 and their peripheral circuits, and realizes the management functions of the charging process such as user settings, sampling, display, timing, alarm, main circuit on and off. [page]

0 Introduction
Modern communication equipment, electronic products, electric vehicles, UPS, etc. generally use batteries as power sources. However, most charging devices have single functions, poor versatility, and low maintenance quality, which greatly reduces the efficiency of product use. This paper uses UCC3895 and PIC microcontrollers to design and develop an intelligent charger for commonly used lead-acid batteries.
UCC3895 is a new control chip produced by TI that is dedicated to PWM phase-shifted full-bridge DC/DC conversion. It can work in voltage mode or current mode, and can realize output pulse duty cycle from 0 to 100% phase shift control. Soft start and soft stop can be adjusted as required; built-in 7MHz bandwidth error comparison amplifier; has perfect current limiting and overcurrent protection, power supply undervoltage protection, reference undervoltage protection, soft start and soft stop functions.
PICl6F917 microcontroller and UCC3895 together form the controller part. Compared with the method of using only microcontroller as the controller, it has the advantages of fast response speed, high control accuracy, simple software design, and stable operation.


l Overall structure
As shown in Figure 1, the power supply of the charger uses a switching power supply, and its input is 220V AC mains. After rectification and filtering, one part provides auxiliary working power and reference voltage for the digital devices of the control circuit, and the other part is converted into high-frequency AC through full-bridge inverter, and then high-frequency rectification and filtering are performed to provide 0-60V pulse DC for the battery. PIC and UCC3895 cooperate to form a closed-loop control circuit. By comparing the user set value and the feedback value obtained by sampling, the inverter is PWM controlled at different stages of the charging process. At the same time, PIC completes functions such as display and alarm.

2 Hardware Design
1) Main Circuit Design
As shown in Figure 2, the charging main circuit adopts phase-shifted full-bridge ZVT-PWM conversion technology, using the output capacitor of the power MOS tube and the leakage inductance of the output transformer as resonant elements, so that the four switch tubes of the FB-PWM converter are turned on in sequence at zero voltage, realizing constant frequency soft switching, reducing switching losses, and ensuring that the transformer efficiency reaches 80-90%, and there will be no problem of excessive switch stress.

2) Control circuit design
The control circuit is divided into two parts. The first part is the front-stage controller, which consists of UCC3895 and its peripheral circuits, used to generate PWM pulses to control the switch tube. The second part is the back-stage controller, which consists of PIC and TLV5618 and their peripheral circuits, and realizes the management functions of the charging process such as user settings, sampling, display, timing, alarm, main circuit on and off. [page]

Sampling part
Since PIC's RA0~RA2 can be used as A/D channels at the same time, they are used to receive the sampled battery voltage, charging current, and battery temperature, and convert them into ten-bit binary numbers for storage. The charging current is converted into a voltage value through an external detection resistor and linearly calculated, and the battery temperature is obtained through the temperature sensor TC1047.
The control output and alarm part
TLV5618 is connected to the microcontroller, serially receives the digital signal representing the user's set value sent by RB0, completes the DA conversion, and outputs the obtained analog quantity through OUTA (control voltage VKV) and OUTB (control current VKI), providing reference voltage and reference current for UCC3895 . RB3 and RB4 are set as outputs to control the main circuit on and off (SWITCH) and drive the alarm device (BUZZ). RB5 is set as input to receive the alarm signal (ALART).


3 Software Design
According to the charging characteristics of lead-acid batteries, in order to improve charging efficiency, extend battery life and achieve fast charging, this paper adopts a three-stage intelligent identification charging method. As shown in Table 1, taking a 12V lead-acid battery as an example, different conversion voltages, conversion currents and floating charge voltages are selected at different temperatures in each charging stage.
1) Main program
The charging main program mainly completes the initialization of each functional part, cyclic sampling, display output real-time status, judgment of charging stage, charging timing, fault alarm and other tasks. Its flow chart is shown in Figure 7.

2) Constant current charging stage[page]

Figure 8 is a flowchart of the constant current charging stage. The microcontroller controls UCC3895 according to the set charging current value to make the main circuit output a constant current. According to the current temperature, the conversion voltage from the constant current to the constant voltage stage is obtained by looking up the table, and the battery voltage is sampled. When the battery voltage exceeds the conversion voltage, this stage ends and enters the constant voltage charging stage; if it does not exceed, continue sampling. During the process, it is also determined whether there is an overcurrent (at this time ALART=1) or the set charging time has been reached to determine whether to stop charging.

3) Constant voltage charging stage
Figure 9 is a flow chart of the constant voltage charging stage. The microcontroller controls UCC3895 according to the current battery voltage value to make the main circuit output a constant voltage and sample the current. If the current is less than the floating charge stage conversion value, this stage ends and enters the floating charge stage; if it is not less than, continue sampling. During the process, it is also determined whether there is an overvoltage (at this time ALART=1) or the set charging time has been reached to determine whether to stop charging.

4) Floating charge stage
In this stage, the battery is fully charged. In order to make up for the energy loss of the battery self-discharge, the microcontroller controls UCC3895 according to the floating charge voltage value in Table 1 to make the main circuit output a constant voltage and give the battery a small charging current. At the same time, the charging voltage and current of the battery are judged to switch between the constant voltage charging and constant current charging stages, and the charging time is judged. If the charging time is up, the main circuit is disconnected (SWITCH=0, and charging stops. The flow chart is similar to the constant voltage stage.


4 Conclusion
The intelligent charger designed with UCC3895 and PIC microcontroller as controller can charge the commonly used 12V~48V lead-acid batteries, ensure the battery full rate, and prevent overcharging. The whole charger is small in size, simple in structure, low in cost, has good charging management and maintenance functions, and is conducive to extending the service life of the battery, with very high practical value and promotion value.

Keywords:UCC3895  PIC Reference address:Design of intelligent charger based on UCC3895 and PIC microcontroller

Previous article:Design of CAN bus ultrasonic ranging intelligent node based on PIC18F2580
Next article:Design of ABS electronic controller based on dsPIC30F5011

Recommended ReadingLatest update time:2024-11-16 20:32

PIC18**K80 Configuration Bits Explained
The pic18f66k80 configuration register configuration example is as follows:  Development environment: MPLAB X IDE  Chip: pic18f66k80    // CONFIG1L #pragma config RETEN = OFF // Vreg sleep (disable) #pragma config INTOSCSEL = HIGH //LF-INTOSC low power enable bit (LF-INTOSC is in high power mode during sleep) #pragm
[Microcontroller]
PIC18**K80 Configuration Bits Explained
PIC microcontroller vehicle instrument with CAN bus communication source code
The microcontroller source program is as follows: ;****************************************************************************** ;                                                                             * ;    Filename:        FB_ZHU_JI_PIC16LF1947.ASM                               * ;    Date:            2012.0
[Microcontroller]
PIC microcontroller C language programming (13)
  14. Red and green lights for urban traffic intersection management   At the crossroads of city streets, various indicator patterns composed of red and green high-brightness LEDs are placed to manage motor vehicles, non-motor vehicles and pedestrians so that they can pass through their respective intersections safel
[Microcontroller]
PIC microcontroller C language programming (13)
Using PIC12F675 to realize DC motor control
At present, small speed control devices with low requirements, such as plotters, use thyristor phase control to supply DC motors. Dual base transistors are also used to generate pulses. It is now possible to replace the above control with a single-chip microcomputer. There is no need for debugging during productio
[Microcontroller]
Using PIC12F675 to realize DC motor control
Two-way AC signal AD conversion based on PIC16F72 (C program)
//This is an AD conversion of two AC signals, and then compares it with the standard to determine which output is greater than the standard. The default output is channel A. #include p IC .h #include math.h #include stdio.h bank1 int re0 ; //Define the array to store the A/D conversion results, in bank0 bank1 int r
[Microcontroller]
EUSART serial communication interface of PIC microcontroller
The EUSART of the PIC microcontroller is a serial communication interface. We can use it to transmit data between different devices. Let's talk about our most commonly used serial asynchronous reception and transmission. Pins   Serial asynchronous reception and transmission. If only two pins are needed, one is for r
[Microcontroller]
EUSART serial communication interface of PIC microcontroller
How to use photoresistor with PIC through AD
The analog signal is input through the photoresistor to obtain the corresponding digital signal. Small set threshold, through the threshold can control the switch of light bulbs and other devices The analog signal input port is AN0. The analog voltage is generated by the peripheral circuit. The reference voltage is th
[Microcontroller]
How to use photoresistor with PIC through AD
Classification and characteristics of PIC 8-bit microcontrollers
The PIC microcontroller series products launched by Microchip of the United States first adopted the embedded microcontroller with RISC structure. Its high speed, low voltage, low power consumption, high current LCD driving capability and low-cost OTP technology all reflect the new trend of the microcontroller indust
[Microcontroller]
  Classification and characteristics of PIC 8-bit microcontrollers
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号