You are on page 1of 13

3782 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO.

8, AUGUST 2012

DSP-Based Probabilistic Fuzzy Neural Network


Control for Li-Ion Battery Charger
Faa-Jeng Lin, Senior Member, IEEE, Ming-Shi Huang, Po-Yi Yeh, Han-Chang Tsai, and Chi-Hsuan Kuan

Abstract—A DSP-based probabilistic fuzzy neural network such as the constant-current (CC charging), constant-voltage
(PFNN) controller to control a two-stage ac–dc charger is pro- (CV) charging, CC–CV charging, pulse charging, and reflex
posed in this study. The charger is composed of an ac–dc boost charging [2], [3]. The CC charging method is based on a fixed
converter with power factor correction and a phase-shift full-
bridge dc–dc converter. Moreover, the designed charger adopts a charging current to the batteries. The charging method is simple
constant-current and constant-voltage (CC–CV) charging strategy and easily implemented and the charging currents are equal for
to charge lithium-ion battery packs. To improve the transient of each battery in serial connection [3]. However, the main dis-
voltage regulation during load variation, a PFNN controller is pro- advantage of CC charging method is that its difficult to get a
posed to replace the traditional proportional–integral controller. precise sensing mechanism for detecting 100% state of charge
Furthermore, the discontinuous charging voltage and current dur-
ing the transition between the CC and CV charging modes can (SOC). Thus, undercharge and overcharge of secondary battery
also be reduced significantly using the proposed PFNN controller. will occur in the CC charging strategy which will shorten the
The network structure and the online learning algorithms of the performance [4]. On the other hand, the CV charging method
PFNN controller are introduced in detail. In addition, the control simply uses a constant voltage to provide charge to battery. A
performances of the proposed PFNN control system for CC–CV limitation of charging current is needed for the CV method to
charging are evaluated by experimental results.
avoid overload current, which may reduce the battery life by
increasing of the temperature [3]. Currently, the combination
Index Terms—Constant-current (CC) charging, constant- of CC and CV charging method for batteries has become the
voltage (CV) charging DSP, phase-shift full-bridge (PSFB), power mainstream approach. The CC is first applied for low SOC until
factor correction (PFC), probabilistic fuzzy neural network
(PFNN). the voltage approaches the preset value, which is determined by
the characteristics of battery. Then, a constant voltage is held
for further charging to allow the battery to be fully charged.
I. INTRODUCTION This strategy can effectively increase the charging speed, avoid
overcharge, and achieve a nearly 100% charging for a Li-ion
UE to environmental requirements, electric vehicles (EVs)
D and hybrid EVs (HEVs) have become key R&D issues in
recent years. Secondary batteries are one of the high-efficiency
battery [4].
As is generally recognized, a full-bridge converter with proper
design can possess higher power density by increasing the
energy storages used for HEVs and EVs. The lithium-ion (Li-
carrier frequency of power transistors. However, the energy
ion) battery which offers many advantages like high power
conversion efficiency is reduced due to the switching loss of
and energy density, high charging and discharging rate, low
higher switching frequency, worsening the thermal and elec-
self-discharge, less memory effect, etc. [1], has been widely
tromagnetic interference effects. In order to solve these prob-
applied in EV to replace NiCd, NiMH, and lead–acid bat-
lems, the phase-shift full-bridge (PSFB) converter with zero-
teries. A good battery charger with suitable charging meth-
voltage switching (ZVS) [5]–[7] is proposed. However, it is
ods will provide safe charging, time efficiency, and prolonged
well known that switching dc–dc converters are highly nonlin-
life for secondary batteries. To match the secondary battery’s
ear systems with parameter uncertainties and variable operating
characters, a charger may provide the following functions:
conditions. As a result, the conventional control method based
1) delivering charge to battery; 2) optimizing charging rate; and
on the averaging and linearization techniques will provide poor
3) terminating charging process. The charge can be delivered to
dynamic performance and even instable system [8], [9]. On the
battery through different charging schemes based on the battery
other hand, intelligent controllers, such as fuzzy neural network
chemistry. Many battery-charge methods have been proposed,
(FNN) are capable of both fuzzy reasoning in handling uncer-
tain information and artificial neural networks for learning from
processes [10]. Furthermore, FNNs do not require mathemat-
Manuscript received August 2, 2011; revised October 24, 2011; accepted Jan-
uary 29, 2012. Date of current version April 20, 2012. This work was supported ical models and have the ability to approximate nonlinearity
by the National Science Council of Taiwan, under Grant NSC 99-2218-E-008- and uncertainties in systems [11], [12]. Thus, there has been
003. Recommended for publication by Associate Editor D. Xu. much research focused on using FNNs to represent complex
F.-J. Lin, H.-C. Tsai, and C.-H. Kuan are with the Department of Electri-
cal Engineering, National Central University, Chungli 320, Taiwan (e-mail: plants and construct advanced controllers [13], [14] based on
linfj@ee.ncu.edu.tw; 985201009@cc.ncu.edu.tw; disgust9@hotmail.com). the back-propagation (BP) algorithm. In addition, the proba-
M.-S. Huang and P.-Y. Yeh are with the Department of Electrical Engineer- bilistic neural network (PNN) is a feedforward neural network,
ing, National Taipei University of Technology, Taipei 106, Taiwan (e-mail:
simonh@ntut.edu.tw; t8319008@ntut.edu.tw). and its structure is the neural network implementation of Parzen
Digital Object Identifier 10.1109/TPEL.2012.2187073 nonparametric probability density function estimation and

0885-8993/$31.00 © 2012 IEEE


LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3783

Fig. 1. Configuration of battery charger.

