Challenge

Week - 4

Aim ;

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

To make a Simulink chart for the Gear shift logic.

Objective ;

1. To implement the control logic of a washing machine using stateflow as per given swquence.

(a). If the power supply lis not available, the system gets activated.

(b). If the Water supply is not available, stop the process & indicated through LED.

(c). Soaking time should be 200s followed by Washing time of 100s.

(d). Then rinsing happens for next 20s & dryer runs for 50s.

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

2. Making a simulink chart for the gear shift for the below mentioned parameters:

Gear Speed Range(kmph)

1 0 to 15

2 16 to 25

3 26 to 40

4 41 to 60

5 Above 61

Study 1:-

Simulink Model :-

Chart Diagram :-

Parameters :-

We have given water, soak, washing, rinsing, dryer, cycle as Output of the chart.

We have given our water_supply & power_supply as Inputs of the chart.

Input :-

There are two conditions asked to solve in the question.

condition-1: When Water Supply is OFF.

We should not provided water supply and check for output.

From the above diagram, We can see that indicator of water is showing Red i,e., When there is no indicator is used to indicate that state.

condition-2: When Water Supply is ON.

Now we are providing the water supply and check the output.

As we can observe from the above figure. All the states have been executed and indicating the process completion indicator (named as cycle) showing Green.

Study 2:-

Simulink Model :-

chart diagrams :-

parameters :-

Here we give speed as an input for the chart.

Here we give speed as an output for the chart.

Input :-

We use slider gain to provide input to the chart.

I am changing 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: Orange

Gear 5 :-

Speed range: Above 60kmph

input speed: 80kmph

colour: Red

Conclusion :-

Study 1 :- The simulation of the washing machine using state flow is done and the result is satisfactory.

Study 2 :- 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.

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.