Week - 4
CHALLENGE - 1 : Implement Control Logic of a Washing Machine using State Flow.
Module contain Constant Block, Chart Block, Rocker Switch Block, Lamp Block & Display Block.
- Block Diagram :

- Chart Diagram :

- Parameters :

- INPUT Type given for Power_Supply & Water_Supply & OUTPUT Type Given for Water, Soak, Wash, Rinse & Dry.
- Time taken for Simulation is 400 seconds, so that it can cover the whole cycle & sufficient time to store & solve the parameter.
CONDITION - 1
When Power Supply & Water Supply is OFF -
- Lamp is shown in RED i.e., When there is no Power & Water Supply the Lamp Glows Red.

CONDITION - 2
When Power Supply & Water Supply is ON.
- All Lamp is shown in Green i.e., When the Power & Water Supply is turn On the Lamp of perticular Option (Like Soaking, Washing, Rinsing & Dryer) started glowing according to given time.
CHALLENGE - 2 : Simulation Chart for Gear Shift Logic.
Module contain Constant Block, Chart Block, Slider Gain Switch Block, Lamp Block & Display Block.
- Block Diagram :

- Chart Diagram :

- Parameter :

- INPUT Type given for Speed & OUTPUT Type given for G1, G2, G3 & G4.
- Time taken for Simulation is Infinite, so iyt will run untile we stop it.

INPUT -
- Slider Gain Block is used as Speed Input to a chart. In which Low value is kept as '0' & High value as an '80' as per the requiement.
OUTPUT -
- Gear -1 : Speed Rang : 0-15kmph, Input Speed : 11Kmph, Lamp Color - Green.

- Gear - 2 : Speed Range :16-25Kmph, Input Speed : 22Kmph, Lamp Color - Blue.

- Gear - 3 : Speed Range : 26-40kmph, Input Speed : 34kmph, Lamp Color - Orange.

- Gear - 4 : Speed Range : 41-60kmph, Input Speed : 54kmph, Lamp Color - Violet.

- Gear - 5 : Speed Range : Above 61kmph, Input Speed : 74kmph, Lamp Color - Maroon.
