Week - 4
Aim:
To give the control logic for washing machine and gear transmission using stateflow chart in simulink
Objective:
Giving the control logic for washing machine according to the time sec for each process
Giving the control logic for gear transmisson according to the speed the change of gear
Procedure:
- Create a chart block by given conditions
- Is power and water is off it gets terminated
- When everthing is on soak gets activated for 200sec
- Then after completed 200sec washing gets activated for 100sec
- Then rinse gets activated for 20sec
- After rinse dry for 50sec
- Lamps are given for every process
- And scope is given for the observation
input:
power on,water off:t=0sec


power on,water on t=10sec;


t=210sec;


t=340sec;


t=400sec;


subsystem:

(2)gear transmission:
Procedure:
- Create a chart block by given conditions
- If igintion is off it will get terminated
- If speed is 0-15 then it will be in 1st gear
- If speed is above 16-25 then it shifts to 2nd gear
- If speed is above 26-40 then it shifts to 3rd gear
- Is speed is above 41-60 then it shifts to 4th gear
- Is speed is above 61 it shifts to 5th gear
inputs:
ignition on speed=0:


speed=0-15,gear-1;


speed=16-25,gear-2;


speed=26-40,gear-3;


speed=41-60,gear-4;


speed=61,gear-5;


subsystem:

Conclusion:
By the given conditions we have successfully given the inputs for washing machine and gear transmission and observed the varitionn change using scope.