Challenge

Week - 4

AIM:

  1. To implement control logic of a washing machine using Stateflow in Simulink.
  2. To make a Simulink chart for the “Gear shift” logic'.

FOR Q1:

To implement control logic of a washing machine using Stateflow in Simulink.

OBJECTIVE:

To implement the control logic of a washing machine using stateflow as per given sequence:

  1. a) If the power supply is available, the system gets activated.
  2. b) If the Water supply is not available, stop the process & indicate through LED.
  3. c) Soaking time should be 200s followed by Washing time of 100s.
  4. d) Then rinsing happens for next 20s & dryer runs for 50s.

After all the processes have completed turn on the finished LED.

MODEL:

CHART DIAGRAM:

OUTPUT:

Condition – 1: water supply is off

We can see that indicator of water is showing Red i.e., When there is no water supply the process is terminated and LED indicator is used to indicate that state.

Condition – 2: water supply is on

All the states have been executed and indicating the Process completion indicator showing Green.

FOR Q2:

To make a Simulink chart for the “Gear shift” logic'.

OBJECTIVE:

Making a simulink chart for the Gear Shift for the below mentioned paramters:

Speed Range(kmph)

Gear

0 to 15

1

16 to 25

2

26 to 40

3

41 to 60

4

Above 61

5

MODEL:

The model of Gear Shift

Chart diagram:

OUTPUT:

Gear-1:

Speed range: 0 to 15kmph.

Input speed: 10kmph.

Gear-2:

Speed range: 16 to 25kmph.

Input speed: 20kmph.

Gear-3:

Speed range: 26 to 40kmph.

Input speed: 30kmph.

Gear-4:

Speed range: 41 to 60kmph.

Input speed: 50kmph.

Gear-5:

Speed range: above 60kmph.

Input speed: 80kmph.

CONCLUSION:

  • The simulation of the Washing machine using State flow is done and the result is satisfactory.
  • Created a State Flow for Gear Shift using Simulink and the results are satisfactory.
  • https://drive.google.com/drive/folders/1qryV2F3T3uhE2LA8FiutWw_Pbmjd2A2j
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.

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.