1 Introduction

As a result of increasing environmental concerns, green energy has been highlighted as a promising solution for future development in times of energy crisis. Recently, the PEMFC has been attracted as a prominent and potential candidate to alternatively replace the common use of the energy storage devices such as a BAT or SC [1]. Besides, the PEMFC earns worthy properties of lower operating temperatures, higher power density, and higher energy conversion in comparison with other types of fuel cells [2].

Despite earning prominent advantages, slow response and incapability of recovering exceeded energy have become the main technical limitations of the PEMFC. As a result, these drawbacks come up with high maintenance costs, short lifetime [3], and restrict widespread applications for standalone usage. Therefore, it is necessary to develop an integration of the PEMFC with other interconnected electrical storage devices. In this configuration, the PEMFC serves as the primary power supply while the electrical storages function as secondary units to support the main source. Conventionally, either BATs or SCs, or both are employed as supplements due to their compatible characteristics for hybridization. Several works investigated the superiority of the PEMFC combined with BAT and SC. For example, Yi et al. conducted a hybrid PEMFC-SCs for a construction machine with consideration of EMS for long-term usage [4]. In [5, 6], Li et al. proposed the configuration where the fuzzy logic control was deployed for energy and battery management for hybrid electric construction vehicles. The hybridization of both BATs and SCs is also taken into consideration for hybrid electric vehicles [7,8,9], construction machinery [10], hybrid tramway powertrain [11], and some other fields of automation or power systems. The BATs obtain the ability of high energy density in comparison with the SCs that have the ability of fast dynamics. Thus, the BATs are capable of supplying energy in the case of the endurance process and the SCs are suitable for absorbing transient peak power where fast responses are required. Consequently, the integration of BATs and SCs with the PEMFC can exhibit better performance, reduce the system size, solve problems of fuel economy, and prolong devices’ lifespan. However, problems along with the advantages of the HPS include: design of an EMS for efficient power-sharing as high-level control and maintain the DC bus voltage at a constant and output performance in low-level control.

The first concern, in the field of designing EMS strategies, has recently become an interesting topic for researchers. Truong et al. [12] employed the fuzzy-based EMS, developed based on rule-based methodology from the previous work [4], to satisfy the power demand, reduce the hydrogen consumption and maintain storage devices’ state of charge (SOC) for excavators. With the same objective, Dao et al. [13] developed a fuzzy-based EMS with the integration of a backtracking search algorithm and sequential quadratic programming to adjust the fuzzy membership functions (MFs); thus, reducing the fuel consumptions and enhancing supplements qualification. Ahmadi et al. constructed a fuzzy-based EMS with a genetic algorithm for an integrated PEMFC-BATs-SCs to improve the hybrid vehicle behaviors [14]. In [15], Ameur et al. exploited the master–slave model-based fuzzy logic strategy (FLS) to design an EMS for efficient energy management and component lifespan prolonging. Marzougui et al. [16] deployed the flatness control-based FLS and rule-based methodology towards hybridization of the PEMFC, ultra-capacitor, and BAT for an electric vehicle. Come up with the idea of the HPS management, Han et al. developed a strategy for multi-source management of PEMFCs-BATs-SCs on hybrid tramways [17]. The author employed a pair of set PEMFC-BAT-SC systems to generate multiple motor units with self-convergence droop control for power distribution among all devices. Consideration of renewable energy resources, Benlahbib et al. [18] proposed a hybrid topology where wind and solar power captured from wind energy and solar panels systems were interconnected with FC and BAT. Then, a control strategy of maximized power point tracking algorithm based on FLS for pulse width modulation (PWM) was developed to support the alternating current load. In [19], Arevalo et al. investigated two configurations toward hybrid tramway in which renewable resources (solar and hydrokinetic energy) and grid were included in the hybrid PEMFC-BAT-SC configuration. Such reports revealed a variety of feasible configurations with certified effectiveness of using the HPS for industrial automation systems.

Following the historical literature of the EMS designs, the main task is to distribute the power flow between the PEMFC and other energy sources by executing the current regulation while maintaining a constant DC bus voltage through a converter. Despite achieving good performance under arbitrary working conditions, most presented works did focus on designing EMSs as high-level concern without dedicatedly considering the problems of DC/DC converter behaviors and DC bus voltage stabilization due to the variation of the load power and its influence on the whole system. Besides, regarding the physical characteristics of the switching regulator for PWM rectifiers, voltage ripple also occurs [20, 21]; thus, reducing the system efficiency and voltage instability subjected to the load variations [22]. Additionally, in terms of the signal processing, some works assigned the pair of voltage and current measured in the input side of the DC/DC converter (power source side), whereas others allocated the pair of voltage and current measured in the output side (DC bus side), as feedback signals. Due to the efficiency and characteristics of the DC/DC converter, this makes differences in the system output performance for different measured point locations, which was ignored in published works. Therefore, it is necessary to investigate the influence of different signal measurement points of each element on the whole system qualification.

Motivated from the above analyses, in this paper, an FD-based EMS combined with an adaptive PID control method is proposed. A mini-scaled fuel cell HPS is also designed to verify the proposed algorithms. The main contributions of this paper are summarized as follows:

  1. 1.

    A novel FD-based EMS is proposed to define three frequency ranges of required currents based on the different characteristics of energy sources.

  2. 2.

    The influence of signal measurement locations is investigated to compare the system performance with different measured positions at two sides of the converter.

  3. 3.

    Adaptive proportional-integral-derivative (PID) controls are employed for the steady DC bus voltage control by using the BAT, and for the current control loops with two separated operation modes for bidirectional buck-boost converters, to enhance the system qualification.

  4. 4.

    Simulations and experiments are implemented to verify the aforementioned concerns.