Bayes classification rule [15]. The PNNs can handle the un- TABLE I
SPECIFICATIONS OF BATTERY CHARGER
certainties in industrial applications effectively and have been
widely used in pattern classification [16], nonlinear mapping
[17], and fault detection and classification [18]. According to the
aforementioned advantages of FNNs and PNNs, the probabilis-
tic FNN (PFNN), which combines the characteristics of FNN
(degree of truth) and the characteristics of PNN (probability of
truth), has been applied in some areas such as modeling and con-
trol problems [19] and stochastic modeling [20]; however, the
aforementioned references only provide the simulated results.
Additionally, there are two parts in the inference operation of
PFNN: the Mamdani inference for the fuzzy information and the
Bayesian inference for the probabilistic information [19]; there-
fore, the PFNN can enhance the fuzzy systems applicability by
bridging the gap between fuzziness and probability.
A DSP-based PFNN is proposed in this study to control a two-
stage ac–dc charger. The active power factor correction (PFC)
front-end stage can effectively increase the power factor and
lower the harmonic interference from the other electrical facili-
ties. The PSFB dc–dc converter power stage is insulated electri- II. CIRCUITS DESCRIPTION AND MODELING
cally to charge the Li-ion battery packs using CC–CV charging The proposed battery charger shown in Fig. 1 consists of two
modes. However, it may cause problems at the switchover point stages including a single-phase ac–dc converter with PFC in
if the CC and CV modes work separately [21]. After the CC the front-end stage and a PSFB dc–dc converter in the power
mode quits operating, the current rate is related to the internal stage. Two LiMn2O4 battery packs are adopted as the load of the
resistance of the battery in the CV mode. If the internal re- charger. The specifications of the proposed charger are listed in
sistance is small, the current rate at the switchover point may Table I. All the control schemes of converters are implemented
be larger than the one in the CC mode. Moreover, since the in a DSP-based control system using TMS320F28035.
battery has been almost fully charged in the CC mode, the dis-
continuous charging voltage and current during the transition
between the CC and CV charging modes may push it into the A. PFC AC–DC Converter
dangerous region [21]. Therefore, the key technology for CC– The objective of the PFC ac–dc converter shown in Fig. 1 is to
CV charger is how to transit from the current to the voltage provide both a stable dc-link voltage Vdc 200 V and less power
sources smoothly and properly [22]. In this study, the discontin- line disturbances on utility to meet the total demand distortion
uous charging voltage and current during the transition between (TDD) of <5% specified in IEEE Std 519-1992 for the input
the CC and CV charging modes can be reduced significantly us- current [23]. In Fig. 1, vac is the grid voltage, iac is the input cur-
ing the proposed PFNN controller. Furthermore, the proposed rent, vin is the rectified voltage, RA , RB , and RC are the divider
PFNN controller can improve the transient of voltage regula- resistors, LPFC is the boost inductor, CPFC is the boost capac-
tion during load variation. In addition, in order to lower the itor, and DPFC is the boost diode. The control scheme of the
cost and the interference between different power switches, the PFC ac–dc converter is shown in Fig. 2 [24]–[26]. In Fig. 2, the
proposed control system is implemented using a single DSP control block consists of a zero cross detection circuit, a sine
TMS320F28035 to control the two-stage charger. Finally, the ef- wave lookup table, the proportional–integral (PI) current and
fectiveness of the proposed PFNN control system is verified by voltage controllers, and a pulsewidth modulation (PWM) gener-
experimentation. ator. The reference current is designed as i∗L = Icm d | sin ωt|. Its
3784 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

Fig. 2. Control scheme of PFC ac–dc converter.

amplitude Icm d is determined by the PI controller in the voltage TABLE II


CIRCUIT PARAMETERS OF TWO-STAGE AC–DC CHARGER
loop. Its phase and sinusoidal waveform are determined by the
zero cross signal and the sine wave lookup table. The dc-link
voltage Vdc is controlled by the closed-loop PI controller to

track the dc-link voltage command Vdc . The average inductor
current iL is forced to follow the reference current i∗L , which is
proportional to vin so that unit power factor can be achieved.
The switch QPFC is controlled by PWM to achieve unit power
factor. The sampling period of current controller and voltage
controller is 20 and 160 μs, respectively.

B. PSFB DC–DC Converter


The PSFB dc–dc converter shown in Fig. 1 is constructed
using a full-bridge converter, an HF transformer Tr , and an LC
low-pass filter [5]. The switches QA –QD are implemented as
full bridge by phase shifting the switching of one-half bridge
with respect to the other, and each half bridge produces square-
wave voltage. The diodes DA –DD serve as rectifier. Then, the
transmitted power is controlled by adjusting the phase-shift an-
gle φ. In steady state, the relation between Vdc and vo can be
represented by the following [5]:
φ
vo = ntr Vdc (1)
π
Fig. 3. Small-signal circuit model of PSFB dc–dc converter.
where ntr = Ns /Np is the transformer turns ratio, Np is the
transformer primary turns, and Ns is the transformer secondary perturbations of the filter inductor current îL O , dc-link voltage
turns. Moreover, if the leakage inductance is carefully designed, V̂dc , and the duty cycle of the primary voltage d. ˆ Therefore,
the switches may achieve ZVS to enhance the efficiency in light- the perturbation of the effective duty cycle of the transformer
load condition. Furthermore, a low-pass filter composed of an secondary voltage can be represented by dˆeff = dˆ + dˆi + dˆv ,
inductor Lo and a capacitor Co is applied to mitigate the current where dˆi is the effect of duty cycle modulation due to îL O and
and voltage ripples. Hence, the accurate controlled voltage can dˆv is the effect of duty cycle modulation due to V̂dc . The small-
be yielded to extend the cycle life of the battery pack. In addition, signal circuit model of the PSFB dc–dc converter is shown
in Fig. 1, Vbatt1 and Vbatt2 are the terminal voltage of the two in Fig. 3 [27]. In Fig. 3, the contributions of dˆi and dˆv are
Li-ion battery packs. To avoid the circular current between the represented by two dependent sources. Moreover, dˆi , dˆv , and
two battery packs, two external diodes Dbatt1 and Dbatt2 are Rd are represented by the following equations [27]:
added in the circuit. All the circuit parameters of the two-stage Rd Rd iL O
ac–dc charger are listed in Table II. dˆi = − îL O , dˆv = 2 V̂dc , Rd = 4n2tr Lk fs .
ntr Vdc ntr Vdc
1) Small-Signal Circuit Model: The small-signal analysis of (2)
the PSFB converter is based on a resistive load. The effective
duty cycle of the transformer secondary voltage is deff = Deff + Furthermore, the open-loop control-to-output transfer func-
dˆeff , where Deff is the duty of the operating point and dˆeff is the tion is [27]
duty cycle perturbation. The dˆeff depends not only on the duty v̂o (s)
Δ
cycle d of the primary voltage, but also on the filter inductor Gv d (s) = =
ˆ
d(s)
current iL O , the leakage inductance Lk , the input voltage Vdc ,
and the switching frequency fs [27]. Thus, the small-signal ntr Vdc
= (3)
transfer function of this converter depends on Lk , fs , and the s2 Lo Co + s((Lo /Rlao d ) + Rd Co ) + (Rd /Rload ) + 1
LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3785

