Week - 4
1>
simulink stateflow chart model in figure s1
Chart sub model figure s2
power and water is given as input signal as switch
If water supply switch is not turned on then the process is stopped and finish led is turned on.
working
Based on the power and water supply, soaking , washing, rinsing, drying process are carried out each
for a set of predetermined time and after all the process are finished finish led is lit.Additional
set of leds shows what process is carried out currently.
Only when power and water are switched on the process is carried out.
Result:
Figure s3 only power button is turned on water is not turned on the machine directly goes to finish and
the operation is stopped
Power and Water turned on the machine runs for 400 sec and all process is completed
Figure s4 Soaking for 200 secs indicated by light
Figure s5 Washing for 100 secs , indicated by light
Figure s6 Rinsing for 20 secs, indicated by light
Figure s7 Air dry for 50 secs, indicated by light
Figure s8 Finish all process completed ie washing done , indicated by light
Figure s9 and Figure s10 simulation graph
Inference
From the graph
Power and Water is turned on soaking is done for 0 to 200 secs
washing is done from 200 to 300 secs
Rinsing is done from 300 to 320 secs
Air drying is done from 320 to 370 secs
after 370 secs all process is done , finsh light is turned on to notify the user
2>
Simulink model figure s12
chart figure s13
simulation
the model displays the gear number corresponding to the speed given
speed(series of acceleration and deceleration) is given as repeating sequence figure s14
Figure s15 input-speed of car output-gear number corresponding to the speed
Figure shows the gear shifted up and down as speed increases and decreases
Conclusion
Stateflow logic for washing machine and gear shift is created and tested.