The rest of this paper is organized as follows. The hybrid power system configuration is described in Sect. 2. In Sect. 3, the proposed energy control strategy including frequency decoupling method, DC bus control loop, and pulse width modulation operating modes are introduced to coordinate the power between fuel cell, BAT, supercapacitor into load power demand. Simulation and experimental results are given in Sect. 4 to validate the effectiveness of the proposed strategy. Finally, the conclusions of this paper are presented in Sect. 5.

2 Hybrid Power System

2.1 System Configuration

Due to the slow dynamic response, using a standalone PEMFC cannot adapt to abrupt load variations and store the energy regeneration from the load system. For this reason, the SC and BAT are supplemented to supply the lacking power in the incipient stage, the transient or peak power demands, or store the regenerative energy. Both BAT and SC are devices that can charge, discharge, and store energy in which the BAT, with high capacity and low energy leakage, is supposed as an ideal electrochemical storage system, whereas the SC is appropriate for high power in a short time. Therefore, a combination of PEMFC, BAT, and SC is expected to construct a fast dynamics system, enhance working performance, optimize the fuel savings, reduce the PEMFC size and power consumption. In this system, the PEMFC operates with the lowest frequency power source, while the SC performs with the highest frequency and BAT works at the frequency between PEMFC and SC. The power responses of the PEMFC, BAT, SC are described in Fig. 1.

Fig. 1
figure 1

The response of PEMFC and energy sources [23]

The suggested topology for a hybrid power system is described in Fig. 2. The PEMFC is used as a primary energy source, and the BAT and SC function as the secondary energy storage system (ESS). All these sources are connected to the DC bus by using DC/DC converters with a parallel configuration to transfer the power flow to the load with the charge and discharge modes. In detail, a boost converter controls the fuel cell output voltage to adapt with the reference value. A bidirectional converter transfers the power flow in both directions to the ESS for delivery and recovery cycles. Besides, a DC/AC inverter is also incorporated to convert the DC energy to AC energy and feed it into the powertrain.

Fig. 2
figure 2

Configuration of the proposed hybrid power system

For simulation purposes, the dynamics of each subsystem component will be modeled first to understand the system behavior and for an effective EMS design. The detailed characteristics of each power source and DC/DC converter are described in the next sub-sections.

2.2 PEMFC Characteristic

The PEMFC model that composes of a stack module as a core of the fuel cell system, auxiliary components of air delivery, hydrogen supplying, water-cooling circulation, and humidification is acquired in MATLAB/Simulink Simscape toolbox, which neglects the dynamics of reactant flow inside the electrode [24]. In this model, system parameters can be easily set up from the datasheet or by using the simple polarization curve of the testing process.

From the dynamic model of PEMFC in [25] and the simulation and experiment test results in [26], the cell output voltage can be expressed as follows:

$$V_{cell} = E_{oc} - V_{act} - V_{r}$$
(1)

where \(V_{cell}\) is the cell output voltage (V), \(E_{oc}\) is the open-circuit voltage (V), \(V_{act}\) is the activation voltage loss (V), \(V_{r}\) denotes the resistive and diffusion voltage loss (V).

The open-circuit voltage can be presented by:

$$E_{oc} = K_{c} E_{n}$$
(2)

where \(K_{c}\) is the voltage constant at the nominal condition of operation (V), \(E_{n}\) is the Nernst voltage (V).

The activation voltage loss due to reaction kinetics at low current densities can be calculated through

$$V_{act} = A\ln \left( {\frac{{i_{FC} }}{{i_{0} }}} \right).\frac{1}{{\frac{{sT_{d} }}{3} + 1}}$$
(3)

where A is the Tafel slope (V), \(i_{0}\) is the exchange current (A), \(i_{FC}\) is the PEMFC output current (A), \(T_{d}\) is the cell settling time to a current step (s).

The resistive and diffusion voltage loss of PEMFC due to the internal resistance of the electrolyte membrane is expressed as the following equation:

$$V_{r} = r_{ohm} i_{FC}$$
(4)

where \(r_{ohm}\) is the combined cell and diffusion resistance (Ω).

The cell voltage is assumed to display a delay that is roughly equivalent to three times the time constant when the cell current change rapidly. Then, the total voltage is generated from combining the number of cell N as follows:

$$V_{FC} = N.V_{cell}$$
(5)

where \(V_{FC}\) is the stack output voltage of the PEMFC (V), N is the total number of cells.

During the operation, the output power of PEMFC is not only supplied to the DC bus but also partly used to operate the auxiliary systems such as cooling and temperature management systems. Thus, the supplied power from the PEMFC stack is obtained by:

$$P_{stack} = \eta V_{FC} i_{FC}$$
(6)

where \(P_{stack}\) is the supplied power of the PEMFC stack (W), \(\eta\) represents the efficiency of the PEMFC power source.

Based on the input parameters of the model, the simulated polarization curves of the PEMFC stack can be described as in Fig. 3.

Fig. 3
figure 3

Polarization curves of stack voltage–current and stack power–current

2.3 Energy Storage System

2.3.1 Battery Model

