Week - 4
task 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
After all the processes have completed turn on the finished LED
when all system is active and cycle is completed.

in side the chart

now when water supply is cut off

as we observed all above figures we see that when the water supply is cut off the all lamps are off thnat means no operation takes place in the washing machine , but when we start the water supply and power supply the all process is take place in the flow and in last we se the cycle lamp in in active possition.
taqsk 2
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.
the image below is chart flow of gear shifting mechanisum

in this chart we have use sliding gain for changing the gears.
the image below represents the flow diagram of the the mechanisum.

the following image shows the color representation of diffrent gears.

in first gear

in second gear

in third gear

in fourth gear

in fifth gear
