Week - 4
Question 1)
- For power supply availability we kept if the system voltage is more than 230v then logic will be followed otherwise stop.
- For water supply, if input ==1 then follows next otherwise lamp will glow red. and next logic won't execute.
- Total simulation time is kept by adding all the soaking, washing, drying, rinsing time plus additional buffer time to convert Simulink signal to Stateflow signal. Total simulation time was kept for around 450seconds.
The below model shows when the water is not available as well as system voltage is less than 230v. So simulations is stooped and all lamps are red in colour.

The below model shows when water is available with sufficient system voltage. and washing of clothes is done.

Stateflow Logic -

Question 2) According to the below speeds, the system should show the correct gear position.
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5

Logic inside chart -
