1 Introduction

Recently, electric vehicles (EVs) application has become an emerging technology in industry [1, 2]. The high demand of EVs application have carried to the development of intermediate storage system that required bidirectional power flow [3, 4]. Hence, the dual active bridge (DAB) DC–DC converter are most chosen as power conversion platform due to high efficiency, zero voltage switching, galvanic isolation with high frequency transformer and high density [5,6,7].

Basically, the phase shift angle between primary and secondary bridge will determine the magnitude and direction of the power in DAB converter. Therefore, many modulation techniques have been applied in DAB system to control the power transmission such as single phase shift (SPS), extended phase shift (EPS), dual phase shift (DPS) and triple phase shift (TPS) [8]. The difference among the aforementioned methods is the dimension control of the angle, which SPS is one dimension control as just control one angle between primary and secondary part. On the other hand, the two dimension control of EPS required one additional inner phase shift in primary or secondary bridge compared to the single dimension control in SPS. Whereas in DPS and TPS, both modulation have inner phase shift at primary and secondary bridges, which same degree for both inner phase shift in DPS is required and different degree should be applied in TPS modulation technique. In this paper, since the limited range of EV voltage is considered, the simplest and reliable of SPS modulation techniques is chosen as this technique can guarantee better efficiency and extend the soft switching region in DAB converter [3, 6, 8].

As to produce the optimal phase shift angle, many optimization technique have been proposed such as Lagrange multiplier method, mathematical programming methods, genetic algorithm (GA) and Ant Colony Optimization (ACO) [6, 9, 10]. Due to high computational burden and complicated techniques, an offline tuning method by using particle swarm optimization (PSO) is proposed in [6] where the swarm intelligence offers the advantages of reducing the computational load, easy to implement and high convergence speed. However, since the lookup table is required to implement the offline methods, it is not so practical to certain circumstances especially with the presence of disturbance in DAB system. Thus, the online tuning method using PSO algorithm is proposed in this paper to overwhelm the demerits of the offline tuning and offers a promising high robustness system.

2 Operating principle converter

The dual active bridge converter is a kind of DC–DC converter that have bidirectional power flow, galvanic isolation with high frequency transformer, high efficiency and high density features [8, 11, 12]. The DAB is a converter based on two active bridges interconnected through a high frequency transformer as depicted in Fig. 1. It comprise of four IGBT switches at each bridges, where the diagonal switches have same signal and the rest are complement to it. In forward direction, which power is transferring from the primary side to the secondary part, the pulse of S1 and S4 (primary bridge) will lead the pulse of S5 and S8 (secondary bridge) with certain degree of phase shift angle, \( \phi \). In contrast, the secondary pulse will lead the primary pulse in backward direction where the primary bridge demands some power from the secondary part.

Fig. 1
figure 1

Dual active bridge circuit configuration

In DAB, each bridges produced symmetrical square pulses by giving 50% of duty ratio to all switches. Leakage inductance Lk is use to transfer energy from primary to secondary bridges and vice versa. Equation (1) presents the formulae to calculate the Lk. The ratio of high frequency transformer and voltage conversion ratio of DAB can be determine by using Eqs. (2) and (3) respectively. As the SPS modulation is applied, the voltage conversion ratio, k must close to one in ensuring soft switching and high efficiency in DAB [6]. Thus, the operating voltage that was considered in this paper is 250–420 V with range of k is 0.67–1.12.

$$ L_{k} = \frac{{V_{1} nV_{2} \phi_{12} }}{{2\pi f_{s} P_{12} }}\left( {1 - \frac{{|\phi_{12} |}}{\pi }} \right),\quad \phi_{12} = \phi_{1} - \phi_{2} $$
(1)
$$ n = \frac{{V_{1} }}{{V_{2} }} $$
(2)
$$ k = n\frac{{V_{o} }}{{V_{in} }}. $$
(3)

3 Particle swarm optimization algorithm

Particle swarm optimization is a swarm intelligence that was initiated by Kennedy and Ebehart [13]. The PSO imitate the behavior of birds flock where its intelligence are able to resolve any optimization problems with group communications [14]. The PSO are chosen in this research paper due to its simplicity and efficient approach [15]. Starting with the random initialization value of the phase shift angle (initial position), particles population doing the searching process. In PSO, each particles have potential solution that reflect to the optimization objective, where the minimum steady state error is the objective in this online tuning method.

