Week - 4
OBJECTIVES:
- To implement control logic of a “washing machine” using State flow 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
- 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.
Objective 1:
The washing machine model designed is as shown below:

The state flow logic is as shown below:

The symbols or variables can be declared in the symbol pane as below:

Part 1: If the power supply is available, the system gets activated.

Part 2: If the Water supply is not available, stop the process & indicate through LED

Part 3: Soaking time should be 200s followed by Washing time of 100s.


Part 4:Then rinsing happens for next 20s & dryer runs for 50s


Part 5: After all the processes have completed turn on the finished LED

OBJECTIVE 2:
GEAR SHIFT LOGIC
The model diagram of Gear shift model is as shown below:

The state flow logic is as shown below:

The variables are defined in the symbol pane as shown below:

The following are the different speed conditions given to the gear model during its run and respective gear number is displayed.
Gear 1:

Gear 2:

Gear 3:

Gear 4:

Gear 5:

Results:
The results are achieved as per the objectives given.