Week - 4
- 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
- Diagram:implementing control logic of a washing mache using stateflow

- If the Water supply is not available, stop the process & indicate through LED (off)

f the Water supply is not available, stop the process & indicate through LED (on)

wehaving given water ,soak ,washing, Rinsing,Dryer,Cycle giving image about the Result
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


created a state flow for Gear Shift
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
im changing speed values from 0 to 80 using slider gain during the simulation