Week - 4
TASK-1
AIM-
To implement of control logic of a washing machine using state flow in simulink.
OBJECTIVEl:
1.To implement of control logic of a washing machine using state flow as per given sequence.
a) if the power supply is available,thge system gets activated.
b) if the water supply is not available,stop tghe process and indicate through LED.
c) soaking time should be 200sec and followed by the washing time of 100sec.
d) Then rinsing happens for next 20 sec and dryer runs for 50sec.
BLOCK DIAGRAM:
implementing of control logic of a 'washing machine' using state flow

CHART DIAGRAM- 
SIMULINK TIME PARAMETERS-

* we have given water,soaking,washing,rinsing,dryer,cycle as outputs of the chart.
* we have given water_supply and power_supply as inputs of the chart.
OUTPUTS-
They are two conditions of asked to solve the question
condition-1:when water supply is OFF
we should not provide water supply and check for output

when the water supply is off and the process of terimnated and LED INDICATOR is used to indicator of water is showing Red.
condition-2:when power supply is ON
Now we should provide water supply and check for output

All state has been in executed and indicating the process completion indicator (named as cycle) showing in green
CONCLUSION-
* The simulation of washing machine using state flow is done and results is satisfactory.
TASK-2
AIM-
To make simulation chart of a Gear shift logic.
OBJECTIVES-
To make simulation chart of a Gear shift logic as per below condition.
speed range(kmp) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
above 61 5
BLOCK DIAGRAM-

CHART DIAGRAM-

SUMULATION TIME PARAMETERS-

* Here we give speed as inputs for the chart
* Here we given gear as output for the chart
Inputs-
we are using the slider gain to provide input to chart

we can changing the speed values 1 to 100 using slider gain during the simulation.
OUTPUT-
The output produced is recorded when its display the each gear
Gear-1
speed range:0 to 15
input speed: 10 kmph
colour:green

Gear-2
speed range:16 to 25
input speed: 20 kmph
colour:blue

Gear-3
speed range:26 to 40
input speed: 30 kmph
colour:red

Gear-4
speed range:41 to 60
input speed: 50 kmph
colour:orange

Gear-5
speed range:Above 60
input speed: 70 kmph
colour:purple

CONCLUSION-
* created state flowfor gear shift using simulink and the results satisfactory.