Challenge

Week - 4

  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:- Implement control logic of a “washing machine” using Stateflow as per given sequence

Objectives:-

  1. Understand and implement the logic control of a State Machine using Stateflow
  2. If the power supply is available, the system gets activated
  3. If the Water supply is not available, stop the process & indicate through LED
  4. Soaking time should be 200s followed by Washing time of 100s.
  5. 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 :-

control logic of washing machine.

** 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 Green light will glow indicating the processes are succesfully completed!

Conclusion :-

  1. The logical control of the state machine could be executed as per required.
  2. The real time chnages in the simulation could also be observed if the simulation time is set to infinity.
  3. More features could be added like different modes of washing.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.