The BAT is used as a secondary power source of the hybrid energy system. During the operation, it compensates for the excess power that PEMFC cannot supply. Besides, it also works as a storage device with a large capacity. In this paper, the Simscape model of a BAT that uses the Shepherd curve-fitting model is employed as follows [27]:

$$V_{BAT} = E_{0} - K\frac{Q}{Q - it}i^{*} - R_{b} i_{BAT} + A_{b} \exp \left( { - B.it} \right) - K\frac{Q}{Q - it}it$$
(7)

where \(V_{BAT}\) is the BAT voltage (V), \(E_{0}\) is the BAT constant voltage (V), \(Q\) is the maximum BAT capacity (Ah), \(R_{b}\) is the BAT internal resistance (Ω), B is the exponential capacity (Ah−1), \(i_{BAT}\) is the BAT output current (A), it is the extracted capacity (Ah), \(i^{*}\) is the low-frequency current dynamics (A). Besides, the term \(K\frac{Q}{Q - it}it\) is referred to as polarization voltage and \(K\frac{Q}{Q - it}\) is the polarization resistance.

The SOC of the BAT can be obtained from the relationship of the current charge and the maximum capacity by:

$$SOC_{BAT} \left( t \right) = SOC_{BAT} \left( {t_{0} } \right) - \frac{1}{Q}\int\limits_{{t_{0} }}^{t} {i_{BAT} \left( \tau \right)} d\tau$$
(8)

where \(SOC_{BAT}\) is the SOC level of the BAT (%), t is the instant time, and \(t_{0}\) is the initial time.

From the input parameters of the BAT model, the simulation result of discharge curves is portrayed in Fig. 4.

Fig. 4
figure 4

Polarization curves of nominal current discharge characteristic

2.3.2 Supercapacitor Model

The SC is an electric double-layer capacitor that can store and release fast energy due to its high capacitance. This component should be properly designed to compensate for the PEMFC dynamics during the load surge. The output voltage (V) of an elementary SC can be estimated as follows:

$$V_{SC} = \frac{{Q_{T} }}{{C_{T} }} - R_{SC} i_{SC}$$
(9)

where \(i_{SC}\) is the SC output current (A), \(R_{SC}\) is the SC module resistance (Ω), \(C_{T}\) is the total capacitance (F), and \(Q_{T}\) represents the total electric charge (C).

The SC model in the Simscape toolbox is designed by using the Stern model [28]. The total capacitance with an SC module of cells is given by

$$C_{T} = N_{SC} .C$$
(10)

where \(N_{SC}\) presents the total number of SC cells, \(C\) is the capacitance (F) of a cell that can be expressed as [28]

$$C = \left( {\frac{1}{{C_{H} }} + \frac{1}{{C_{GC} }}} \right)^{ - 1}$$
(11)

where \(C_{H}\) and \(C_{GC}\) are the Helmholtz and Gouy–Chapman capacitance (F), respectively.

Next, the total electric charge is formulated by:

$$Q_{T} = \int\limits_{{t_{0} }}^{t} {i_{SC} \left( \tau \right)d\tau }$$
(12)

The SOC of the SC is estimated as the relationship between the current and the maximum capacity. This SOC value is computed by using the following equation:

$$SOC_{SC} \left( t \right) = SOC_{SC} \left( {t_{0} } \right) - \frac{1}{{Q_{SC} }}\int\limits_{{t_{0} }}^{t} {i_{SC} \left( \tau \right)d\tau }$$
(13)

where \(SOC_{SC}\) is the SOC level of the SC (%), represents the maximum SC capacity (Ah).

2.4 DC/DC Converter Design

In the HPS, DC/DC converters are designed to control the current of PEMFC/BAT/SC as well as DC bus voltage. Based on the load power demand, the boost mode of the converter is employed to convert the lower voltage on the PEMFC side to the higher voltage on the DC bus side whereas bidirectional mode (buck-boost) of the converter is utilized to convert the voltage in two directions between BAT or SC and DC bus with the boost mode for discharging operation and buck mode for the charging operation.

Generally, there are two types of DC/DC converter models, usually used for simulation activities, which are the average-value model and the switching model. In the first model, the controlled voltage/current sources are used to replace the switching component. The advantage of the average-value model is the neglect of switching harmonics and less time-consuming. However, it cannot observe all the switching actions and converter dynamics. The switching model, on the contrary, regards switching harmonics and losses of switching components. This model is mainly utilized for experimental boards designed with a PWM control strategy. Due to the low sampling time requirement, all the switching actions and the converter dynamics can be investigated. In this paper, the switching model of DC/DC converter is used and an adaptive control loop is designed to generate the control signal for switching components. The structures of DC/DC converters based on the switching model are shown in Fig. 5.

Fig. 5
figure 5

The switching model of DC/DC converters with boost mode and bidirectional mode

When designing a DC/DC converter, the necessary parameters of input voltage range, nominal output voltage, maximum output current should be defined to calculate maximum switching current, the range of recommended inductor values, and the capacitance of output capacitors. This calculation is important to select the suitable components that match the requirements of the HPS. Besides, a duty cycle plays an important role to control the converter according to reference current in buck mode or boost mode. This duty cycle can be calculated by:

$$D_{buck} = \frac{{V_{out} }}{{V_{in\_\max } \eta_{buck} }}$$
(14)
$$D_{boost} = 1 - \frac{{V_{in\_\min } \eta_{boost} }}{{V_{out} }}$$
(15)

