Week - 4
Aim:
1. Implement control IogÍc 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 ot 1OOs.
• Then rinsing happens for next 20s & dryer runs for 50s
After all the processes have completed turn on the finished LED
2.Make a Simulink chart for the "Gear shift?" Ìogic as per below conditions:
Speed Range(kmph) Gear
0 To 15 1
16 To 25 2
26 To 40 3
4 To 60 4
Above 61 5
Give speed. Input while the simulation is running A display the gear number.
PROCEDURE:
WORKING PRINCIPLE OF A WASHING MACHINE:
A washing machine by spinning at 800-1600 rpm helps soap ond dirt with it to leave the surface of the cloth
via centrifugal force ond lnto outlet pipes hence utilizing centrifugation to both clean and partially dry the clothes
loaded in it. Thus the processes are electrically controlled, such as the drum, volves, pump, motor and heating. The
valves opens again and the dirty water drains out of the drums. The pump works to help get rid of the water. The valve
lets clean water in again into the drums. The four 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 - This functlon is available with wash timer, In 42 min of washing 27 min is soak ond 15 min machine
min machine will wash the clothes.
WASHING:
During the wash cycle, a lorge plastic agitator (green) turns oround, moving your clothes are through the water.
When the wash is finished, the pump drains the water from the outer drum.
RINSING:
The dirty, soapy woter is drained, then the washing machine is refilled and your clothes are "rewashed" in clean
water. Spln: All the water is drained completely, then your clothes ore spun very fast and excess water is removed
thanks ro 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 (now dry)
air is reheated and the cycle repeats.
1) STATE-FLOW:
Systematic solution of a problem is possible with sequential, unambiguous and realizable finite process step set. This
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.Elese, it reduces spinning speed if an imbalance is detected. Even distribution of
washing load reduces spinning noise.
The two inputs are given for the power and water supply. Once the inputs are given outputs are displayed by the flow chart as
per the given sequence. The system are Observed for sometime then it is checked and the process is completed by green light as displayed.
2) GEAR SHIFT LOGIC:
A Gear shift mechanism for a manual transmission includes a shaft axially movable for selecting shift planes and
rotatable for engaining the gears defining the shift planes. The shaft is held in a reference shift plane by two helical springs.
Results:
1) Thus 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.
2) A simulink model is created for the gear shift logic and using slider gain the values are obtained.