washing machine logic State flow | Gear shift logic State flow
1) 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 50s
The logic for washing machine

Chart diagram:

The two inputs are given for the power and waterline .once the input feeded the chart does the process of washing machine and lay the output for each process.
1)Power 2) waterline 3)Soaking 4)Washing 5)Drying 6)Finish point
After all the processes have completed turn on the finished LED
2. 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.
Block diagram:
the blocks are been designed using the requirements given above

Gears are generally used to reduce the speed of the engine using the "slider block" the speed is varied and feeded to the chart and then display the gear requirements from the chart.
Chart :
the speed accordingly set to the logic with the respective given above table.