where \(D_{boost}\) is the duty cycle of boost mode (%), \(D_{buck}\) is the duty cycle of buck mode (%), \(V_{in\_\min }\),\(V_{in\_\max }\), and \(V_{out}\) are the minimum, maximum input voltage and output voltage (V) of the converter, respectively. \(\eta_{buck}\) and \(\eta_{boost}\) are the efficiencies of the converter which are estimated to equal 90% for buck mode and 80% for boost mode, respectively.

3 Energy Control Strategy of HPS

In this work, the proposed control strategy is based on the FD and adaptive PID control to determine the required currents of three energy sources, as well as to guarantee the stable DC bus voltage by using the BAT. The overall proposed control strategy is described in Fig. 6. In this figure, the rule-based power regulator block is applied to define three power levels of the PEMFC based on the magnitude of load profile. This fuel cell power divides by the measured fuel cell voltage to generate the input current for the lowpass filter 1 (LPF 1). Besides, no matter how load changes, the DC bus control loop allows the system to guarantee DC output voltage steadily based on its reference values. The output of the DC bus voltage control block is the input current for the lowpass filter 2 (LPF 2). Finally, the current control loops must be implemented to separate two operation modes of bidirectional buck-boost converters.

Fig. 6
figure 6

The proposed energy management strategy for the hybrid power source

The load power demand and total power of energy sources should be defined to ensure the balanced power-sharing of the system at all times as Eq. (16).

$$P_{load} = P_{FC} + P_{ESS}$$
(16)

where \(P_{load}\) is the load power demand (W), \(P_{ESS}\) is the power of the energy storage system including BAT and SC (W).

3.1 The Frequency Decoupling Strategy

Based on the dynamic characteristics of energy sources, the Rangone diagram [29] is usually used to define the specific power and specific energy of each device. This diagram shows the performance of energy and power density of one specific source. According to these two densities, a specific frequency as the ratio between power density and energy density is designed to define the frequency ranges allowed by each power source as follows:

$$f_{c} = \frac{{\rho_{power} }}{{\rho_{energy} }}$$
(17)

where \(f_{c}\) is the cut-off frequency of each source (Hz), \(\rho_{power}\) is the power density of each source (W/kg), \(\rho_{energy}\) is the energy density of each source (J/kg).

From the Rangone diagram, the fuel cell has the lowest-frequency range, the BAT can adapt to the faster frequency range than the fuel cell, and the SC can deal with the highest-frequency range. Therefore, The FD method is used to decompose the load power demand into three frequency bands. This method has the advantages of short-time calculation and simple design for experimental applications. To implement the FD algorithm, the LPF is chosen as a transfer function as follows:

$$G(s) = \frac{1}{{T_{s} s + 1}}$$
(18)

with:

$$T_{s} = \frac{1}{{f_{c} }}$$
(19)

where \(T_{s}\) is the time constant.

In this proposed strategy, two LPFs are designed with two different cut-off frequencies \((f_{c1} ,f_{c2} )\). The LPF 1 is used to generate the lower frequency current of the PEMFC \((I_{FC\_ref} )\) which is fed to the boost converter of the fuel cell. The LPF 2 is applied to achieve the faster frequency current \((I_{BAT\_lpf} )\) to be used in the bidirectional converter of the BAT.

Because the PEMFC is a primary source in the HPS, the fuel cell power distribution is regulated to match the load power demand as well as ensure the working point of PEMFC in the high-efficiency range following the U-I polarization curves. From the working profile of load, the power demand is divided into different levels to define the appropriate power levels for the dynamics of PEMFC. In this work, a load power demand in [16] is applied and partitioned into three levels: high, medium, low as shown in Fig. 7 in which PEMFC will provide maximum power \((P_{FC\_\max } )\), nominal power \((P_{FC\_nom} )\), or normal power depending on each load power level.

Fig. 7
figure 7

The required power levels of load

The working principle of the rule-based power regulator is portrayed in Fig. 8. In this flow chart, the required power of the PEMFC is defined depending on the power levels of the load. Firstly, the voltage and current of load are measured to calculate the power demand from the system. In the case of a low level, where the load power is lower than the nominal PEMFC power \((P_{load} < P_{FC\_nom} )\), the PEMFC is a primary source that sufficiently provides power to satisfy the load demand \((P_{FC} = P_{load} )\), while BAT and SC are only used to compensate for the PEMFC dynamics in the transient state when an abrupt change of load power occurs. Besides, extra power generated from PEMFC can also be used to charge the BAT or SC if needed. The medium level is determined when the load power demand exceeds the nominal value but is still less than the maximum power of the PEMFC \((P_{FC\_nom} \le P_{load} < P_{FC\_\max } )\). In this case, the PEMFC output power is regulated at the nominal value \((P_{FC} = P_{FC\_nom} )\), and the BAT and SC are enabled to complement the residual induced from insufficient power of the PEMFC via the converters as discharging and charging processes. At the high level, if the load power demand is greater than the maximum power of the fuel cell \((P_{load} \ge P_{FC\_\max } )\), the PEMFC releases the maximum value \((P_{FC} = P_{FC\_\max } )\), and the remaining load power will be provided by the BAT and SC, depending on the status of these devices and the particular working conditions.

Fig. 8
figure 8

The flowchart of rule-based fuel cell power distribution