Fig. 5. PFNN control block of charger.

Tv (s) can be obtained from Fig. 4(b) as follows:

Tv (s) = Gc1 (s)Gv d (s). (4)


The required specifications of the compensated open-loop trans-
fer function Tv (s) are phase margin 22.5◦ and bandwidth
28.7 Hz. The resulting compensator is Gc1 (s) = 0.01479 +
2.958/s. Moreover, for the development of current control, a
current controller Gc2 (s) is added and the function block is
shown in Fig. 4(c), where î∗o (s) is the perturbation of output
current command, îo (s) is the perturbation of output current, êi
is the perturbation of output current error, and dˆ2 is the pertur-
bation of duty cycle for the transformer primary voltage vpri at
CC control mode. All the perturbations are based on the operat-
Fig. 4. Control blocks of PSFB dc–dc converter. (a) Control scheme of PSFB ing point of the current control mode. After compensation, the
dc–dc converter. (b) Function block of voltage control. (c) Function block of
current control.
open-loop transfer function of current controller Ti (s) can be
obtained from Fig. 4(c) as follows:
1
where v̂o is the perturbation of the output voltage, and the Ti (s) = Gc2 (s)Gv d (s) . (5)
related circuit parameters of the transfer function are ntr = Rload
6/14, Rload = 4.5 Ω, fs = 50 kHz, Lk = 4.17 μH, and Rd = The required specifications of the compensated open-loop trans-
0.1532. fer function Ti (s) are phase margin 13.8◦ and bandwidth 1 kHz.
2) Control Scheme: The control scheme of the PSFB dc–dc The resulting compensator is Gc2 (s) = 0.1562 + 9.4/s.
converter is shown in Fig. 4(a) [22]. It consists of a PI cur-
rent controller for CC mode, a PI voltage controller for CV III. PROPOSED PFNN CONTROL SYSTEM
mode, and a PWM generator. In Fig. 4(a), vo∗ is the output
In the control scheme of the PSFB dc–dc converter shown
voltage command, vo is the output voltage, i∗o is the output
in Fig. 4(a), discontinuous control effort u occurs when the
current command, io is the output current, uv is the output of
control mode is switched from CC mode to CV mode resulting
voltage controller, ui is the output of current controller, and
in discontinuous charging voltage and current. Overvoltage or
u is the limited value of the uv or ui . The sampling period
overcurrent could occur which would harm the life cycles of the
of each controller is 40 μs. The command of PWM generator
battery packs because of the discontinuous control effort u . To
can be selected from CC or CV mode according to the SOC
solve the aforementioned difficulties, a PFNN control system
of the Li-ion battery packs. At low SOC, a constant current
for the CC–CV charging strategy is proposed in Fig. 5, where a
command i∗o is applied and io will track i∗o until the battery
PFNN controller is proposed for both the CC and CV charging
voltage has risen to a predetermined value. At that point, the
modes. In Fig. 5, e is the voltage or current tracking error, ė is the
CC mode will change to CV mode and the charging voltage vo
first derivative of voltage or current tracking error, u is the output
is held constant according to vo∗ and the charging current io is
of PFNN controller, and u is the limited value of u. Though
reduced.
the tracking error e is discontinuous in the switching instant
For the development of voltage control, an added PI voltage
from CC mode to CV mode, the control effort u still remains
controller Gc1 (s) is shown in Fig. 4(b), where v̂o∗ (s) is the per-
continuous. Thus, continuous charging current and voltage can
turbation of output voltage command, v̂o (s) is the perturbation
be achieved.
of output voltage, êv is the perturbation of output voltage error,
and dˆ1 is the perturbation of duty cycle for the transformer pri-
A. Probabilistic Fuzzy Neural Network
mary voltage vpri at CV control mode. All the perturbations are
based on the operating point of the voltage control mode. After The architecture of the PFNN including the input layer
compensation, the open-loop voltage control transfer function (layer 1), the membership layer (layer 2), the probabilistic layer
3786 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

Fig. 6. Probabilistic fuzzy neural network (PFNN). (a) Structure of PFNN. (b) Triangular functions in membership layer of PFNN. (c) Triangular functions in
probabilistic layer of PFNN.

(layer 3), the rule layer (layer 4), and the output layer (layer 5) 1) Layer 1 (Input Layer): In the input layer, the node input
with two inputs and one output is shown in Fig. 6(a). Moreover, and the node output are represented as follows:
the signal propagation and the basic function of each layer are
introduced in the following. xn (N ) = en (N ), n = 1, 2 (6)
LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3787

where xn represents the nth input to the input layer, and N where μIl and PlI are the input of rule layer, wj l is the connective
represents the Nth iteration. In this study, the inputs of the PFNN weight between the membership layer and the rule layer which is
are e1 (N ) = e and e2 (N ) = ė, which are the tracking error set to be 1, wk l is the connective weight between the probabilistic
and its derivative, respectively. It must be noted that e = ev = layer and the rule layer, which is also set to be 1, and μO l is the
vo∗ − vo when the battery pack is charging at CV mode, and output of the rule layer.
e = ei = i∗o − io when the battery pack is charging at CC mode. 5) Layer 5 (Output Layer): In the output layer, the node
2) Layer 2 (Membership Layer): In the membership layer, output is represented as follows:
the receptive field function is usually a Gaussian function in
FNN. In order to reduce the computational requirements in a 
9

fix-point DSP, a triangular function fm (xn ) shown in Fig. 6(b) u = y(N ) = wl μO


