Week - 4
Washing Machine Logic:
Block used In the logic:
Constant: For water And power supply.
Slider Switch: To turn on machine and switch off.
State Flow: Control Logic.
Display: To show the output signal.

State flow logic diagram for the washing machine.

Complete structure of the state flow logic plus simulink block Washing machine logic.
I have attached the simulink file with challenge to verify the control logic.
Gear Shifting Logic:
State Flow Logic as per Question:
1st gear 0-15 kmph
2nd gear 15 - 25 kmph
3rd gear 25-40 kmph
4th gear 40-60 kmph
5th gear greated than 60 kmph.

Gear Shift Control logic state flow chart.

Complete Logic diagram.

First Gear.

Second gear

Third Gear

Fourth Gear

Fifth Gear.
This is all related to gear shifting mechanism.
Coclusion: Studdied How to use stateflow control chart, using simulink.