Week - 4
AIM:-
Question 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
Question :-
2. 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.
ANSWER :- 1
WORKING PRINCIPLE OF A WASHING MACHINE :-
A washing machine by spinning at 800- 1600 rpm helps soap and dirt with it to leave the surface of the cloth via centrifugal force and into outlet pipes hence utilizing centrifugation to both clean and partially dry the clothes loaded in it.thus the process are electrically controlled ,such as a drums,valves,pump,motor and heating. the valve opens again and the dirty water drains out of the drums.the pump works to help get rid of the water. the valves lets clean water in again into the drums.
THE PROCESS ARE :-
SOAKING:-
it is used to dip clothes in detergent water to remove dirt from the clothes. in this function customer need to select soak from a panel. soak the function is available with wash timer ,in 42 min of washing 27 min soak and 15 min machine will wash the clothes.
WASHING:-
During the wash cycle ,a large plastic agitator turns around,moving your clothes through the water.when the wash is finished,the pump drains the water from the outer drum.
RINSING:-
The dirty, soap water is drained,then the washing machine is reffiled and your clothes are "rewashed" in clean water.spin: all the water is drained completely,then your clothes are spun very fast and excess water is removed thanks to centrifugal force.
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.the air is reached and the cycle repeats.
STATE - FLOW :-
Systematic solution of a problem is possible with sequential,unambiguous and realizable finite process step set. This set is called "algorithm" and it is one of the most important part of the programming languages.in this study,it is represented how to learn algorithm by using simulink stateflow.in flow diagram-based algorithm learning.
CONTROL LOGIC OF A WASHING MACHINE :-
it checks for the extent of dirt and grease,the amount of soap,and water to add,direction of spin,and so on.the machine rebalances washing load to ensure correct spinning.else,it reduces spinning speed if an imbalance is detected.even distribution of washing load reduces spinning noise.
Here, input x=1,y=1

input, x=0,y=1
OUTPUT :-
The control logic of a washing machine using stateflow is processed as per the given sequence and LED lights
are turns to the green colour and the system is completed.
ANSWER :- 2
GEAR SHIFT LOGIC :-
A gear shift mechanism for a manual transmission includes a shaft axially movable for selecting shift planes and rotatable for engaging.
The gears defining the shift planes.the shaft is held in a reference shift plane by two helical springs.

OUTPUT :-
A simulink model is created for the gear shift logic and using slider gain the values are obtained.