l (12)
l=1
is selected as the receptive field function. The equations of the
triangular function fm (xn ) are in the following: where u = y(N ) is the output of the PFNN, and wl is the con-
nective weight between the rule layer and the output layer.
μj (xn ) = fm (xn )

⎪ 0, if xn ≥ mj + σj , xn ≤ mj − σj B. Online Learning Algorithm Using Delta Adaptation Law



⎨ nx − m j + σ j
, if mj − σj < xn ≤ mj The central part of the learning algorithm for the PFNN con-
= σj

⎪ cerns how to recursively obtain a gradient vector in which each
⎪ −xn + mj + σj

⎩ , if mj < xn ≤ mj + σj element in the learning algorithm is defined as the derivative
σj of an energy function with respect to a parameter of the net-
n = 1, 2. j = 1, 2, . . . , 6 (7) work. This is done by means of the chain rule, and the method
is generally referred to as the BP learning rule. To describe the
where μj (xn ) is the output of the jth node of the nth input online learning algorithm of the PFNN using supervised gra-
variable, mj is the center of the triangle, and σj is the center’s dient decent method, first the energy function E is defined as
width of the triangle. follows:
3) Layer 3 (Probabilistic Layer): In the probabilistic layer,
1 2
the receptive field function is usually a Gaussian function. For E= e (13)
the same reason in the membership layer, the triangular func- 2
tion fp (μj ) shown in Fig. 6(c) is selected as the receptive field where e = ev if charging at CV mode and e = ei if charg-
function and its equations are as follows: ing at CC mode. Then the learning algorithm is described as
follows.
Pk (μj ) = fp (μj ) 1) Layer 5: The error term to be propagated is given by:

⎪ 0, if μj ≥ mk + σk , μj ≤ mk − σk ⎧

⎪ ⎪ ∂E ∂vo

⎨ μj − mk + σk ⎪
⎪ − , if charging at CV mode
, if mk − σk < μj ≤ mk ∂E ⎨ ∂v o ∂y(N )
= σk δo = − =

⎪ ∂y(N ) ⎪

⎪ −μj + mk + σk ⎪
⎪ − ∂E ∂io , if charging at CC mode
⎩ , if mk < μj ≤ mk + σk ⎩
σk ∂io ∂y(N )
(14)
k = 1, 2, . . . , 18 (8)
and the weights are updated by the amount:
where Pk (μj ) is the output of the kth node of the jth input ∂E ∂E ∂y(N )
variable, mk is the center of the triangle, and σk is the center’s Δwl = −η1 = −η1 = η1 δo μO
l (15)
∂wl ∂y(N ) ∂wl
width of the triangle.
4) Layer 4 (Rule Layer): In the rule layer, each node cor- where the factor η1 is the learning rate. The connective weight
responds to a rule in the knowledge base. In the Mamdani in- wl is updated according to the following equation:
ference, the node itself performs the t-norm operation (product
operation) to obtain the inference set according to the rules, as wl (N + 1) = wl (N ) + Δwl . (16)
shown in (9). The probabilistic information is processed using
the Bayes’ theorem [19] in consideration of the group of fuzzy
2) Layer 4: In this layer, the error terms to be propagated
grade being independent variables, as shown in (10). Therefore,
are given by:
the node input and the node output are represented as follows:
 ∂E ∂E ∂y(N )
μIl = wj l μj (9) δl = − =− = δo wl . (17)
∂μO
l ∂y(N ) ∂μO
l
j
 3) Layer 2: The error terms to be propagated are given by:
PlI = wk l Pk (10)
∂E ∂E ∂y(N ) ∂μO I 
l ∂μl
k
δj = − =− = δl PlI . (18)
μO I I
l = μl Pl , l = 1, 2, . . . , 9. (11) ∂μj ∂y(N ) ∂μO
l ∂μIl ∂μj l
3788 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

Fig. 7. Block diagram of DSP-based control system and flow charts. (a) Block diagram of DSP-based control. (b) Flow chart of main program, 20 μs ISR and
40 μs ISR.

Applying the chain rule, the update laws of center and center’s ∂E ∂E ∂y(N ) ∂μol ∂μIl ∂μj
width of the triangle are as follows: Δσj = −η3 = −η3
∂σj ∂y(N ) ∂μol ∂μIl ∂μj ∂σj

⎪ mj − xn

⎨ η3 δj (σ )2 , if mj − σj < xn ≤ mj
∂E ∂E ∂y(N ) ∂μol ∂μIl ∂μj j
Δmj = −η2 = −η2 =
xn − mj
(20)
∂mj ∂y(N ) ∂μol ∂μIl ∂μj ∂mj ⎪

⎩ η3 δj , if mj < xn ≤ mj + σj
⎧ (σj )2
⎪ 1

⎨ −η2 δj σ , if mj − σj < xn ≤ mj
j
= (19)

⎪ 1 where the factors η2 and η3 are the learning rates. The center of
⎩ η2 δj , if mj < xn ≤ mj + σj the triangle mj and center’s width of the triangle σj are updated
σj
LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3789

according to the following equation:


mj (N + 1) = mj (N ) + Δmj (21)
σj (N + 1) = σj (N ) + Δσj . (22)
In order to reduce the computation load, in Layer 3, the
center of the triangle mk and the center’s width of the tri-
angle σk are constants, where mk is set to be 0.4 for k =
1, 4, 7, 10, 13, 16, to be 0.5 for k = 2, 5, 8, 11, 14, 17, and to be
0.6 for k = 3, 6, 9, 12, 15, 18, and σk is set to be 1. Moreover,
the exact calculation of the Jacobian of the system, ∂vo /∂y(N )
or ∂io /∂y(N ), is difficult to determine due to the unknown dy-
namics of the PSFB dc–dc converter. To overcome this problem,
a delta adaptation law is adopted as follows [28]:
δo ∼
=
 ∗
(vo −vo )+(v̇o∗ − v̇o ) = ev + ėv , if charging at CV mode

(i∗o −io )+(i̇∗o − i̇o ) = ei + ėi , if charging at CC mode


(23)
where v̇o∗ , v̇o , i̇∗o , and i̇o represent the first derivatives of
the output voltage command, output voltage, output current
command, and output current of the PSFB dc–dc converter,
respectively.

