Week - 4
1. Given Statement: Implement control logic of a “washing machine” using Stateflow as per given sequence:
- 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 50Sec
Using the stateflow control technique it is implemented as shown below

It is checked for different input. Here power supply and water supply are input to the systems
a. Condition when Power supply=1 and Water Supply=0

b. Condition when Power supply=0 and Water Supply=1

c. Condition when Power supply=1 and Water Supply=1

2. Given Statement: 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
Give speed input while the simulation is running & display the gear number.
The above statement is implemented as shown below

Here in this case the speed is the input and the change of gear is the output
Below we have changed the speed for different values such as 25, 61, 45 and gear is changed accordingly
in the output.


