Week - 4
1. Implement control logic of a “washing machine” using Stateflow :
Working Principal of the Washing machine :
The working principle of a washing machine is centrifugation. Centrifugation is a separation process that uses the action of centrifugal force to promote accelerated settling of particles in a solid-liquid mixture
Processes involved in the Washing machine Represented by the simulation and model :
1. When the power supply is avaialble the system get activated

2. If the Water supply is not available, stop the process & indicate through LED

3. Soaking time should be 200s followed by Washing time of 100s


4.Then rinsing happens for next 20s & dryer runs for 50s

All the processes have been simulated as per the given copnditions
2. Making a Simulink chart for the “Gear shift” logic as per given conditions

As per the speed inputs the gear no. has been displayed in the below figures
1. when speed is between 0 to 15 km/hr , then gear1 will be displayed
taken speed as 14 km/hr

2. when speed is between 16 to 25 km/hr , then gear2 will be displayed
taken speed as 24 km/hr

3. when speed is between 26 to 40 km/hr , then gear3 will be displayed
taken speed as 39 km/hr

4. when speed is between 41 to 60 km/hr , then gear4 will be displayed
taken speed as 59 km/hr

5.
when speed iS above 61 km/hr , then gear5 will be displayed
taken speed as 80 km/hr
