Challenge

Project 1

Aim:-  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 100w

Operating region of FC is 100w to 900w

And max power demand is set till 900w to 1200w.

Simulink Model Given below

Signal Builder :-  Create and generate interchangeable groups of signals whose waveforms are piecewise linear. The Signal Builder allows you to create interchangeable groups of piecewise linear signal sources and use them in a model.

For the power demand values between 0 and 1200 the signal is created as a drive cycle in the signal builder block as shown below.

The waveform structure can be varied by clicking each node and dragging it as required.

A Simulink model for this power sharing is being created by using basic blocks like

  1. Interval test block
  2. Switch
  3. Sum
  4. Constant
  5. Signal builder
  6. Scope

Steps for creating the Simulink model

Step 1:

            Place signal builder block and create the required signal for the power demand.

 Step 2:

            Place the  "Interval test" block and set the maximum value above which the power demand will be supplied by the battery. 

Put all the values in 3 interaval Block as Per above given condition

Output:-

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.