Week - 4
Q1. Implement control logic of a “washing machine” using Stateflow 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
Solution: -
Watching machine:
In our modern day lives, we use several technological marvels to keep up with the escalating pace of this ever-growing world. Some of them have become so common in our daily use that we hardly ever wonder how these technologies work at their core. One such example is the washing machine that we can use to clean our dirty laundry.
The working principle of a washing machine is centrifugation. Centrifugation is a separation process that uses the action of centrifugal force to promote accelerated settling of particles in a solid liquid mixture.
Input: -
Step-1
Implement control logic of a “washing machine” using Stateflow 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

Step-2
After implementation, go to the symbol panel & select the assignment variable
Step-3
we can provide input condition for turning ON & OFF of the power supply & water supply.
‘1’ is indicate power supply & water supply ON.
‘0’ is indicate power supply & water supply OFF.
Step-4
Connect display & lamp for the indication of the ON & OFF of the washing machine.
Parameter symbols

Output
1) If the washing machine power supply=0 & water supply=1 then show the output. so, system is not active.

2) if the power supply=1 & water supply=0 show the power supply are active but system is not activated.

3) If the machine power supply=1 & water supply=1 show the display, lamp is indicated system are active.

Result: -
We can Simulink susses fully washing machine using state flow chart & susses fully run the model as per given condition.
Q2. 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.
Solution: -

As show in fig manual transmission as synchronous gears or continuous mashed gears are kept. (In Automatic Transmission planetary gears are used) Based on the speed requirement the gear is shifted using the gear knob, which in turn makes the collar gear to get meshed with the appropriate gears. The out put shaft is connected to the collar gear, hence whichever gear great gets meshed with the collar gear will be the output shaft.
During the gear shifting process, it is mandatory that the input shaft is disengaged from the engine. This is done with the help of the clutch plate (torque convertor in case of the Automatic Transmission).
Gear shift logic Simulink chart:

Step-1
Create a chart by using a given information.
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
Step-2
After interring the all information in the chart then go to the symbols pane and allot the input & output variables.
Step-3
Then if you can use the slider gain block & constant block, constant block connected to the slider gain (slider gain are indicate the speed input) & slider are connect to the input of the gear system.
Step-4
Display are connected and also lamp are used & they are connected to the all 4 display & lamp are indicate which gear is active they are indicate in green colour otherwise they are indicated red colour.
Output: -

If, we can show symbols chart ‘X’ is indicate the speed & G1, G2, G3, G4, G5. indicate the gear. If see the output G2 are indicate green light and speed is 18 Kmpr.
We can vary the speed output of the gear box are vary, we can increase or decrease the speed, gear will be change as per given speed.
Result: -
we can Simulink the gear shifting as per given information & run model and find result.
Conclusion: -
- We can study the washing machine and how to operate.
- We can study the Manual gear shifting & how to shift the gear as per requirement of given speed.