Week - 4
Task -1 Washing machine logic
Used Blocks- chart, lamp, constant display.
here the whole system is off no power supply and no water supply.


when water supply and power supply are on.

soaking time started after starting the water flow.

soaking and washing time after 200 seconds and 100sec respectively.
rinsing time happens for 20 seconds.

drying time for 10 seconds.


Task - 2 Gear Shifting
used blocks: constant, display, slider, lamp, chart.

Input Parameters

Color Code for different Gear Mechanism

Speed range is 0 to 15 and speed is 0 so it's the first gear.

The speed range is 16 to 25 for the second gear and the speed is 19 so the second gear.

speed range is 26 to 40 for the 3rd gear here speed is 35 so the third gear.

The speed range is 41 to 60 for the 4th gear here speed is 50 so gear fourth.

The speed range is above 61 for 5th gear here it is 65 so fifth gear.

Here is the folder of the .slx file of these examples./ Simulink model link
https://drive.google.com/drive/folders/1JTH2HELeg71n9VgkjMcbeRNuJeuC6wa8?usp=sharing