Week - 4
ANSWER:
AIM:
The aim of this project is to understand the working of stateflows and create two model with the given objectives
OBJECTIVES:
1. Implement control logic of a "washing machine" using stateflow as per given sequence:
* 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 200s followed by washing time of 100s
* Then rising happens for next 20s and dryer runs for 50s
Graph Chart:

Model of the diagram :



ANSWER
2,
Make a Simulink chart for the “Gear shift” logic as per below conditions:
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
Give speed input while the simulation is running & display the gear number.
block used
* constant
* slide gear
* scope
* display
* chart
CHART

DIAGRAM
1,
speed range 10- 15
Gear =1

2.
Speed range= 16-25
Gear=2

3,
Speed range= 26-40
Gear=3

4,
Speed range = 41-60
Gear =4

5,
Speed range= 60 above
Gear=5
