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.

state flow chart

Modeling of washing machine in simulink:

1.Toggle switchs

2.constants

3.state flow chart

4.display

5.lamps

when power is available and water is not available, the system gets activated and further processes is stoped due to not availablity of water.

when both power and water is available the system starts working completely,Soaking time 200s followed by Washing time of 100s.Then rinsing happens for next 20s & dryer runs for 50s.

2. Make a Simulink chart for the “Gear shift” logic as per below conditions:

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.

state flow chart

Following are the block setup:

1.state flow chart

2.slider

3.constant

4.display

5.lamps

0-15 1st gear

16-25 2nd gear

26-40 3rd gear

41-60 4th gear

above 60 5th gear

above shows how the gear shifting is done.

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.