Week - 4
TASK - 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 & indicate through LED
- Soaking time should be 200s followed by Washing time of 100s.
- Then rinsing happens for next 20s & dryer runs for 50s
After all the processes have completed turn on the finished LED
AIM:
- If the power supply is available, the system gets activated
- If the Water supply is not available, stop the process & indicate through LED
- Soaking time should be 200s followed by Washing time of 100s.
- Then rinsing happens for next 20s & dryer runs for 50s
BLOCKS USED:
1.Chart:

2. display:

3. chart:

4. switch:

CHART:

SYMBOL PLANE:
In the symbol plane all values are stored but the same time if any those errors in chart it will display symbol plane and find them.

SIMULINK MODEL COMPLETED:

All the LED glows from green it means the process is completed.
#####################################################################
TASK - 2
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.
AIM:
Make a Simulink chart for the “Gear shift” logic as per below conditions.
Speed range varies from,
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
COMMONLY USED BLOCK:
The commonly used blocks are,
- Chart
- Display
- Lamp
- Throttle pedal
CHART:

In the chart we have to programed by variying speed from first to fifth gear.
0 to 15 speed upto First gear
16 to 25 speed upto second gear
26 to 40 speed upto third gear
41 to 60 speed upto fourth gear
Above 61 speed upto fifth gear
SIMULINK MODEL:
1st gear:
In the 1st gear speed range 0 to 15, the plot can be displayed.

2nd gear:
In the 2st gear speed range 16 to 25, the plot can be displayed.

3rd gear:
In the 1st gear speed range 26 to 40, the plot can be displayed.

4th gear:
In the 1st gear speed range 41 to 60, the plot can be displayed.

5th gear:
In the 1st gear speed range above 60, the plot can be displayed.

################################ THANK YOU ###################################