Week - 4
Link:https://drive.google.com/drive/folders/1ztwVV7bK2z6Ctl2XoUV5dItRwaVfVr-H?usp=sharing
Task-1
AIM:
To implement control logic of a washing machine using state flow as per given sequence
OBJECTIVE:
- To implement control logic of a washing machine using state flow as per given sequence
- If 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 200s followed by washing time of 100 sec.
- Then rinsing happens for next 20s & dryer runs for 50s. after all the process have completed turn on the finished LED.
MODEL

Parameters
1.Value ‘1’ there is input
2.Value ’0’ there is no input
Conditions
1.When lamp shows ’Red’ The task not completed.
2.When lamp shows ‘Green’ task completed
CHART DIAGRAM:

Parameters

We have given water, soak, Washing, rinsing, Drying cycle is the output of the chart.
We have given Water supply and power supply as inputs of the chart
Simulation Time parameter
We used 400sec so that I can caver the whole cycle and sufficient time to store and solve parameters.
RESULT:
Condition1 Power supply ‘ON’
We should not provide water supply and check for output.

Condition2 When water supply is ON

The Green light shows process completed
CONCLUTION
The Simulation Using Washing machine using state flow is done and result satisfactory
Task2
AIM:
To make a Simulink chart for the Gear Shift logic
OBJECTIVE:
Making Simulink chart for the Gear Shift for the below mentioned parameters
Speed(kmph) Gear
0-15 1
16-25 2
26-40 3
41-60 4
Above 61 5
MODEL:

CHART DIAGRAM:

Parameters
Input: Speed
Output: Gear

INPUT:
We use ‘Slider gain’ to provide input to the chart
Set input to the speed 35kmph using slider gain

Set the input to the speed 68kmph using slider gain

In the above Model we used slider gain block for variable speed and connect to control logic state flow block. Display block is connected to control logic to see which gear is running and also used lamp for better graphic presentation to user
CONCLUTION
We can include that we se simulated the gear shifting control logic with help of state floe and got satisfactory result