Then, each particles will update its fitness and the best fitness will be keep as (best position of each particle (Pbest) in every iteration. The global best (Gbest) is the best fitness that was selected among the best particles. The position and velocity of the particles will be updated correspondingly using Eqs. (4) and (5) at the end of each iteration.

$$ v_{i} (k + 1) = wv_{i} (k) + c_{1} r_{1} \cdot \{ P_{{best_{i} }} - x_{i} (k)\} + c_{2} r_{2} \{ G_{best} - x_{i} (k)\} $$
(4)
$$ x_{i} (k + 1) = x_{i} \cdot (k) + v_{i} (k + 1) $$
(5)

where, \( w \) = inertia weight, \( c_{1} \,and \,c_{2} \) = acceleration coefficient, \( r_{1} \,and\, r_{2} \) = random number between 0–1, \( P_{{best_{i} }} \) = personal best position of particle i, \( G_{best} \) = best position of the particles and \( k \) representing the iteration number.

Lastly, the gate signal with optimal phase shift angle will be generated through IGBT switches to be used to run the DAB system accordingly. The flowchart and block diagram are represented in Figs. 2 and 3 respectively. By referring to Fig. 3, the closed loop system shows that the output voltage is being fed to the system and compared with reference voltage. The voltage error is sent into the PSO to determine the minimal steady state and optimized angle for the SPS as online tuning. The proposed method adjusts the \( \phi \) according to the change and generate the performance as desired.

Fig. 2
figure 2

Flowchart of the proposed algorithm

Fig. 3
figure 3

Block diagram of the proposed algorithm

The simulation and experimental works of 20 kHz DAB DC–DC converter was simulated and developed using the parameters as shown in Table 1. For real time verification, the DAB converter is built in Typhoon HIL-402 by using TI F28335 DSP control card as depicted in Fig. 4.

Table 1 Design parameters of DAB converter
Fig. 4
figure 4

Experimental setup

4 Results and discussion

In this paper, the DAB performance with PSO algorithm was tested under different reference voltage which are 270 V, 300 V, 365 V, 400 V and 420 V. The step change for reference voltage and input voltage has also been established to evaluate the dynamic performance of the DAB system. In SPS modulation, only one angle, \( \phi \) need to be controlled as shown in Fig. 5. The DAB performance in this research paper is analyzed in forward direction only. Hence, the primary pulse will lead the secondary pulse in all conditions with optimal phase shift angle.

Fig. 5
figure 5

Square waveform and leakage inductance current

Figures 6 and 7 demonstrate the basic PSO performance on output voltage waveforms under various voltage reference from simulation in Simulink and HIL validation results respectively. It depicts that all of the tested outputs can be regulated using the basic PSO methods and it shows that the PSO technique is valid to be used in DAB system. The steady state error produced are small, which are less than 4% in DAB as tabulated in Table 2 for both results. The good dynamic response have been proved by using PSO algorithm as the output voltages achieve the settling state around 0.15 s.

Fig. 6
figure 6

Output voltage waveform under various voltage reference (simulation)

Fig. 7
figure 7

Output voltage waveform under various voltage reference (experimental)

Table 2 Results for difference reference voltages

For input voltage step change condition, the input voltage steps is changed from 750 to 375 V for 0.07 s. Figure 8 illustrates the output voltage waveform with the input voltage step change. It demonstrates that the controller is able to regulate the output voltage after disturbance occurred at 0.25–0.32 s in simulation work. While in experimental part, the step change is applied at 2–2.07 s as presented in Fig. 9. These results show that the proposed basic PSO controller guarantees fast dynamic response which allow the output voltage to response dynamically when input voltage is reduced in certain periods of time. Table 3 presented the DAB transient response in terms of rise time and settling time to verify the dynamic performance of the proposed controller during the step change of input voltage.

Fig. 8
figure 8

Output voltage waveform with input voltage step change (simulation)

Fig. 9
figure 9

Output voltage waveform with input voltage step change (experimental)

Table 3 Dynamic response of DAB (Vin step change)

Figure 10a shows the output voltage waveform with reference voltage step change using the proposed traditional one-time execution PSO controller. It illustrates that the phase shift angle is unable to change due to the local optima problem in the PSO, which the output voltage does not follow the desired voltage after step change is applied at 0.2 s. In order to solve this issue, the basic PSO is modified to enable the system to respond to the changes. Figures 10b and 11 shows the simulation and experimental results of the output voltage waveform with reference voltage step change using the proposed self-excited re-exploration PSO controller respectively. The phase shift angle is able to change according to the applied voltage changes at 0.2 s in simulation and 2 s during experimental and generate the desired output voltage. Table 4 presented the DAB dynamic response in terms of steady-state error percentage and settling time to verify the dynamic performance of the proposed controller during the step change of the reference voltage. The DAB dynamic performance is demonstrated where the output voltages respond and changed to the desired voltage in less than 0.15 s after the reference voltage changes are applied in both simulation and experimental results as can be seen in Table 4.

Fig. 10
figure 10

Output voltage waveform with reference voltage step change (simulation). a Using traditional one-time execution PSO b. Using Self-excited re-exploration PSO

Fig. 11
figure 11

Output voltage waveform with reference voltage step change using Self-excited re-exploration PSO (experimental)

Table 4 Dynamic response of DAB (Vref step change)

5 Conclusion

This paper has proposed the online tuning phase shift angle of DAB DC–DC converter using traditional one-time execution PSO algorithm and using Self-excited re-exploration PSO algorithm. The optimal phase shift angle produced the output voltage with minimal steady state error and good dynamic response for various reference voltages, input voltage step changes and reference voltage step changes. The simulation and experimental results show that the proposed method can produce less than 5% steady state error and have good performance of transient response.