Challenge

Project 1

1. Create a stateflow or Simulink model for the following flowchart.

Load the .mat file into the workspace.

The input to the model would be the power demand.

The output should be:

  1. Fuel cell power
  2. Battery power
  3. FC Operating state (running, standby)

Create plot of these outputs against time.

As shown in the above flowchart , there are two power sources mention as Fuel Cell (FC) and Battery.

The logic which is been told to develop in this is that if the Power demand from the vehicle is less than the minimum FC power than the FC must go on standby and the power should be supplied from the battery storage system and if the power demand is greater than the min FC power than the FC should be used and if the power demand of vehicle is fore than the max power of FC than the Battery should supply the power.

The Simulink model is been developed for this as shown below,

For this the min FC power is kept between 0 to 1000w

Operating region of FC is 1000w to 9000w

And max power demand is set till 9000w to 10000w.

The signal Builder block is used as the input to give the power demand required by the vehicle , the simulation is been run for 598 sec and the output such as FC Power , Battery Power and FC status are been studied by connecting it to the scope.

If we look inside the logic block of the Simulink the model is as shown below:-

The interval test block are used for setting the limits of the FC minimum , maximum and operation region , the limits are been set as discussed above. Then as per logic the switch block are been set and the output is been connected to FC or battery as mentioned in flowchart.

Signal Builder profile is as shown below:-

As in signal builder for 0 to 207 sec the power demand is between 0-1000w and from 207-393 sec the power demand is in between 1000-9000w and for rest of the time its above 9000w so respectively first the battery should provide the power at the same time the FC should be at standby and when the power demand is greater than min FC power than FC should be used and if the power demand exceeds max FC power than battery should be switched back.

Result scope displaying FC power , battery power, Fuel cell status and actual power demand:-

From the results its clear that the logic which is been developed is full proof and working proper as per the logic defined. We can even see that when the FC is in operation the FC status is been showed as when its on the FC status is turned as 1 and when off its as shown 0.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.