Challenge

Project 1

Aim : To 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.

 

Answer:

Simulink model :

 

1) Input siginal builder block:

 

  • Intailly we created excel file and we imported the data to siginal builder
  • Here 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

Power Demand_subsystem:

 

  • Here from  the above flowchart there are two power sources they are  fuel cell and Battery

  • Here The logic which is used to develop is that if the power demand from the vehicle is less than the minimum FC power than the FC must go on standby mode and if the power should be supplied from the battery storage system

  • And if the power demand is greater than the minimum FC power than the FC should be used and if the power demand of vehicle is force than the max power of FC then the battery should supply the power

  • Here we developed a simulink model for the following condtions

  • Intially For  the minimum FC Power is taken as from 0 to 100w

  • And Operating region of FC is from 100 to 300 and max power demand is set to 300 to 593w.

Max_fc_demand:

 

FC_operation :

 

Min_fc_demand:

 

Output Results :

 

 

  • From the above  results we can see  that the logic which is been developed  as per the given logic
  • Here we can even see that when the FC is in opeartion the FC status is been showed as when its on the FC status is turned as 1 and when off its as shown 0
  • Here the  Signal buiilder for 0 to 100 sec the power demand is between 0-100w and from 100-300 sec the power demand is in between 100-300and
  • So for the rest of the  time its above 593w
  • So here the first 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 then Fc should be used and if the power demand exceeds max FC power then battery should be switched back.

Conculsion :

we have Created  a  Simulink model for the given flowchart.

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.