Week - 4
Ans 1:
AIM: To control the working of Washing M/C.
Given Condition:
- 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
After all the processes have completed turn on the finished LED
Solution:
The block diagram for such cases are as follows:

Notification for Power Supply and Water Supply:
1: Flow is ON
2: Flows is OFF
Colour notification regarding the LED lamp:
For Operation LED:
Operation ON: Green
Operation OFF: Red
For Finished LED:
Operation Not Started: Grey
Operation ON: Green
Operation Finished: Red
The Washing M/C Configuration are as follows:

Ans 2:
AIM: To make a Simulink chart for gear shift
Given:
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
The required block diagram for such problem are as follow:
To define above value we have use the repeating sequence block as speed input as shown below
The stateflow diagram for such condition are as follow:
And, the final result of such problem are as follows: