1. Introduction
Day by day, climate change threatens the survival of living beings on Earth. The cause behind this issue is air pollution due to the population [
1], which mainly comes from the transportation sector [
2]. An increase in vehicles is unavoidable. Nevertheless, human beings can control air pollution by making necessary vehicle changes. Even though a lot of research has been carried out to prevent vehicle pollution, the climate data show the attainment of peaks in pollution every year [
3]. An exact plan to control pollution is using electric-powered vehicles without any engine or fuel tank setup. Switching transportation to EVs is growing exponentially, and around 2.3 million EVs were sold in the first three months of 2023 [
4]. Electric vehicles (EVs) provide an alternate way for the automobile industry to protect the environment and nature from global warming. Battery-based electric vehicles (BBEVs) have been popular among users in the last decade [
5]. However, onboard chargers in BBEVs convert the external power from one form into the desired form for the battery. So, BBEVs require a charging station or grid to charge their batteries. Dependency on the grid is the primary concern in BBEV transportation [
6,
7]. The electric grid obtains a lot of its power from thermal power stations. Therefore, BBEVs are also not advisable in terms of being pollution-free. In recent times, BBEVs have come with a supercapacitor arrangement, which provides high-power support for these EVs [
8]. This supports the EV system whenever it requires high-power conditions [
9]. The characteristics of the supercapacitor are mainly based on the electrode material [
10,
11]. Adopting solar PV with batteries reduces the grid power requirement, and solar-based EVs (SBEVs) are an emerging technology [
12]. A maximum power point tracking (MPPT) controller is essential for SBEVs. Another alternative to BBEVs is fuel-cell-based electric vehicles (FBEVs) [
13,
14], which give some advantages over BBEVs and SBEVs. Filling up with hydrogen gas is quicker than charging batteries to produce the same electric power [
15]. All three sources are incorporated into one vehicle, giving more reliability and efficiency, a wider cruising range, and independence from the grid. Multiple sources are integrated into the EVs using a power management process, which is mandatory for switching the sources of input to the load as per the controller program.
A canonical type of converter has been developed to suppress ripple current, and adaptive-based observer control is employed with solar-PV-fed EVs. Brushless DC (BLDC) drives without any sensors for the rotor position are the major contribution. This control technique is suitable only for light EVs. Regardless, the intermittent nature of solar power makes feeding power to EV motors a more difficult task [
16]. Battery sources are mandatory with solar-based EVs, and a proper battery management system helps the SoC, the SoH, and the proper charging and discharging operations of the battery. This EV system has been compared with P, PI, and PID controllers, which have no drive cycle [
17]. All the converters operate using fuzzy rules. The reduction of hydrogen is achieved in fuel-cell- and supercapacitor-fed EVs [
18]. The same sources used under the bee colony algorithm were tested with standard drive cycles, even though the motor selected for this system was a DC machine, and it is not suitable for EVs due to the risk of fire accidents [
19]. A random decision forest (RDF) is mainly used to control the management of power. The exact combination of a supercapacitor and a battery has been used in EV applications [
20]. To improve its reliability, a conventional IC engine with a fuel tank setup is included in BEVs. A deep reinforcement algorithm has been used to increase their fuel economy [
21]. Fuzzy control with online and offline optimization is employed to manage the energy. Battery and fuel cell sources are taken as the input with different driving cycles. The output of real-time EVs is not exactly the same as that of a hardware-in-the-loop type of implementation [
22]. A switched reluctance motor (SRM) is suitable for light EVs, and the torque control (TC) strategy involves no feedback sensor for the rotor position of the SRM. A self-charging capability is not addressed with this control method [
23]. A traditional PI controller with solar PV and battery-to-light EVs for power management implemented a reluctance synchronous motor (RSM). This control methodology has not been validated by further similar studies [
24]. Deep reinforcement learning (DRL) control has also been implemented to meet the power demand with a fuel cell, a battery, and an ultracapacitor. However, different simulation results have not been validated for this experimental setup [
25]. Comparison with other research was shown in
Table 1. The DRL control employed battery- and IC-engine-based hybrid EVs, which resulted in 82.37% battery degradation [
26]. This control technique satisfies the load power requirements. An exact method for selecting the EV motor is the vehicle dynamics concept, based on the weights and forces on the vehicle [
27].
This detailed review of power management in multiple-source-fed EVs demonstrates the limitations with respect to the control method, such as poor switching times, undershoot and overshoot problems, implementation issues, and complications in coding and effectiveness. The proposed controller eliminates all these concerns and provides reliable operation under different load conditions at all times. This power management works based on the novel concept of an instantaneous-based reference current. This model, which measures the load variations regularly and offers appropriate switch control decisions, is used. The major contributions of the proposed work are given:
Development of power management with solar PV, a fuel cell, and a battery under standard and practical drive cycles.
The implementation of an MPPT controller for rooftop solar panels of a vehicle based on real-time insolation data.
Detailed concept of controller design to split the sources as per the load requirements.
Executed power management hardware setup using the three different power sources for the PMSM.
The manuscript is organized according to the following structure:
Section 2 explains the proposed methodology,
Section 3 describes the MPPT and power converters,
Section 4 explains the machine learning control,
Section 5 and
Section 6 explains the results and discussion and hardware implementation, and finally, we give the conclusion.
2. Proposed Methodology
The three kinds of energy sources involved in the proposed work are light energy from solar panels, chemical energy from a battery, and hydrogen energy from a fuel cell. The main objective of all the sources is to produce mechanical energy for the motor. To integrate these sources into the EV motor, a power converter is needed for power modulation. Basically, DC-DC and AC-DC converters are used between the sources and the load. According to the power flow direction from the sources, a bidirectional or unidirectional type of DC-DC converter is used. Concerning the fuel cell and solar array sources, a unidirectional type of DC-DC converter is used. A bidirectional DC-DC converter is mandatory for the battery to charge and discharge. The output end of all the converters is coupled to a common link using switches, namely a solar pulse switch (P
S), a fuel cell pulse switch (P
F), a battery discharge pulse switch (P
D), and a battery charge pulse switch (P
C). A voltage source inverter connects the DC link and the PMSM (load) using the load pulse switch (P
L). A converter module is supposed to coordinate all the converters and switches for this EV system. The proposed machine-learning-based controller receives the program from the user and delivers the control signals to the converters and on/off pulses to the switches.
Figure 1 depicts a block diagram of a machine-learning-control-based EV.
Real-time and standard drive cycles are used in this work, which enables the proposed work to be adopted with all driving cycles. Practical drive cycle data were observed on a university campus, as displayed in
Figure 2. As per the practical data, the maximum speed attained by the vehicle was 76 km/h, and a road map of these data is presented in
Figure 3. We tested the power management operation under two standard drive cycles [
29], namely an urban dynamometer driving schedule (UDDS) and a highway fuel economy test (HWFET), which are pictured in
Figure 4 and
Figure 5.
4. Machine Learning Control
An artificial neural network (ANN) represents the structure of the human brain, and it is helpful for making various decision-making processes. The significant advantage of ANN implementation is the decreased intricacy of computation. Systems with partial training might not be able to produce the intended results. An ANN’s primary functions are dataset selection, training, and performance or execution. The ANN structure used in this work is pictured in
Figure 14.
The dataset is selected using either some standard formulae or simulation data and experimental data. After the dataset is gathered, preprocessing is required to extract the features from it. The next step of data collection is learning the data, and learning is the process of determining weights. In terms of the structure, the learning phase is comparable to a natural neuron structure’s synaptic tuning. Several feedforward and feedback algorithms support tuning or adjusting the weights to provide the desired output. The network should be tested after training before the last execution stage.
A total of 1650 datasets are collected from both the simulation and standard formulae, with 1185 data for training and the rest of the 465 data used for testing. The testing data are crucial for determining whether the network can produce the desired results and has been appropriately trained. These datasets hold the values of the voltage and current of the solar panel, the battery, and the fuel cell; the reference voltage and current; and the SoC during different load demands of EVs. In order to produce the same output voltage from DC/DC converters, the controller adjusts the duty ratio. The proposed ANN controller sets the duty cycles based on the DC bus voltage (V
ref) and the output voltage from the sources. The overall control technique is illustrated in
Figure 15. The duty cycles of the input-source-fed DC/DC converters are shown in Equations (26)–(28).
dsolar, dfuelcell, and dbattery represent the duty ratios of solar-array-, fuel-cell-, and battery-connected DC/DC converters. Vref indicates the reference voltage in the DC bus. VIn-S, VIn-F, and VIn-B are the input voltages of the DC/DC converters connected to solar power, fuel cell power, and battery power. If there any changes in the DC bus (Vref) voltage from 465 V, the ANN controller sets duty cycles to maintain 465 V. The input of the ANN is three different input powers from the sources (VS IS, VB IB, and VF IF), the load current, the reference voltage and current, and the SoC. The output from the ANN is the control signals to adjust the duty cycles and pulse signals to set the switches to ON and OFF. The ANN controller is designed based on the following priority list.
Priority starts with solar power due to its cost-effectiveness and renewable energy.
When the load demand increases, the battery satisfies the load alongside solar power.
When the load is not met by the solar PV and battery power, the fuel cell is also combined to fulfil the load requirements.
When excessive power is present from the DC bus, then the battery absorbs or is charged with the valuable power.
The machine learning controller maintains a constant voltage (V
ref) in the DC bus and compares the PMSM current with the reference currents of the sources. If the solar array power is more or equal to the load power, the solar reference currents are as shown in Equations (29) and (30).
where P
s defines the power from the solar PV as in Equation (29), and the duty cycle of the solar-PV-linked DC/DC converter follows Equation (31). Based on sporadically varying irradiance and temperature, I
S-Ref varies. Accordingly, the duty cycle of the ANN controller makes the output current of the solar PV (I
OS) equal to I
S-ref using the below equations [
30].
where ‘S’ denotes the scaling factor, which decides the operating speed from I
OS to I
S-Ref. More significant dynamic oscillations may result when the scaling factor is not variable, which causes a slow reaction in the system. So, a scaling factor with a variable magnitude is introduced in this work. The scaling factor “Z” automatically increases to accommodate the increased difference between “I
OS” and “I
S-Ref”, allowing “I
SO” to converge with “I
S-Ref” more quickly. The boost converter’s duty cycle ratios, which are linked to the sources, are used to repeatedly calculate and update the fixed magnitude of Z”. The scaling factor Z
s(k) is as follows: the scale factor “Z” of any power source is modified in Equation (32).
Equation (33) is used to determine the charging current with respect to the reference for the battery proportionate to the additional power available at the DC bus:
By maintaining V
DC-BUS in duty cycle “d,” the buck mode battery charging duty cycle is maintained when I
BCh-actual = I
BCh-Ref or when the reference charging current for the battery is equal to the actual charging current. To attain the reference charging current, as in Equation (28), the reference voltage is either increased or decreased in fixed step sizes compared to the duty pulse if I
BCh-actual ≠ I
BCh-Ref. To address a power shortage, the discharging current reference “I
BDis-Ref” at 465 V is determined using the following, Equation (34). The neural network’s training performance is displayed in
Figure 16, which shows the controller achieved the desired results in 45 epochs.
In order to achieve I
BCh-actual = I
BCh-Ref, or the actual battery current equaling the reference battery current, the duty cycle must be adjusted as in Equation (35) [
30].
In total, there are 11 neurons in the input layer, 6 neurons in the output layer, 20 neurons in hidden layer 1, and 10 neurons in hidden layer 2. It is also possible to determine the hidden neurons using the formula in Equation (36).
K represents the hidden neuron count, Output is output neurons, and Input is input neurons. The positive semi-definite constant (θ) ranges from 0 to 12.
5. Results and Discussion
The proposed ML-based controller controls all the switches based on the source power to meet the load power. Input real-time drive cycle data are fed to the controller for a long drive (HWFT) on a highway and a short drive within an urban area (UDDS). An inverter, a boost converter, and a bidirectional converter are taken as the power modulators. The entire input voltage and current are input into the controller, and the output voltage of the DC-DC converter is 465 V in the DC bus. The output voltage of the battery is 540 V, and 540 V is modulated to 465 V in buck mode. The voltage is stepped down from 465 V to 540 V according to the boost mode of the bidirectional converter. Due to the irradiance level, the solar PV exhibits a voltage in a range between 40 V and 400 V. The solar-fed boost converter delivers the 465 V using the controller. The voltage of the fuel cell is 280 V, and the boost converter converts this 280 V into 465 V through adjustment of the duty cycle. Finally, VDC-bus is fixed as 465 V as the reference parameter for voltage.
A DC bus is connected to the 1 kW PMSM using the inverter. The proposed controller receives the entire source current and load current, which helps us to manage the power based on the instantaneous reference current principle. Since the DC bus voltage is constant, the controller measures the load current and matches it with the source current through the switches. For example, if the load current is 22 A, then the controller works on the instantaneous basis of the reference current. This power is split up as the current from the input sources based on availability, such as the solar current being 3 A, the battery current being 14 A, and the fuel cell current being 5 A. The ON/OFF pulses for every switch are shown with 12 modes of EV operation in
Table 2.
These 12 different modes for EVs briefly explain the concept of power management based on switching actions. In mode 1, S
L is in OFF due to the vehicle being parked in the sunlight. So, the controller opens S
F and S
BDC and closes S
S and S
BC, and solar power charges the battery during daytime. Mode 5 describes the vehicle being in ON (S
L) and the controller deciding to take power from the fuel cell (S
F) to satisfy the load requirements. If excessive power is available from the fuel cell, the battery is charged with (S
BC) the power from the DC bus. In mode 7, the EV is operated by means of the battery and solar PV power. All three input power sources confer power to the EV motor in mode 11. The switch pulses for turning ON and OFF are displayed in
Figure 17.
The power management control is initially tested with the UDDS cycle. Battery power is the major source compared to both solar and fuel cell power for up to the first 100 s in
Figure 18. After the switching of S
BD and S
F, the controller is given the same amount of source power from the battery pack and the fuel cell (100 s to 660 s). The fuel cell delivers more power than solar and battery power after 660 s. In
Figure 19, the fuel cell power dominates (70%) from 0 to 380 s, and the remaining 30% power is covered by the battery and solar power. A total of 70% of the load power is covered by the battery after 660 s. Battery power combined with solar power satisfies the load in a typical solar-based BEV in
Figure 20. The main power source is a fuel cell in
Figure 21, which delivers the maximum power, along with solar power, to the load, like in an FCEV. If vehicle is in a standstill condition, the load power is zero, which is displayed in
Figure 22. So, the S
BD, S
F, and S
L switches are open. Solar power is utilized, and this power charges the battery (S
S and S
BC are closed) under sunlight.
Simulation of the HWFT cycle data is tested for the power management system for an EV. In
Figure 23, solar power is focused in on, which clearly indicates the power variation based on the irradiance data. Fuel cell power dominated for the first half of the total time and battery power dominated for the next half of the total simulation time in
Figure 24. The solar array and battery pack power is delivered to the load, as in a commercially available BEV, in
Figure 25. Fuel cell output power added to solar PV power, as in an FECV, is represented in
Figure 26. Solar power is available in the daytime, which charges the battery under the Sun in parking mode, as illustrated in
Figure 27. As per the simulation of practical driving data collected in the college, shown in
Figure 28, all the input power sources are combined to meet the load power.
The reaction time (or the amount of time elapsed) to settle at the reference value in the proposed controller is relatively short. It is better to use an ML-based controller in power management rather than a digital controller for hybrid power supplies to EVs. In
Figure 29, it is evidenced that the proposed ML-based controller has a very short reaction time.
The operation of electric vehicles (EVs) involves multiple sources and device switches, leading to electromagnetic compatibility challenges. Therefore, ensuring a high-quality power output to the load is essential in EV systems. The quality of the power, particularly in terms of the current, relies heavily on managing harmonics. In this system, an inverter is positioned between the DC bus and the motor to regulate the output current.
Figure 30 illustrates the output current of the inverter, demonstrating the effectiveness of the proposed controller in harmonics control. Further analysis using FFT, shown in
Figure 31, confirms this control. The Total Harmonic Distortion (THD) value, as depicted in
Figure 32, is measured at 4.03%, aligning with IEEE standard 519-2014, which stipulates the THD to be below 5%. Adhering to this standard ensures electromagnetic compatibility across all operational modes with precise control.
6. Hardware Investigation
The power control strategy for EVs (PMSM) using multiple sources is carried out through an implementation setup in a laboratory. The selection process for all the sources decides the motor rating. A 48 V, 1 kW PMSM is selected as the load, which receives input from the solar array, the battery pack, and the fuel cell through power electronic converters. A solar array setup available on top of the laboratory is used as one of the input sources, and the technical specifications for one panel are given in
Table 3.
A combination of five panels is connected in series, which gives 1 kW as the maximum power with respect to the solar insolation and temperature. The output of the solar panel is directly connected to the energy storage device (ESD) without any MPPT or charge controller. This ESD contains two series-connected 12 V and 150 Ah batteries and is charged by the solar PV when there is irradiance. Solar PV arrangements with ESDs are called solar batteries (SBs). Eight 12 V valve-regulated lead acid (VRLA) batteries are connected in series, which forms an input source called the main battery (MB). The specifications of the MB are listed in
Table 4. The efficiency of the battery determines the overall reliability of the BEV. Enhancing the battery for efficiency depends on the electrode materials, temperature control, the charge and discharge cycles within the operating region, the reduction in internal resistance, and an exact SoC measurement.
A 1 kW proton exchange membrane (PEM) fuel cell is used as one of the sources in this system. Every cell in the PEM receives oxygen or air on the cathode side and hydrogen on the anode side. Hydrogen is the main input to the fuel cell, and a hydrogen tank is present in the laboratory, where opening or closing the source of H
2 gas is possible for the PEM’s operation. Auxiliary power is needed to start the fuel cell, along with hydrogen gas, which gives the electrical power output and water as a by-product. A pressure gauge and pressure control setup are also required to control the output power of the PEM. Using a knob, the pressure can be controlled, and 0.7 bar is the appropriate pressure value while the PEM is in operation. The specification of the fuel cell is shown in
Table 5. The sources used for the hardware experiment are displayed in
Figure 33.
The output of all the sources is connected to the respective DC converters available in the converter box, which consists of three DC converters and an inverter. The entire boost converter output is connected together, and the two terminals taken in the converter box are called the DC bus. The duty ratio for each converter is fed by the FPGA controller as per the code on the LabVIEW platform. LabVIEW helps us to generate the duty ratio with respect to the input voltage from all the DC converters. The prime aim of the FPGA is to maintain the level of voltage irrespective of the voltage variation in the sources. So, the FPGA maintains 48 V at the DC bus, which is indicated by the multimeter. Three relays are connected between the DC/DC converters and the DC bus. A voltage source inverter (VSI) is essential to convert the DC power from the DC bus into the AC power input for the PMSM (load) through a relay switch. The FPGA controls the four relays from the program given by LabVIEW. The software code behind the machine learning is converted into the LabVIEW program format by the user. A block diagram for the implementation of the experimental setup is depicted in
Figure 34.
A digital signal oscilloscope (DSO) is connected and measures the DC bus voltage. To measure the current flow in the load and for each source, a clamp meter is used. A DC shunt motor is directly connected to the PMSM through mechanical coupling for the load variation in the PMSM. A separate DC power supply is required to run the DC motor, and a rheostat is linked with the DC motor for speed control operation. The experimental setup of the power management system of the PMSM using an FPGA fed by different sources is shown in
Figure 35.
The initial step to activate this system is in the LabVIEW software. Hence, LabVIEW is opened by the computer. An auxiliary power source is needed for the FPGA, and LabVIEW sends the command program to the FPGA. The FPGA receives multiple parameters, like the voltage and current from the input sources and the load current. This FPGA delivers the duty ratio to all the DC converters to set the DC bus to 48 V with respect to the source voltages. PWM of the pulse is enabled by the FPGA, which helps with the inverter operation. The PMSM receives 48 V as the stator voltage, and the permanent-magnet rotor starts to run. The armature of the DC shunt motor is connected to a rheostat, and speed control of DC motor is made possible by the adjustment of the variable resistor. Load changes in the PMSM are essential in the power management operation. Hence, varying the load in the DC motor is required using the rheostat. Load changes in the motor are displayed on the torque meter provided. Every second, the FPGA obtains all the parameters, delivers the exact duty cycle to all the DC-DC converters, and enables and disables the switches connected to the DC-DC converters. According to the power conditions from all the sources, the FPGA connects the sources as per the priority list using relay switches and matches the load demand. All the power electronic switches and relay switches are activated by the FPGA using the LabVIEW program throughout the entire operation. The generation of PWM is given in
Figure 36. In the operation of the experimental setup, the output voltage and current of all the sources are observed using the voltmeter and the clamp meter. The load current and voltage are measured irrespective of the load variation.
Table 6 indicates the power management data as per the load demand. Since all the source voltages and the PMSM voltage are maintained at 48 V by the FPGA, variations in the current are split by the FPGA with respect to the available input power. For example, if the PMSM current value is 19 A, then based on the LabVIEW code, the FPGA draws 2 A from the solar battery, 3 A from the fuel cell, and 14 A from the main battery and satisfies the load current and power.
Figure 37 illustrates the 48 V DSO output present in the DC bus, for which 1 division of scale is 8.33 V.