C. Convergence Analyses of PFNN Fig. 8. Experimental results using PI voltage controller at rated load 800 W
of the two-stage converter. (a) Grid voltage and input current v a c and ia c . (b)
The selection of the values of the learning rate parame- DC-link voltage ripples and the output voltage ripples ΔV d c and Δv o .
ters of the PFNN has a significant effect on the network per-
formance. Therefore, in order to train the PFNN effectively,
the varied learning rates [29]–[31], which guarantee the con-
vergence of the tracking errors based on the analysis of a flow charts of the main program and two ISRs with interrupt in-
discrete-type Lyapunov function, are derived in the Appendix. tervals 20 and 40 μs, respectively, are shown in Fig. 7(b). Param-
Moreover, the convergence of the tracking errors can guar- eters and I/O initialization, peripheral function setting, interrupt
antee the perfect tracking of the output voltage and current setting, enabling interrupts ISRs, and main loop are included in
commands. the main program. In the 20 μs ISR, the functions of reading
feedback signals from analog-to-digital converters, using en-
IV. EXPERIMENTAL RESULTS hanced capture (eCAP) function to capture the phase of grid volt-
age signal and processing sine wave lookup table, calculating the
The adopted Li-ion battery pack is composed of 42 cells with current command, processing digital-to-analog converters out-
7 cells in series as a unit and six units in parallel. The type of put using serial peripheral interface module, and executing PI
Li-ion cell used is SANYO UR18650Y. The nominal capacity current controller of front-end stage are included. Furthermore,
and nominal voltage of the battery pack are 11.4 Ah and 25.9 V, the CC–CV charging control using the PFNN controller for the
respectively and the recommended charging voltage is 29.2 V. PSFB dc–dc converter and the online training of the PFNN are
Moreover, it is strongly recommended by the producer that the processed in the 40 μs ISR. In addition, the PI voltage con-
charging current must not exceed 11.4 A, otherwise the high trol loop in the front-end stage is executed every 160 μs in this
temperature due to high charging current will endanger the cycle ISR.
life of the battery pack. Moreover, to test the performance of The experimentation is divided into two parts. In the first
the PSFB converter, an electronic load is also adopted. The type part, the experimental results of the two-stage converter with
of electronic load is Chroma DC Load 63112 with 1200 W, the PSFB operated as a dc–dc converter using electronic load
0–240 A, 0–80 V, and 6.25 mΩ–25 Ω. are discussed. In the second part, the experimental results of the
The PI controllers and PFNN controllers are implemented in two-stage converter with the PSFB operated as a charger using
the Texas Instruments DSP TMS320F28035 shown in Fig. 7(a). battery packs as the load are discussed.
Moreover, all the control algorithms for the proposed battery
charging system are realized in the DSP using the Assembly
A. Experimental Results of the Two-Stage Converter
languages. The methodology proposed for the implementation
of the CC–CV battery charging system using PFNN consists of Fig. 8(a) shows the grid voltage vac and input current iac and
a main program and two interrupt service routines (ISRs). The Fig. 8(b) shows the dc-link voltage ripples ΔVdc and the output
3790 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

Fig. 9. Dynamic responses of a two-stage converter using PI voltage control.


(a) Negative load step using PI voltage controller. (b) Positive load step using
PI voltage controller.

Fig. 11. Efficiency curves of two-stage converter. (a) PFC ac–dc converter.
(b) PSFB dc–dc converter.

voltage ripples Δvo using the PI voltage controller at rated load


800 W of the two-stage converter. The TDD of the proposed
two-stage converter is 4.1%. The experimental results show that
the power factor is 0.998 and the efficiency η is 82.1%, ΔVdc
is about 5% of Vdc , and Δvo as also about 5% of vo . Moreover,
Figs. 9(a) and (b) and 10(a) and (b) show the dynamic responses
of the two-stage converter with step load from 100% (800 W) to
50% (400 W) and 50% to 100% of the rated load. The dynamic
responses of Vdc , vo , and iac using the PI voltage controller in
the PSFB dc–dc converter are shown in Fig. 9(a) and (b) and the
dynamic responses of Vdc , vo , and iac using the PFNN voltage
controller in the PSFB dc–dc converter are shown in Fig. 10(a)
and (b). Since the dynamic response of the PFNN controller in
the PSFB dc–dc converter is much faster than the PI voltage
controller in the front-end stage, the dynamic responses of Vdc
are deteriorated, as shown in Fig. 10(a) and (b). However, from
the comparison of the experimental results shown in Figs. 9
and 10, the dynamic responses of vo are much improved for the
Fig. 10. Dynamic responses of a two-stage converter using PFNN voltage proposed PFNN controller. It can also be seen that satisfactory
control. (a) Negative load step using PFNN voltage controller. (b) Positive load output voltage regulation results can be achieved with sinusoidal
step using PFNN voltage controller.
input current for the PFNN controller. Furthermore, for the
LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3791

Fig. 12. CC–CV control transient responses with resistive load. (a) Using CC
and CV two PI controllers. (b) Using PFNN controller. Fig. 13. CC–CV control transient responses with battery load. (a) Using CC
and CV two PI controllers. (b) Using PFNN controller.

B. Experimental Results of the Two-Stage Charger


