Week - 4
ASSIGNMENT : 1
AIM :-
to implement the control logic of a washing machine using stateflow as per given sequence
OBJECTIVE :-
- if the power supply is available the system gets activated
- if the water supply is not available stop the process and indicate through LED
- soaking time should be 200 sec following by washing time of 100 sec
- rinsing happens for next 20 sec and dry runs for 50 sec
- after the all processes have completed turn ON the finished LED
MODEL :-
the file which contains the model is attached with this report
PICTORIAL REPRESENTATION OF BLOCK DIAGRAM :-

CHART DIAGRAM :-

PARAMETERS :-

we have given water soak, washing, rinsing, dryer, cycle, as per outputs of the chart
we have given our water supply and power supply as inputs of the chart
SIMULATION TIME PARAMETERS :-
used 430 sec so that it can cover the whole cycle and sufficient time to store and solve the parameters

OUTPUT :-
there are two conditions asked to solve in the question
CONDITION :1
we should not provide water supply and check for output

from the above diagram we can see that indicators of the water is showing red when there is no water supply the process is terminated and LED indicator is used to indicate that state
CONDITION 2 :-
- when the water supply is activate
- now we are providing the water supply and check the output

as we can observe from teh above figure all the states have been executed and indicating the process completion indicator named as cycle showing green
CONCLUSION :-
- the simulation of the washing machine using stateflow is done and the result is satisfied
******************************************************************************************************************************************************************************************************
ASSIGNMENT : 2
AIM :-
to make a simulink chart for the gear shift logic
OBJECTIVE :-
making a simulink chart for the gear shift for the below mentioned parameters
speed range (kmph) gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
above 61 5
MODEL :-
the file which contains the model of gear shift is attached with this report
BLOCK DIAGRAM OF MODEL :-

CHART DIAGRAM :-

PARAMETERS :-

here we give speed as an input for the chart
here we give speed as an output for the chart
SIMULATION TIME PARAMETERS :-
here we give time as inf for our simulation should run until we stop it

INPUT :-
we use slider gain to provide input to the chart

im changing my speed values from 0 to 100 using slider gain during the simulation
OUTPUT :-
the output produced is recorded when its displaying the each gear
GEAR : 1
speed range = 0 to 15 kmph
input speed = 10 kmph
color = green

GEAR : 2
speed range = 16 to 26 kmph
input speed = 20 kmph
color = blue

GEAR : 3
speed range = 26 to 40 kmph
input speed = 30 kmph
color = light blue

GEAR : 4
speed range = 41 to 60 kmph
input speed = 50 kmph
color = orange

GEAR : 5
speed range = above 60 kmph
input speed = 80 kmph
color = red

CONCLUSION :-
- created a state flow for gear shift using simulink and the result are satisfied