The required PEMFC current \((I_{FC} )\) can be calculated from the required power \((P_{FC} )\) divided by the measured voltage \((V_{FC\_mea} )\). However, to match the characteristic of the PEMFC, this current will be filtered by using the LPF 1 which can decompose low-frequency current and high-frequency current as follows:

$$I_{FC\_ref} = G_{1} (s).I_{FC}$$
(20)
$$I_{FC\_res} = I_{FC} - I_{FC\_ref}$$
(21)

where \(G_{1} (s)\) is a transfer function of LPF 1,\(I_{FC}\) is the input current of LPF 1 (A),\(I_{FC\_ref}\) and \(I_{FC\_res}\) are the low- and high-frequency current of the PEMFC (A), respectively.

Similarly for the BAT, the LPF 2 is also utilized to separate the low- and high-frequency BAT current obtained from the DC bus voltage control loop, which will be analyzed in the next section. These currents can be defined as follows:

$$I_{BAT\_lpf} = G_{2} (s).I_{BAT}$$
(22)
$$I_{BAT\_res} = I_{BAT} - I_{BAT\_lpf}$$
(23)

where \(G_{2} (s)\) is the transfer function of LPF 2,\(I_{BAT}\) is the input current of LPF 2 (A), \(I_{BAT\_lpf}\) and \(I_{BAT\_res}\) are the low- and high-frequency current of the BAT (A), respectively.

In addition, a SOC regulator scheme is proposed to maintain the battery SOC level of the BAT in a limited range \(\left( {SOC_{BAT\_\min } < SOC_{BAT} < SOC_{BAT\_\max } } \right)\). The value of SOC status is compared with \(SOC_{BAT\_\min }\) and \(SOC_{BAT\_\max }\) to decide the reference current of the BAT by [30]:

