Week - 4
1. Implement control logic of a “washing machine” using Stateflow as per given sequence:
parameters:
constant value and display and indication light lamp.
working:
when constant value given 1 in input. power supply is available and the system gets activated then the process gets started after completed the process finish indication lamp will be activated.
when constant value given has 0 in input. water supply is not available so stop the process and indicate through LED.
2. Make a Simulink chart for the “Gear shift” logic as per below conditions
parameters:
slider and constant value and five display and five gear indication light lamp.
connection:
slider and speed meter connected to the constant value and output of 5 charts is connected to 5 display and five display connected to five lamps.
working:
In charts, five states are created each state are implemented each gear. when the run-time (INF) slider moves slightly then the first gear is less than 15. display is 1 and first gear lamp indication will be indicated. and greater than 16 first gear display will zero and first gear lamp will off condition and the second gear will be displayed and indicates lamp.