Week - 4
1. The objective is to implement the control logic of a “washing machine” using Stateflow
- The solution is performed through a sequence by which the whole process is initiated when there is Powersupply and Water supply
- If the required water supply is acquired then the soaking process is performed
- Soaking time is simulated for 200sec followed by Washing time for 100sec.
- Then rinsing simulates for next 20sec & dryer runs for 50sec
- In the end, End is indicated by the lamp

- If the Powersupply and Water supply is not fed as input, then the whole process will not be simulated
- A Stateflow chart is been developed for the sequential operation of the washing machine

2. The objective is to make a Simulink chart for the “Gear shift” logic for the given speed
- A Slider is connected to the Stateflow chart which acts as the accelerator speed

- An IGNITION condition is given that when the IGNITION==1, the gear shift actuates or else the vehicle is turned OFF

- A Stateflow chart is included to operate the gear shift Logic with the given Speed limit and Gear Ratio
-
Speed Range(km/hr) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
