top of page

MATLAB Implementation of Fuel Cell Battery Powered BLDC Motor

Welcome to this technical deep-dive on the MATLAB/Simulink implementation of a Fuel Cell and Battery Powered Brushless DC (BLDC) Motor. This blog walks through the simulation model, control techniques, and performance analysis involved in integrating a fuel cell and battery system to drive a BLDC motor—an approach with direct relevance to electric vehicle (EV) applications.




Overview of the Simulation Model

The simulation model integrates three main components:

  • Fuel Cell: Acts as the primary energy source.

  • Battery: Supports the fuel cell by stabilizing the DC bus.

  • BLDC Motor: Acts as the mechanical load, emulating electric vehicle propulsion.

These components are connected through a common DC bus. The fuel cell's low output voltage is boosted using a DC-DC boost converter to match the 48V DC bus, which is also supported by the battery.



Fuel Cell Specifications and Behavior

The fuel cell in this model has the following characteristics:

  • Nominal Operating Point: 52 A at 24.23 V (~1.26 kW).

  • Maximum Operating Condition: 100 A at 20 V (~2 kW).

The converter and control systems are designed around these voltage and power levels. The DC bus is maintained at 48V, and the battery connected to it is rated at 48V, 200Ah, with an initial State of Charge (SOC) of 50%.

Boost Converter and MPPT Implementation

To extract maximum power from the fuel cell, a Perturb and Observe (P&O) Maximum Power Point Tracking (MPPT) algorithm is used, similar to what is commonly applied in PV systems.

Key steps in the MPPT control include:

  • Measuring real-time fuel cell voltage and current.

  • Calculating power and voltage changes.

  • Adjusting the duty cycle of the boost converter based on power slope.

  • Constraining the duty cycle within pre-defined limits (min, max, delta values).

  • Generating PWM pulses by comparing the duty signal with a triangular waveform to control the IGBT in the converter.

This dynamic adjustment allows the fuel cell to operate close to its maximum power point, thereby enhancing overall efficiency.

BLDC Motor Drive Configuration

The system uses a Permanent Magnet Synchronous Motor (PMSM) with trapezoidal back-EMF characteristics, functioning as a BLDC motor. The motor is powered through a Voltage Source Inverter (VSI).

Motor control involves:

  • Sensing rotor position via Hall sensors.

  • Using back EMF and a truth table to generate six-step commutation pulses.

  • Driving the VSI with these pulses to operate the BLDC motor efficiently.

Load Variation and System Response

To evaluate the system's dynamic performance, a step change in mechanical load torque is introduced:

  • Initially, the motor runs at no load with a speed of ~3000 RPM.

  • At 1 second, torque increases from 0 Nm to 2.5 Nm, stabilizing the motor at a lower speed but maintaining rated operation.

The system successfully adapts to this change while continuing to extract near-maximum power from the fuel cell.

Hydrogen Pressure Variation and Power Tracking

To simulate real-world scenarios, the hydrogen pressure in the fuel cell is reduced from 1 atm to 0.5 atm at the 4-second mark. This causes:

  • A voltage drop from 20V to ~18V.

  • A decrease in fuel cell output power from ~2000 W to ~1800 W.

  • Corresponding adjustments in battery charging current and motor input to maintain smooth performance.

Despite the change in operating conditions, the MPPT controller successfully tracks the new maximum power point.

Performance Monitoring and Outputs

Throughout the simulation, the following parameters are continuously monitored:

  • Fuel Cell Voltage, Current, and Power

  • Battery Voltage, Current, and SOC

  • BLDC Motor Speed, Torque, EMF, and Stator Current

  • VSI Output Line-to-Line Voltage

These outputs help validate the proper operation and control of the powertrain under varying load and source conditions.

Applications and Future Work

This MATLAB model serves as a prototype for electric vehicle applications. By integrating drive cycle data, the model can be extended to replicate real-world EV behavior. Speed control and energy management strategies can be incorporated to develop a full EV simulation framework.

In the next phase, we'll explore how this system can be adapted to a complete Electric Vehicle (EV) simulation, including drive cycle-based speed control and regenerative braking.

Conclusion

This simulation demonstrates the feasibility and effectiveness of using a fuel cell and battery hybrid to drive a BLDC motor, with MPPT ensuring optimal fuel cell usage and dynamic load handling. It lays a solid foundation for further development into real-world EV systems.

Comments


bottom of page