Week - 4
1.Washing Machine Stateflow:
Following Stateflow details on the washing cycle. Flow char is prepared for the process with the given inputs. The status are indicated using LEDs.


a) If the power supply is available, the system gets activated &
b) If the Water supply is not available, stop the process & indicate through LED
Switch On power supply, Water supply is off

c) Once both Water and power are avialable, The process will starts --> Soaking --> washing-->Rinsing-->Drying-->End. At the end of the sequensing, all the status will be turned done which are indicated as green LEDs.
This Successufully completes the Washing cycle using Stateflow/Flowchart.
2. Gear Shift Indicator taking Speed as the input
The stateflow/flow chart is shown below, Speed is being taken as the input and gear shift is the response. As the speed increases, the gear indicator changes, and dispalyed according to the condition given.

The Speed is varied using a slider gain, the gain increasing gain simulates the increase in speed. The input is given to Gear box module. The gear out put is disaplyed for various speed.
1St Gear at speed 10

2nd Gear at speed 20

3rd Gear at speed 30

4th Gear at speed 50

5th Gear at speed 65