two-stage converter, the power factor is 0.994 and the efficiency
η is 82.8% at the 400 W load condition. The efficiency curves The experimental results of the two-stage converter with the
of the PFC ac–dc and PSFB dc–dc converters are shown in PSFB dc–dc converter operated as a charger using two Li-ion
Fig. 11(a) and (b), respectively. Though the improvement of the battery packs as the load are shown in Fig. 13. The transient re-
efficiency of the converters is not the main goal of this study, sponses for the switching from CC to CV charging modes using
acceptable efficiency of the converters still can be achieved at the PI and PFNN controllers are shown in Fig. 13(a) and (b),
all load conditions. respectively. In Fig. 13(a), the control effort u is not continu-
Now, the control performance of the CC and CV charging ous during the transition of CC–CV charging modes. Therefore,
modes are discussed here. To show the effectiveness of the large transient responses occur for vo and io especially for io
proposed PFNN controller in the PSFB dc–dc converter, the due to the small internal resistance of the Li-ion battery packs.
following experiments show the transient response during the On the other hand, the control effort u is continuous during
transition of the CC and CV charging modes. Prior to the bat- the transition of CC–CV charging modes using the PFNN con-
tery charging experiment, the electronic load with constant re- trol system. Thus, the smooth responses of vo and io responses
sistance is adopted in this experimentation. Moreover, the com- can be achieved, as shown in Fig. 13(b). Moreover, to verify
mand current i∗o is set at 11.4 A in the CC charging mode, and the effectiveness of the charger using the PFNN controller, the
the command voltage vo∗ is set at 30 V in the CV charging mode complete CC–CV charging curves using the PI and PFNN con-
in the following experimentation. Furthermore, the unit of the trollers are shown in Fig. 14(a) and (b), respectively. In the CC
control effort u is in amperes in the CC charging mode and in charging mode, the charging current is 1 C. The charging mode
volts in the CV charging mode. The transient responses during is switched from CC mode to the CV mode when vo is equal
the transition from the CC and the CV charging modes using to vo∗ . The discontinuous phenomena of the charging current
the PI and PFNN controllers are shown in Fig. 12(a) and (b), and voltage shown in Fig. 14(a) using the PI controller can be
respectively. In Fig. 12(a), the undesirable and larger transient much reduced using the proposed PFNN controller, as shown in
responses of vo , io , and u occur during the transition from Fig. 14(b). Therefore, the cycle life of the battery packs can be
the CC charging mode to the CV charging mode. On the other extended. Furthermore, in Fig. 14(a) and (b), io drops gradually
hand, the experimental results using the proposed PFNN con- from 8 A after changing to the CV charging mode. In addition,
troller can solve this problem, as shown in Fig. 12(b). Therefore, for the two Li-ion battery packs, the SOC is regarded as 100%
excellent transient control performance can be achieved using at the instant io ≤ 1.2 according to its specification, and then
the proposed PFNN controller. the charger is turned OFF. Additionally, the efficiency curve
3792 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

dc–dc converter power stage charges Li-ion battery packs ef-


fectively using the CC–CV charging strategy. Moreover, the
designed PFNN controller can much improve the transient of
voltage regulation during load variation as compared to the tra-
ditional PI controller. Furthermore, the discontinuous charging
voltage and current during the transition between the CC and
CV charging modes using the PI controller are also reduced
significantly using the proposed PFNN controller. Therefore,
the Li-ion battery packs can be charged quickly, safely, and ef-
ficiently using the proposed PFNN controlled two-stage ac–dc
charger.
The major contributions of this study are: 1) the success-
ful design of the PFNN controller and its online learning al-
gorithm, in which the varied learning rates are derived using
the convergence analysis; and 2) the successful implementa-
tion of the PFNN controller for the PSFB dc–dc converter to
improve the transient of voltage regulation during load varia-
tion and to reduce the discontinuous charging voltage and cur-
rent during the transition between the CC and CV charging
modes.

APPENDIX
The purpose of the convergence analyses is to derive specific
Fig. 14. CC–CV control complete charging curves for battery packs. (a) Using learning rate coefficients for network parameters to assure the
CC and CV two PI controllers. (b) Using PFNN controller. convergence of the tracking error. Considering the energy func-
tion in (13) as a discrete-type Lyapunov function, the change in
the Lyapunov function can be written as follows:

ΔE(N ) = E(N + 1) − E(N ). (24)

Then, the linearized model [24] of the error equation can be


represented via (15), (19), and (20) by

E(N + 1) = E(N ) + ΔE(N )


9

∂E(N )
≈ E(N ) + Δwl
∂wl
l=1
6


∂E(N ) ∂E(N )
+ Δmj + Δσj
j =1
∂mj ∂σj
9

2
1 ∂E(N ) ∂y(N )
Fig. 15. Efficiency curve of two-stage charger during a full charge cycle. = E(N ) − η1
3 ∂y(N ) ∂wl
l=1

 6
2
1 ∂E(N ) ∂y(N ) ∂μj
+ E(N ) − η2
of the two-stage charger during a full charge cycle is shown 3 j =1
∂y(N ) ∂μj ∂mj
in Fig. 15.
 6
2
1 ∂E(N ) ∂y(N ) ∂μj
+ E(N ) − η3 (25)
3 j =1
∂y(N ) ∂μj ∂σj
V. CONCLUSION
A TMS320F28035 DSP-based PFNN controller has been suc- where Δwl , Δmj , and Δσj represent the change of weight
cessfully developed in this study to control a two-stage ac–dc in the output layer, and the change of the center and center’s
charger. In the two-stage ac–dc charger, the active PFC front- width of the triangle in the membership layer, respectively.
end stage can increase the input power factor and the PSFB If the learning rate parameters of the PFNN are designed as
LIN et al.: DSP-BASED PROBABILISTIC FUZZY NEURAL NETWORK CONTROL FOR LI-ION BATTERY CHARGER 3793

follows: [8] H. K. Lam and S. C. Tan, “Stability analysis of fuzzy-model-based control


