Week - 4
1.Implement control logic of a "Washing Machine "using stateflow as per given sequences :
Procedure :
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 .The whole process are -
- SOAKING - Time 200 sec
- WASHING -Time 100 sec
- RINSING- Time 20 sec
- DRYER -Time 50 secBy this steps It goes to recycle .
STATE FLOW :
CONTROL LOGIC OF WASHING machine :
The two inputs are given for the power supply. Once the input are given outputs are displayed by the flowchart as per the given sequence. The system are observed and something then it is chacked and process is completed by green light as displayed.

2.
GEAR SHIFT LOGIC :
A gear shift mechinism for a manual transmission includes a shaft axially movable for selecting shift planes and rotatable for engine the gears defining the shift planes,
| speed range(Kmph) | Gear |
| 0 to 15 | 1 |
| 16 to 25 | 2 |
| 26 to 40 | 3 |
| 41 to 60 | 4 |
| Above 61 | 5 |


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.