Project 1
1. Create a stateflow or Simulink model for the FC and Battery Power/Energy Management System
AIM
To build a EMS (Energy Management System) for the vehicle having FC and Battery.
INTRODUCTION
Power/Energy management systems help ensure the safe, reliable, efficient, and compliant operation of the power supplying sources in a system.
ALGORITHM
The followiing algorithm is used to build the EMS (Energy Management System) for the vehicle having FC and Battery

The following assumptions are made
| FC min power | 100 W |
| FC max power | 1000 W |
| Battery max power | 300 W |
The operating condition from the algorithm is such that
- When the demand power is below FCmin_power the power is supported by Battery only
- When the demand power is between the FCmin and FCmax power limit, the power is fed by FC only.
- When the demand power is above FCmax_power the demand power is supported by battery and FC together.
MODELLING AND SIMULATION
The above algorithm is modelled using MAYLAB Simulink

An indiacation lamp is given such that
- RED light: indicated the FC is in standby mode
- GREEN light: indicated the FC is in running condition
The algorithm is build using matlab simulink as follows using realtional operator, switch, AND operator, constant and sum blocks.

Working of algorithm
- The demand power is checked whether it is greater than or equal to the FC min power, if it is yes, then FC is in running condition (!) or else in standby mode (0).
- If the demand power is less than FC min power, the demand power is met by battery power.
- The demand power is again checked with FC max power, if it is less than, then the demand power is met by FC. This requires checking two condition for demand power between FCmin and FCmax, for that an AND operator is used.
- If the demand power is greater than the FCmax, the FC power supply saturates to FCmax and rest of the power is supported by battery.
RESULT

OBSERVATION
- When the demand power is below FCmin_power the power is supported by Battery only
- When the demand power is between the FCmin and FCmax power limit, the power is fed by FC only.
- When the demand power is above FCmax_power the demand power is supported by battery and FC together.
CONCLUSION
The EMS for the vehicle having Battery and FC as the powering source has modelled and the results obtained as desired,