$$I_{BAT\_ref} = \left\{ {\begin{array}{*{20}c} {\alpha_{1} \left| {I_{BAT\_lpf} } \right|} & {if} & {SOC_{BAT} \le SOC_{BAT\_\min } } \\ {I_{BAT\_lpf} } & {if} & {SOC_{BAT\_\min } < SOC_{BAT} < SOC_{BAT\_\max } } \\ {\beta_{1} \left| {I_{BAT\_lpf} } \right|} & {if} & {SOC_{BAT} \ge SOC_{BAT\_\max } } \\ \end{array} } \right.$$
(24)

where \(I_{BAT\_ref}\) is the reference current of the BAT (A), \(SOC_{BAT}\) is the BAT status, \(SOC_{BAT\_\min }\) and \(SOC_{BAT\_\max }\) are the minimum and maximum allowable SOC level of the BAT, \(\alpha_{1}\) and \(\beta_{1}\) are the tuning parameters.

Based on the SOC conditions of the BAT, the above tuning parameters are defined below:

$$\alpha_{1} = - \frac{{\gamma_{1} \left| {SOC_{BAT} - SOC_{BAT\_\min } } \right|}}{{SOC_{BAT\_\min } }}$$
(25)
$$\beta_{1} = \frac{{\delta_{1} \left| {SOC_{BAT} - SOC_{BAT\_\max } } \right|}}{{SOC_{BAT\_\max } }}$$
(26)

where \(\gamma_{1}\) and \(\delta_{1}\) are the positive constants depending on the charge/discharge characteristics of the BAT.

Due to the slow dynamic, the PEMFC and BAT cannot adapt to high-frequency currents \(I_{FC\_res}\) and \(I_{BAT\_res}\) instantly. Fortunately, the SC, with the high power density and fast dynamic response, is combined to compensate for the load fluctuation and high-frequency currents of PEMFC and BAT. The same as BAT, a SOC regulator is also considered to guarantee the SOC of SC in the limited ranges. Hence, the reference current for the SC can be considered as follows:

$$I_{SC} = I_{FC\_res} + I_{BAT\_res}$$
(27)
$$I_{SC\_ref} = \left\{ {\begin{array}{*{20}c} {\alpha_{2} \left| {I_{SC} } \right|} & {if} & {SOC_{SC} \le SOC_{SC\_\min } } \\ {I_{SC} } & {if} & {SOC_{SC\_\min } < SOC_{SC} < SOC_{SC\_\max } } \\ {\beta_{2} \left| {I_{SC} } \right|} & {if} & {SOC_{SC} \ge SOC_{SC\_\max } } \\ \end{array} } \right.$$
(28)

where \(I_{SC\_ref}\) is the reference current of the SC (A), \(I_{SC}\) is the required SC current (A), \(SOC_{SC}\) is the SC status, \(SOC_{SC\_\min }\) and \(SOC_{SC\_\max }\) are the minimum and maximum allowable SOC of the SC, respectively; \(\alpha_{2}\) and \(\beta_{2}\) are the tuning parameters.

Based on the \(SOC_{SC}\) conditions, the value of \(\alpha_{2}\) and \(\beta_{2}\) is governed by:

$$\alpha_{2} = - \frac{{\gamma_{2} \left| {SOC_{SC} - SOC_{SC\_\min } } \right|}}{{SOC_{SC\_\min } }}$$
(29)
$$\beta_{2} = \frac{{\delta_{2} \left| {SOC_{SC} - SOC_{SC\_\max } } \right|}}{{SOC_{SC\_\max } }}$$
(30)

where \(\gamma_{2}\) and \(\delta_{2}\) are the positive constants depending on the charge/discharge characteristics of the SC.

During the operation, the EMS appropriately distributes power to each power supply to not only sufficiently satisfy the workload demand but also maintain the supplements’ SOCs. These parameters should be properly determined to avoid the state of overcharging or deep discharging. For the charging process, if a certain storage device has higher SOC, the injected power is lower and vice versa. Meanwhile, in the discharging process, the output power is higher with higher SOC and is lower with lower SOC. Furthermore, if the SOC of the BAT or SC reaches its upper bound, or lower bound, disconnected action is executed and this device will wait for the next discharging or charging process, respectively.

3.2 DC Bus Voltage Control

In the HPS, the DC bus voltage decreases when load power demand increases rapidly, whereas this voltage will boost if the power load declines. A bus regulation, thus, is necessary to obtain the stability of DC bus voltage. In order to control the bus output voltage, the adaptive controller is constructed as shown in Fig. 9.

Fig. 9
figure 9

Diagram of the DC bus voltage control loop

Herein, the deviation between the measured DC output voltage \((V_{DC} )\) and a reference \((V_{DC\_ref} )\) is input to an adaptive PID controller to generate the total current required \((I_{BAT} )\) for the BAT source. The adaptive PID control is constructed as

$$e = V_{DC\_ref} - V_{DC}$$
(31)
$$\dot{\hat{K}}_{P} = \left\{ \begin{gathered} \eta_{P} \left( {\delta + \left| e \right|} \right)^{{sign\left( {\left| e \right| - \varepsilon } \right)}} sign\left( {\left| e \right| - \varepsilon } \right),\begin{array}{*{20}c} {} & {\hat{K}_{P} > 0} \\ \end{array} \hfill \\ \eta_{P} \left( {\delta + \left| e \right|} \right),\begin{array}{*{20}c} {} & {\hat{K}_{P} = 0} \\ \end{array} \hfill \\ \end{gathered} \right.$$
(32)
$$\dot{\hat{K}}_{I} = \left\{ \begin{gathered} \eta_{I} \left( {\delta + \left| e \right|} \right)\int {\left( {\delta + \left| e \right|} \right)}^{{sign\left( {\left| e \right| - \varepsilon } \right)}} sign\left( {\left| e \right| - \varepsilon } \right),\begin{array}{*{20}c} {} & {\hat{K}_{I} > 0} \\ \end{array} \hfill \\ \eta_{I} \left( {\delta + \left| e \right|} \right)\int {\left( {\delta + \left| e \right|} \right)} ,\begin{array}{*{20}c} {} & {\hat{K}_{I} = 0} \\ \end{array} \hfill \\ \end{gathered} \right.$$
(33)

where \(\hat{K}_{P}\) and \(\hat{K}_{I}\) denote estimated adaptive gains; \(\eta_{P}\) and \(\eta_{I}\) are tunable positive gains, \(\delta\) is an arbitrarily small positive constant to avoid singularity, and ε = 0.2 is a constraint to regulate the DC voltage to the vicinity of the reference. It is noteworthy that \(\hat{K}_{P}\) and \(\hat{K}_{I}\) are upper bounded by predetermined positive constant \(K_{{_{P} }}^{*}\) and \(K_{{_{I} }}^{*}\), respectively, to avoid an over-estimated problem.

3.3 Buck-Boost Modes Control

In this HPS topology, there are two bidirectional converters employed for the BAT and SC, which have two operation modes as buck mode and boost mode. Thereby, the buck-boost control loop should be separately carried out for two modes by PI controllers, as shown in Fig. 10, where \(I_{ref}\) is the auxiliary reference current, i.e., \(I_{BAT\_ref}\) and \(I_{SC\_ref}\) for a case of using BAT and SC, respectively, and \(I_{mea}\) is the homologous measured current.

Fig. 10
figure 10

Diagram of the buck-boost mode control loop

If the reference current of the BAT or SC is less than zero, the bidirectional converters work in buck mode and the duty cycle can be defined by:

$$D_{buck} = \left( {K_{P1} + \frac{{K_{{{\text{I1}}}} }}{s}} \right)\left( {I_{ref} - I_{mea} } \right)$$
(34)

where \(D_{buck}\) is the duty cycle for the buck switch component (%), \(K_{P1}\) and \(K_{{{\text{I1}}}}\) are gains of PID buck mode controller.

Otherwise, when the reference current of the BAT or SC is greater than zero, the bidirectional converters work in boost mode and the duty cycle is described by:

$$D_{boost} = \left( {K_{P2} + \frac{{K_{{{\text{I2}}}} }}{s}} \right)\left( {I_{ref} - I_{mea} } \right)$$
(35)

where \(D_{boost}\) is the duty cycle for the boost switch component (%), \(K_{P2}\) and \(K_{{{\text{I2}}}}\) are gains of PID boost mode controller.

4 Simulation and Experimental Validation

4.1 Simulation Results

In the following simulations and experimental tests, a load power profile was chosen as shown in Fig. 7 to evaluate the effectiveness of the proposed control strategy. In this profile, several load levels were considered with abrupt variations in the form of power steps, such as acceleration and deceleration in practical applications, to examine the system behaviors. The component characteristics of the HPS were chosen from commercially available devices which could satisfy the load power demand and verify the proposed approach as listed in Tables 1, 2, 3. In addition, appropriate cut-off frequencies were also determined such that they could produce the smooth reference current for the FC and BAT converters. These frequency values were fc1 = 10 Hz [31] and fc2 = 32 Hz [32] for LPF 1 and LPF 2, respectively. The DC bus voltage was controlled to track the reference value VDC_ref = 36 V. The initial SOC of BAT and SC was set to 0.6 and 0.85, respectively. The parameters of boost control for PEMFC converter and buck-boost mode control for BAT and SC converters were given in Table 4. The system qualification was performed from Fig. 11 to Fig. 14. It is noteworthy that for this investigated scenario, all devices’ signals for processing, i.e., voltage and current, were measured in the low-voltage side of the DC/DC converters.

Table 1 Specifications of PEMFC Horizon (H-200)
Table 2 SC bank parameters
Table 3 BAT parameters
Table 4 Simulation parameters
Fig. 11
figure 11

The simulation results of energy sources and load power

The simulation results of energy sources and load power in the HPS are displayed as given in Fig. 11a, b, respectively. Due to using the FD technique regarding each device's characteristics, the power command was appropriately distributed from the requirement into each component, as shown in Fig. 11a. It can be seen that SC bank not only supplied the peak power when the load changed abruptly but also delivered the fast response of required power and minimizes the fluctuating power on PEMFC and BAT. Conversely, PEMFC provided a base portion of the load power without satisfying the required power in the transient state. In addition, BAT supported the PEMFC to provide the power in the steady-state to reduce the PEMFC’s power fluctuation. Although the PEMFC, with the lowest dynamics, could not instantly react to the load change, the load tracking effort could still be ensured due to the power compensation from the BAT and SC at each time of transient peak power. As a result, the total power supplied from the HPS could completely fulfill the load requirement, even when an abrupt change occurred, as shown in Fig. 11b.

Figure 12 shows the DC bus voltage regulation and load current, corresponding to the load power demand. Because the PEMFC, the SC bank, and the BAT were connected in parallel to the DC bus, the output voltage of these sources was the same as the DC bus voltage. By using the adaptive PID control, the DC bus voltage was steadily maintained at around 36 V with a very small fluctuation, despite the abrupt change of the load, as displayed in Fig. 12a. In particular, the peak voltage of the DC bus was in the range of (35.97 → 36.03) V, which was approximated by 0.2% voltage ripple. Besides, the DC bus current reached a maximum of 11.1 A in the interval from 15 to 20 s that matched the maximum load power demand, as presented in Fig. 12b.

Fig. 12
figure 12

The voltage and current of DC bus

The SOC levels of both BAT and SC bank are performed in Fig. 13, which describe the charged and discharged status at each timeline when the load changes. The proposed approach could maintain the fluctuation of BAT SOC level in the range of (59.82 → 60) %. Similarly, the SOC SC had a varying range within (84.55 → 85.1) %.

Fig. 13
figure 13

The SOC levels of BAT and SC

Besides, due to the DC/DC converter dynamics and its efficiency, we investigated the system performances in two cases where all signal measurement points (voltage and current) were located in the low-voltage side (config 1) and the high-voltage side (config 2) of the DC/DC converters. The comparative simulation results are shown in Fig. 14, in which the dash-red line denotes the power measured in the low-voltage side (Power config 1), and the dot-dash-green line denotes the power measured in the high-voltage side (Power config 2), of the DC/DC converters. The simulated results indicated that the signals measurement point on the low-voltage side could yield faster and more accurate power response in comparison with the case of measured points on the high-voltage side. The reason is that when choosing config 1, the signal processing did not include the DC/DC converter dynamics whereas this influence, specifically dominated by an inside inductance, is systematically included in the computation for the case of config 2. Consequently, this measurement setup generated more oscillation and delayed performance than the first one. This was also displayed through the DC bus voltage regulation in Fig. 15, with more voltage oscillation executed under config 2 than the former when the load power abruptly changes. As can be seen, when an abrupt variation of load power occurred at the time of the 5, 10, 15, 20, 23, 26th second, the DC bus voltage regulation of config 1 was better than config 2 subjects to the same scenario of load variation. This voltage is stably remained at roughly 36 V by using config 1, whereas the range of overshoot and undershoot DC bus voltage was within (35.25 → 36.85) V, with the voltage ripple being approximated by 4.45% when using config 2. Therefore, the location for signals measurement has a significant influence on the system output qualification. Based on this expression, config 1 was chosen for the examined experiment.

Fig. 14
figure 14

The comparison results of load power performance between config 1 and config 2

Fig. 15
figure 15

The comparison of DC bus voltage by using config 1 and config 2

4.2 Experimental Results

In this work, a small-scaled HPS test bench was implemented with three power sources (PEMFC/BAT/SC), a unidirectional DC/DC converter, two bidirectional DC/DC converters, controller board, DC load simulator, power supply, and measurement devices as shown in Fig. 16. The used test bench was designed with PEMFC, as a primary power source, integrated with BATs and SC bank, as an auxiliary power system, to compensate for the PEMFC dynamics. A PEMFC system of Horizon company (H-200 FC stack) was selected with its parameters shown in Table 1. This fuel cell is composed of 40 cells that are serially connected with an area of 100 cm2. For the SC bank, ten components of Nippon Chemi-Con DLCAP were connected in series, with each cell having a rated voltage of 2.5 VDC and a rated capacitance of 600 F. The detailed characteristics of the SC bank are shown in Table 2. Besides, two lead-acid BATs were connected in series to store the energy with the parameters presented in Table 3.

Fig. 16
figure 16

The scaled-down hybrid power system test bench

In this system, the DC/DC converter for the PEMFC is unidirectional with a boost mode topology, whereas the BAT and SC converters are bidirectional with buck/boost topology. Three DC/DC converters were connected in parallel and the output voltage side is integrated into the DC bus. These converters were composed of a high-frequency inductor (L = 68 μH), capacitors in two sides of the converter (C1 = C2 = 2590 μF), a resistor (R = 0.05 Ω), a diode (D), and MOSFET switches (S, S1, S2). The DC load with a power of 400 W was connected to the DC bus. For the load variation, a controllable DC load simulator was used with the characteristics described in Table 5.

Table 5 DC load simulator

Besides, the DC bus voltage was maintained at 36 V by the DC voltage control loop of the BAT. The control loops of three DC/DC converters were executed in real-time by using the DSP TMS320F28379D controller board through a mathematical environment of Code Composer Studio software with the use of C language. The switching frequency was generated to drive the MOSFET switching gates of each converter by means of a PWM control signal at 20 kHz. The measured values of DC bus voltage, voltage, and current of the PEMFC, BATs, and SC bank were acquired by the LEM transducer sensors with the Hall effect.

The experiment was carried out to increase the persuasion of the proposed control strategy. The experiment was conducted using the step load with three power levels. The experimental results of energy sources and DC bus voltage are presented in Figs. 17 and 18. Firstly, the power distribution of three energy sources is shown as in Fig. 17a in which the continuous light blue line represents the required power of PEMFC, the continuous green line depicts the power of BAT, and the power of SC is described as a continuous orange line. It can be observed that during the low level of load power (0–10 s) and (26–30 s), the PEMFC supplied energy as a primary power source and increases slowly until reaching the required power of the load. The lacking power was provided by the BAT in the steady-state and the SC in the transient state. For the medium level of load power (20–23 s), the PEMFC delivered the nominal power at 180 W and the BAT compensates for the remaining load power requirement. With the high level of load power (10–20 s) and (23–26 s), the PEMFC was implemented at the maximum power of 220 W. In order to reduce the power fluctuation of the PEMFC, the BAT provided the supplemental power to the PEMFC with a faster power response than the PEMFC’s power response. Meanwhile, the SC bank delivered the highest power response to deal with the peak power demand of load at the transient states, which also compensated for the total insufficient power of PEMFC and BAT to meet the requirement of load at a slow rate.

Fig. 17
figure 17

The power distribution of energy sources and comparison results of power released between experiment and simulation

Fig. 18
figure 18

The comparison results of DC bus voltage between experiment and simulation

Additionally, both BAT and SC absorbed the redundant power when there was a sudden reduction of the load power, which was profitable for lengthening the lifetime and improving the working performance of the PEMFC stack. Based on the power allocation of energy sources, the load power demand between simulation and experiment with the same initial conditions is compared in Fig. 17b. Generally, the experimental result shows a good working performance with the closely same response as the simulation in load demand satisfaction. As a result, the experiment’s load power provided an oscillated power in the range of (3 → 5) W, approximated by (1.25 → 1.58) % in comparison to the required load power under various working conditions. When the load abruptly changes, the power distribution of energy sources is appropriately conducted to guarantee the load power in a small fluctuation range.

The comparison of DC bus voltage between experiment and simulation is described in Fig. 18. It is easily observed that the DC bus voltage of the experiment was steadily maintained at around the desirable value (36 V) with a small voltage ripple in a range of (35.8 → 36.35) V, approximated by 1.53%. This result shows the effectiveness of the proposed adaptive DC bus voltage controller that could maintain the stable bus voltage despite the load power variation.

5 Conclusions

In this paper, a novel EMS was proposed to properly carry out the power-sharing between energy sources to the load power demand for the HPS, which consisted of PEMFC, BATs, and SC bank. This strategy was based on the combination of adaptive control and the FD method. According to the different characteristics of energy sources, the FD decomposed the load power demand into three frequency power ranges which involved the PEMFC, BAT, and SC behaviors. Three operation modes were defined to reasonably distribute the reference power for the PEMFC, BAT, and SC through controlling the unidirectional and bidirectional DC/DC converters. To guarantee the stability of the DC bus regulated by the BAT, the adaptive PID controller was employed to maintain the bus voltage around the desired value and satisfy the variation of load. Besides, the influence of signal measuring points at two sides of the converter was investigated to evaluate the system performance. The result showed that the choice of measured points at the low-voltage side of the converter achieved a better load power response than the high-voltage side.

The obtained results of the simulation and experiment demonstrated that the PEMFC could deal with the low-frequency power demand while the BAT was able to provide a supplement of low-frequency power demand to diminish the burden of PEMFC. Meanwhile, the SC bank satisfied all the high-frequency power demands which compensated for the incomplete power of the PEMFC and BAT. The results showed that the proposed strategy could effectively satisfy the load power demand under different working conditions with a deviation in the range of (1.25 → 1.58) %. Moreover, the DC bus voltage was guaranteed at the desired value of 36 V with a small ripple of 1.53% and short settling times. In summary, the achievements in this study not only ensured the power supply performance but also obtained the high efficiency of the hybrid system. Therefore, this study is a premise for developing an advanced EMS to apply for hybrid electric vehicles, hybrid construction machinery, or hybrid tramway system.