Week - 4
Aim: Implement control logic of a “washing machine” using State flow as per given sequence.
- Objective: -
- 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.
How does the washing machine work?

Power Supply- A washing machine is a household electric appliance which uses water for washing, therefore a particular power supply system is employed that is designed to prevent leakage of electricity in the washing machine.
Water- In the washing process, the water acts as a solvent for dissolving and separating tasks compounds in stains out of clothes.
Soaking- The Soak cycle is for use with most soaking aids to loosen embedded soils and stains. The washer turns off at end of the pre-wash and soak cycles. It must be reset for the desired wash cycle. Detergent must also be added again for the desired wash cycle.
Rinse- The dirty, soapy water is drained, then the washing machine is refilled and your clothes are "rewashed" in clean water.
Dryer- They work by pushing warm dry air through your wet washing to extract moisture, then cooling the now humid air in a heat exchanger to condense the moisture, which is collected in a tank or pumped down the drain. Now the dry air is reheated and the cycle repeats.
When all this procedure completes the task is finish and the clothes are now washed.
Results as per given condition in the question-:
If the power supply is available, the system gets activated.

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

When the all conditions are fulfilled the washing machine runs successfully.


Conclusion- To complete the whole cycle of washing machine you need the power supply and water. then the all things are happening automatic and we achieved our finish tasked. From two thing water and power supply are not present in this task we cannot complete the process.
Aim: Make a Simulink chart for the “Gear shift”
Objective:
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.
Working of the Gear:


When the speed of the car is in between 0 to 15 the position of the gear is in 1

When the speed of the car is in between 16 to 25 the position of the gear is 2

When the speed of the car is in between 26 to 40 the position of the gear is 3

When the speed of the car is in between 41 to 60 the position of the gear is 4

When the speed of the car is above 61 the position of the gear is 5
