Challenge

Implement logic control for washing machine using stateflow

Objective:1.To implement logic for control of washing machine using stateflow.

2.To make a Simulink chart for Gear Shift.

Conditions for control of washing machine.

  • 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 Diagram:

In above block diagram we have used following blocks:

1.Slider switch:It is used to control ON or OFF condition of system.

2.Constsnt:It is used to give input to the system.

3.Chart:It is sequential representation of operations in system by means of block diagram.

4.State:It is a operation in which conditions are programmed and has input and output.

5.Display:It used to display the results.

6.Lamp:It is used to view as a output signal.

7.Scope:It is the output result of system.

Conclusion:From fig we can understnd that the various process of washing machine with desired time interval.

Conditions for gearbox

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.

Block diagram for gear box:

In above block diagram we have used following blocks.

1.Circular gauge(spidometer):It is used to display input speed.

2.Constant:It is input signal to the system.

3.Slider Gain:It is used to vary the input signal while simulation is in process.

4.Chart:It is sequential representation of operations in system by means of block diagram.

In this chart we given 5 different state blocks and for that we have mentioned different conditions for input and output of block. i.e. when input speed is between 0-15 then it will show 1 gear as output. In this way it will show all gear conditions.

5.Display: It is used to show output results.

5 Conditions of gear shift.

1 gear:

2 gear:

3 gear:

4 gear:

5 gear:

Conclusion: From above results we can say that for the sequential operations state flow is very useful.

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.

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.