Challenge

Week - 4

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

a.If the power supply is avilable, the sysytem gets activated.

b.If the water supply is not available, stop the process and indicate through LED.

c.Soaking time should be 3000s followed by washing time of 100s.

d.Then rinsing happened for next 20s and dryer runs for 30s.

Simulink model :

Block used in model are :

switch, constant,chart,display,and lamp.

Parameters :

1.Value 1 means there is input of 1.

2.Value 0 means there is no input .

Conditions :

1.When lamp shows green then the task is in progress.

2.When lamp shows red the task ends.

Chart blocks :

Stage 1 : when the water supply is off.

Paramaters :

1.Value 1 means there is input of 1.

2.Value 0 means there is no input .

Conditions :

1.When lamp shows green then the task is in progress.

2.When the lamp shows the red task ends.

From the above odel, the indicator of the water is shown red. When there is no water supply the process is terminated and LED indicator iss used to indicate the state.

Stage 2 : when the water supply is on.

Paramaters :

1.Value 1 means there is input of 1.

2.Value 0 means there is no input .

Conditions :

1.When lamp shows green then the task is in progress.

2.When the lamp shows the red task ends.

In the above modelthe water supply is on, then all states of model has executed and the process completes indicator cycle. First two stages are shown as green signal.

2.To make the simulink chart for the gear shift for the below mentioned parameters :

[Speed range(kmph)] [gear]

0 to 15 1

16 to 25 2

26 to 40 3

41 to 60 4

above 61 5

Block diagram :

The above simulink model represents the gear shifts.

Blocks used in the model are :

Constant,slider gain,chart,display,and lamp.

Lamp colours acccording to speed range :

Chart diagram :

Simulation time parameters :

Slider gain as iput :

Output of the model gera shift :

The output produced is reached is recorrded in the display for each gear shift.

Gear 1 :

Speed range : 0 to 15kmph

Input speed : 10 kmph

color : Green

Gear 2 :

Speed range : 16 to 25kmph

Input speed : 20 kmph

color : Blue

Gear 3 :

Speed range : 26 to 40kmph

Input speed : 30 kmph

color : Red

Gear 4 :

Speed range : 41 to 60kmph

Input speed : 50 kmph

color : Yellow

Gear 5 :

Speed range : Above kmph

Input speed : 80 kmph

color : violet

These are the above gear shifts descriibed with speed range and input speed and colour.

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.