Control Logic for Washing machine and Gear shift
Aim:
To implement the control logic of the washing machine and gear shift according to the provided requirements.
Requirements:
Washing Machine:
- 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
Gear shift:
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.
Block Diagram:
Washing Machine control logic:

Washing Machine main model:

Gear shifting Control Logic:

Gear shifting Main Model:

Explanation:
Washing Machine control logic:
There are some initial conditions to check before running the washing machine. That includes the power state and the water supply. If there is a power supply given to the washing machine and the water is provided to the drum, the set of a sequential process is performed. That includes soaking, washing, rinsing and drying of clothes. Based on the requirements, there is a delay between two consecutive steps. The output parameters are provided and the signals can be seen using a display and the end of every process, the lamp colour changes to provide the indication for the completion of the step.
Gear shift control logic:
Based on the parameters and the conditions provided, slider block with a constant multiplier can be provided as an input to the model so that the input can be varied. The shifting of gears based on the speed range can be given as the condition and the gear number is provided as the output signal inside the state. The output signal is provided to the display block to show the current gear at a provided input speed.
Results:
Washing Machine:

When both water and power supplies are provided, the sequential operations are performed and the result is indicated with the help of the lamp at the end of every process.

Based on the control logic, when both water and the power is supplied, the sequence is processed. If there is no water or power supply, the whole process gets stopped. Here as there is no supply to water, the sequence was stopped.
Gear Shifting:





It can be clearly seen that based on the requirements and the conditions provided, the gear shifting is done and the required gear number is displayed at the provided input speed.