Week - 4
Problem Statement 1
Aim : To devise the control logic of washing machine in Simulink.
Objective :
- If the power supply is available, the system gets activated.
- If the Water supply is not available, stop the process & indicate through LED.
- Soaking time should be 200s followed by Washing time of 100s.
- Then rinsing happens for next 20s & dryer runs for 50s.
Stateflow Diagram

When Power is 'ON' and Water Supply is 'OFF'

When Both Power and Water Supply is 'ON'

Problem Statement 2
Aim : To make the gear shift logic with varying speed in Simulink
Objective :
Make a Simulink chart for the “Gear shift” logic as per below conditions:
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
Stateflow Diagram

Simulink Model

Colour Coding Used for Gears

First Gear
Input Speed - 13 kmph

Second Gear
Input Speed - 20 kmph

Third Gear
Input Speed - 37 kmph

Fourth Gear
Input Speed - 55 kmph

Fifth Gear
Input Speed - 70 kmph

Conclusion
The Stateflow logic of simulation for Washing Machine and Gear Shift has been created and simulated successfully.