Control logic of a “washing machine” using Stateflow
Aim:- Implement control logic of a “washing machine” using Stateflow as per given sequence
Objectives:-
- Understand and implement the logic control of a State Machine using Stateflow
- 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**
Blocks Used:-
Constant :- To provide a constant signal to the simulink enviorment
Flowchart :- Implement logic control of the washing machine
Scope :- To view the change of parameters w.r.t time.
Lamps :- Glows according to the alloted signal
Simulink model :-

** Inputs 1 and 0 represents the availability and non-availability of the given inputs respectively**
Sub-systems:-

- This shows the logic of the state washing machine.
- If the water and power supply is available then the machine will proceed its further operations.
- If either of them is absent the machine will stop with an interruption error.
- The rest of the processes are explained in the above state flow chart.
Outputs :-
1) When both the power and water supply is provided:-

The Green light will glow indicating the processes are succesfully completed!
2) When either of the power or water in not provided:-

The red light will glow, indicating the interuption in the process.
Conclusion :-
- The logical control of the state machine could be executed as per required.
- The real time chnages in the simulation could also be observed if the simulation time is set to infinity.
- More features could be added like different modes of washing.