A control logic for a washing machine through simscape in Matlab
Aim:
To code a control logic for a “washing machine” in MATLAB
Simscap:
It enables you to rapidly create models of physical systems within the Simulink environment.
With Simscape, you build physical component models based on physical connections that directly integrate with block diagrams and other modelling paradigms.
Case 1
Objective:
- To code a control logic for 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
Block Used:
following blocks are used in Simulink to make this project
- constant
- Switch
- Chart
- Bulb
Simulink block diagram:

Inside chart

Output
Here can sense the Bulb 💡 indicator whether the process is going or not and after completing process completed bulb 💡 will blink.