Challenge

Week - 4

1) Answer:

Aim:

To implement the control logic of a washing machine using stateflow in simulink.

Objective:

1. To implement the control logic of a washing machine using state flow as per given sequence

  • If the power supply is avabilable the system gets activated.
  • If the water supply is not availabe stop the process & indicate through LED.
  • Soaking time should be 200s following by washing time of 100s
  • Then rinsing happens for next 20s & dryer runsfor 50s.

Block diagram of model:

Chart Digram:

Parameters:

We have given water,soak, washing, rinsing, dryer, cycle as Output of the chart. We have given our water_supply & power_supply as Input of the chart.

Simulation time parameters:

We used 430sec, so that it can cover the whole cycle and sufficent time to store and solve the parameter.

OUTPUT:

As we can observe ferom above figuer, all the states have been executed and indicating the process completion indicator all showning Green.

CONCLUSION:

The simulation of the Washing machine using state flow is done and the result is satisfactory.

2) Answer:

AIM:

To make a simulink chart for the Gear shift logic.

OBJECTIVE:

Making a simulink chart for the Gear shift for the below mentioned parameter.

Speed Range(Kmph) Gear

0 to 15 1

16 to 25 2

26 to 25 3

41 to 60 4

Above 61 5

Simulink Model:

The file which contains the model of Gear shift is attached with this report.

Block diagram of model:

Chart diagram:

Parameter:

Here we give speed as an Input & Output for the chart.

Simulation Time Parameter:

Here we gave time as 'inf' for our simulation should run until we stop it.

INPUT:

We use slider gain to provide input to the chart.

OUTPUT:

The Output produced is recorded when it's displaying the each gear.

Gear-1:

speed range: 0 to 15Kmph.

Input speed: 10Kmph.

Colour: Green.

Gear-2:

Speed range:16 to 25Kmph.

Input speed: 20Kmph.

Colour: Blue.

Gear-3:

Speed range: 26 to 40Kmph

Input speed: 30Kmph

Colour: Light Blue

Gear-4:

Speed range: 41 to 60kmph.

Input speed: 50Kmph

Colour: Pink

Gear-5:

Speed range: Above 60Kmph.

Input speed: 80Kmph.

Colour: Red.

CONCLUSION:

Created a state flow for Gear shift using simulink and the results are satisfactory.

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.