Week - 4
1. Control Logic of a "Washing machine" using Stateflow.
1.1 If Power supply & Water supply are available, then System gets activited

1.2 If Water supply not available, then System gets OFF and indicated by LED.

Here, we provide Power supply and hence System get activated which is indicated by Green lamp i.e System ON.
But, due to water supply not given. Hence all stste of process like Soaking, washing, ransing, Drying process OFF and indicated by Red Lamp.
1.3 If Power supply OFF and water supply ON, then system not activated.

2. Simulink chart for the “Gear shift” logic
Here, Speed is our input which is vary by Accelerator manually. As per given condition, we prepared Chart which is Gear Shifting number shown in Display block.
As we Accelerate upto 15, Gear 1 show in output Display and goes changing Gear shifting number as Accelerator values changes. As below

As Accelerator sliber upto 70 value, then Gear 5 shown in Display as Gear shifting number.

We also trying to show Speed and Gear shifting number by using scope bolck as below.