systems: Application on regulation of switching DC–DC converter,” IET
Control Theory Appl, vol. 3, no. 8, pp. 1093–1106, 2009.
E(N )
η1 = (26) [9] A. Rubaai, A. R. Ofoli, L. Burge, and M. Garuba, “Hardware implemen-
9
3 l=1 ((∂E(N )/∂y(N ))(∂y(N )/∂wl ))2 + ε tation of an adaptive network-based fuzzy controller for DC–DC convert-
ers,” IEEE Trans. Ind. Appl., vol. 41, no. 6, pp. 1557–1565, Nov./Dec.
η2 = 2005.
[10] F. J. Lin, W. J. Hwang, and R. J. Wai, “A supervisory fuzzy neural network
E(N ) control system for tracking periodic inputs,” IEEE Trans. Fuzzy Syst.,
vol. 7, no. 1, pp. 41–52, Feb. 1999.
6
3 j =1 ((∂E(N )/∂y(N ))(∂y(N )/∂μj )(∂μj /∂mj ))2 + ε [11] W. Yu and X. Li, “Fuzzy identification using fuzzy neural networks with
stable learning algorithms,” IEEE Trans. Fuzzy Syst., vol. 12, no. 3,
(27) pp. 411–420, Jun. 2004.
[12] F. J. Lin, H. J. Shieh, P. K. Huang, and L. T. Teng, “Adaptive control with
η3 = hysteresis estimation and compensation using RFNN for piezo-actuator,”
IEEE Trans. Ultrason. Ferroelectr., Freq. Control, vol. 53, no. 9, pp. 1649–
E(N ) 1661, Sep. 2006.
[13] Y. Gao and M. J. Er, “An intelligent adaptive control scheme for post-
6
3 j =1 ((∂E(N )/∂y(N ))(∂y(N )/∂μj )(∂μj /∂σj ))2 + ε surgical blood pressure regulation,” IEEE Trans. Neural Netw., vol. 16,
no. 2, pp. 475–483, Mar. 2005.
(28) [14] F. J. Lin, P. K. Huang, and C. C. Wang, “An induction generator system
using fuzzy modeling and recurrent fuzzy neural network,” IEEE Trans.
Power Electron., vol. 22, no. 1, pp. 260–271, Jan. 2007.
where ε is a positive constant, then (25) can be rewritten as [15] D. F. Specht, “Probabilistic neural network,” Neural Netw., vol. 3, no. 1,
follows: pp. 190–118, 1990.
[16] K. Z. Mao, K. -C. Tan, and W. Ser, “Probabilistic neural-network struc-
ture determination for pattern classification,” IEEE Trans. Neural Netw.,
E(N + 1) ≈ ε(η1 + η2 + η3 ) vol. 11, no. 4, pp. 1009–1016, Jul. 2000.
[17] J. C. Pidre, C. J. Carrillo, and A. E. F. Lorenzo, “Probabilistic model for
E(N )ε mechanical power fluctuations in asynchronous wind parks,” IEEE Trans.
= Power Syst., vol. 18, no. 2, pp. 761–768, May 2003.
9
3 l=1 ((∂E(N )/∂y(N ))(∂y(N )/∂wl ))2 + ε [18] M. Tripathy, R. P. Maheshwari, and H. K. Verma, “Power transformer
differential protection based on optimal probabilistic neural network,”
E(N )ε IEEE Trans. Power Del., vol. 25, no. 1, pp. 102–112, Jan. 2010.
+ [19] Z. Liu and H. X. Li, “A probabilistic fuzzy logic system for modeling and
6 2
3 j =1 ((∂E(N )/∂y(N ))(∂y(N )/∂μj )(∂μj /∂mj )) +ε control,” IEEE Trans. Fuzzy Syst, vol. 13, no. 6, pp. 848–859, Dec. 2005.
[20] H. X. Li and Z. Liu, “A probabilistic neural-fuzzy learning system for
E(N )ε stochastic modeling,” IEEE Trans. Fuzzy Syst, vol. 16, no. 4, pp. 898–
+ 908, Aug. 2008.
6 2 [21] Y. Sun, X. Wu, and M. Zhao, “Li-Ion battery charger with smooth-switch-
3 j =1 ((∂E(N )/∂y(N ))(∂y(N )/∂μj )(∂μj /∂σj )) +ε
over four-stage control,” in Proc. IEEE ISIE, 2009, pp. 49–52.
[22] M. Chen and G. A. Rincon-Mora, “Accurate, compact, and power efficient
E(N ) E(N ) E(N ) Li-Ion battery charger circuit,” IEEE Trans. Circuits Syst. II, Exp. Briefs,
< + + = E(N ). (29)
3 3 3 vol. 53, no. 11, pp. 1180–1184, Nov. 2006.
[23] T. M. Blooming and D. J. Carnovale, “Application of IEEE Std 519-
According to (13) and (29), the convergence of the proposed 1992 harmonic limits,” in Proc. IEEE Pulp Paper Ind. Tech. Conf., 2006,
PFNN control can be guaranteed. Therefore, the tracking error pp. 1–9.
[24] W. Zhang, G. Feng, Y. Lui, and B. Wu, “A digital power factor correction
of the PFNN control system will converge to zero gradually. (PFC) control strategy optimized for DSP,” IEEE Trans. Power Electron.,
vol. 19, no. 6, pp. 1474–1485, Nov. 2004.
[25] K. J. Ferreira and A. E. Emanuel, “A digitally controlled unity power
REFERENCES factor compensator for pulse-burst-modulated loads,” IEEE Trans. Power
Electron., vol. 25, no. 7, pp. 1888–1893, Jul. 2010.
[1] G. C. Hsieh, L. R. Chen, and K. S. Huang, “Fuzzy-controlled Li-ion battery
[26] F. Z. Chen and D. Maksimović, “Digital control for improved efficiency
charge system with active state-of-charge controller,” IEEE Trans. Ind.
and reduced harmonic distortion over wide load range in boost PFC recti-
Electron., vol. 48, no. 3, pp. 585–593, Jun. 2001.
fiers,” IEEE Trans. Power Electron., vol. 25, no. 10, pp. 2683–2692, Oct.
[2] A. A.-H. Hussein and I. Batarseh, “A review of charging algorithms for
2010.
nickel and lithium battery chargers,” IEEE Trans. Veh. Technol., vol. 60,
[27] V. Vlatkovic, J. A. Sabate, R. B. Ridley, F. C. Lee, and B. H. Cho, “Small
no. 3, pp. 830–838, Mar. 2011.
signal analysis of the phase-shifted PWM converter,” IEEE Trans. Power
[3] C . C. Hua and M. Y. Lin, “A study of charging control of lead-acid battery
Electron., vol. 7, no. 1, pp. 128–135, Jan. 1992.
for electric vehicles,” in Proc. IEEE ISIE, 2000, vol. 1, pp. 135–140.
[28] F. J. Lin, P. H. Chou, Y. C. Hung, and W. M. Wang, “Field-programmable
[4] L. R. Chen, “A design of an optimal battery pulse charge system by
gate array-based functional link radial basis function network control for
frequency-varied technique,” IEEE Trans. Indust. Electron., vol. 54, no. 1,
permanent magnet linear synchronous motor servo drive system,” IET
pp. 398–405, Feb. 2007.
Electr. Power Appl., vol. 4, no. 5, pp. 357–372, May 2010.
[5] B. Y. Chen and Y. S. Lai, “Switching control technique of phase-shift-
[29] S. J. Yoo, Y. H. Choi, and J. B. Park, “Generalized predictive control based
controlled full-bridge converter to improve efficiency under light-load
on self-recurrent wavelet neural network for stable path tracking of mobile
and standby conditions without additional auxiliary components,” IEEE
robots: Adaptive learning rates approach,” IEEE Trans. Circuits Syst. I,
Trans. Power Electron., vol. 25, no. 4, pp. 1001–1012, Apr. 2010.
Reg. Papers, vol. 53, no. 6, pp. 1381–1394, Jun. 2009.
[6] W. Chen, X. Ruan, Q. Chen, and J. Ge, “Zero-voltage-switching PWM full-
[30] R. J. Wai and C. M. Li, “Design of dynamic Petri recurrent fuzzy neural
bridge converter employing auxiliary transformer to reset the clamping
network and its application to path-tracking control of nonholonomic
diode current,” IEEE Trans. Power Electron., vol. 25, no. 5, pp. 1149–
mobile robot,” IEEE Trans. Indust. Electron., vol. 56, no. 7, pp. 2667–
1162, May 2010.
2683, Jul. 2009.
[7] V. Kinnares and P. Hothongkham, “Circuit analysis and modeling of a
[31] C. S. Chen, “TSK-type self-organizing recurrent-neural-fuzzy control of
phase-shifted pulsewidth modulation full-bridge-inverter-fed ozone gen-
linear microstepping motor drives,” IEEE Trans. Power Electron., vol. 25,
erator with constant applied electrode voltage,” IEEE Trans. Power
no. 9, pp. 2253–2265, Sep. 2010.
Electron., vol. 25, no. 7, pp. 1739–1752, Jul. 2010.
3794 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 27, NO. 8, AUGUST 2012

