Week - 4
1.Aim: To implement contol logic of a washing machine usinf state flow simulink.
Objective:
- To implement the coontrol logic of a washing machiine using stateflow
- If the power supply is available the syste gets activated.
- If the water is not available stop the process and indicate through LED.
- soaking time should be 200 sec followd by wshing time of 100 sec.
- then rinsing happens for next 20 sec and dryer for 50 sec.
- After processes completed turn on the finished LED.
MODEL.:The file which contains the model is attached with this report.
- we have given WATER, SOAK, WASHING, RINSING,DRYER,CYCLE AS outputs of the chart.
- And WATER SUPPLY, POWER SUPPLLY is given as inputs.
SIMULATION PARAMETERS:
we have given 430 sec so that we can observe the whole cycle and sufficient time to store and solve parameters.
OUTPUT:
CONDITION 1: WHEN WATER SUPPLY IS OFF.
we turn off the water supply toggle switch and observe the output.
- observations are indicator of water is showing red i.e., when there is no water supply process is stopped and LED indicator is indicated.
CONDITION2:WHEN WATER AND POWER BOTH ARE TURNED ON .
- we can observe the all the states have been execMODEL:nd indicating the procees completion indicator shows green color.
CONCLUSION: THE SIMULATION OF WASHING MACHINE USING STATE FLOW IS DONE AND THE RESULT IS DONE AND SATISFACTORY.
2. AIM: TO make simulink chart chart for the gear shift logic.
OBJECTIVE :
Make a simulink chart for the gear shift for the below mentioned parameters.
GEAR SPEED RANGE (KMPH)
1 0TO15
2 16 TO 25
3 26 TO 40
4 41 TO 60
5 ABOVE 60
MODEL: The file which contains the model of GEAR SHIFT is attached with this report.
PARAMETERS: Here we give speed as an input for the chart.
we give speed as outut for the chart.
SIMULATION PARAMETERS:
we put time as infinity as inf, for our simulation run time until we stop.
INPUT: CONSTANT AND SLIDER GAIN ARE USED
slider is connected to chart as input. so changing the speed values from 0 to 100 during the simulation is running.
OUTPUT: The port of output chart is connected to only one display for each gear.
- BY giving the values in lamp such as 1,2,.. we can see the different lights in same switch according to gear shift byslider gain.
GEAR1:
speed range :0 to 15kmph.
input speed: 10 kpmh
color:YELLOW
GEAR2:
speed range:16 to 25kmph.
input speed : 20 kmph.
color:BROWN
GEAR3:
SPEED RANGE:26 to 40 kmph.
input speed 30 kmph.
color:PINK
GEAR4:
SPEED RANGE;41 to 60 kmph.
input speed 50 kmph
color:PURPLE
GEAR 5:
SPEED RANGE :ABOVE 60 kmph
input speed:80 kmph
color:GREEN
CONCLUSION:
THUS CREATED STATEFLOW FOR GEAR SHIFT BY USAING SIMULINK MODEL AND THE RESULTS AREFOUND AND WELL DONE.