Faa-Jeng Lin (M’93–SM’99) received the B.S. and Po-Yi Yeh received the M.S. degree in electrical
M.S. degrees in electrical engineering from the Na- engineering from the National Taipei University of
tional Cheng Kung University, Tainan, Taiwan, in Technology, Taipei, Taiwan, in 2007. He is currently
1983 and 1985, respectively, and the Ph.D. degree in working toward the Ph.D. degree in electrical engi-
electrical engineering from the National Tsing Hua neering at the National Taipei University of Technol-
University, Hsinchu, Taiwan, in 1993. ogy, Taipei.
From 1993 to 2001, he was an Associate Profes- From 2007 to 2009, he was a Research Engineer
sor and then a Professor in the Department of Elec- with Allis Electric Co., Ltd. His research interests
trical Engineering, Chung Yuan Christian University, include modeling, design, and digital power control
Chung Li, Taiwan. From 2001 to 2003, he was Chair- of converters especially in bidirectional power flow
person and a Professor in the Department of Electrical control.
Engineering, National Dong Hwa University, Hualien, Taiwan, where he was
also the Dean of Research and Development from 2003 to 2005 and Dean of
Academic Affairs from 2006 to 2007. Currently, he is a Chair Professor in the
Department of Electrical Engineering, National Central University, Chung Li,
Taiwan. His research interests include fuzzy and neural network control theories,
nonlinear control theories, ac and ultrasonic motor drives, DSP-based computer
control systems, power electronics, and micromechatronics.
Prof. Lin received the Crompton Premium Best Paper Award from the Insti-
tution of Electrical Engineers, U.K., in 2002, the Outstanding Research Award
from the National Science Council, Taiwan, in 2004 and 2010, the Outstanding Han-Chang Tsai was born in Taoyuan, Taiwan, in
Research Professor Award from the National Dong Hwa University in 2004, 1986. He received the B.S. degree in electrical en-
and the Outstanding Professor of Electrical Engineering Award in 2005 from gineering from the Fu Jen Catholic University, New
the Chinese Electrical Engineering Association, Taiwan. Moreover, he was the Taipei, Taiwan, in 2009, and the M.S. degree in elec-
recipient of the Distinguished Professor Award and Chair Professor Award from trical engineering from the National Central Univer-
National Central University in 2008 and 2010. He was the Chair of Power En- sity, Chungli, Taiwan in 2011. He is currently fulfill-
gineering Division, National Science Council, Taiwan, and the Chair of IEEE ing his mandatory military service, Taoyuan, Taiwan.
IE/PELS Taipei Chapter from 2007 to 2009. He is currently a member of the His research interests include DSP-based control
Fuzzy Systems Technical Committee of Computational Intelligence Society system, power electronics, battery management sys-
(CIS) and Chair of IEEE CIS Taipei Chapter. Furthermore, he is a Fellow of the tem, and intelligence control theories.
Institution of Engineering and Technology (IET).

Ming-Shi Huang received the B.S. degree in electri-


cal engineering from National Taiwan University of
Science and Technology, Taiwan, in 1987, the M.S.
degree in electrical engineering from Tatung Univer-
sity, Taipei, Taiwan, in 1991, and the Ph.D. degree in Chi-Hsuan Kuan was born in Taichung, Taiwan, in
electrical engineering from National Tsing Hua Uni- 1987. He received the B.S. degree in bioindustrial
versity, Hsinchu, Taiwan, in 2004. mechatronics engineering from the National Chung
From 1987 to 2004, he was a Researcher in the Hsing University, Taichung, Taiwan, in 2010. He
Mechanical Industry Research Laboratories of the is currently working toward the M.S. degree in the
Industrial Technology Research Institute. He is cur- electrical engineering, National Central University,
rently an Assistant Professor in the Department of Chungli, Taiwan.
Electrical Engineering, National Taipei University of Technology, Taipei, Tai- His research interests include DSP-based control
wan. His research interests include power electronics, variable-speed drives, and system, power electronics, and intelligence control
electrical power train in vehicle applications. theories.

You might also like