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

Figure 1

Figure 1 shows the stateflow logic of a washing machine

Figure 2

Figure 2 shows the operation of washing machine with no power supply

Figure 3

Figure 3 shows the operation of washing machine with power supply ON and no water input

Figure 4

Figure 4 shows the operation of washing machine with power supply ON and watter is supplied to washing machine and also blue light indicate the process completed

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.

Figure 5

Figure 5 shows the gear shift logic for the given condition

Figure 6

Figure 6 shows the vehicle operating in gear 1 for speed 0 to 15 kmph

Figure 7

Figure 7 shows the vehicle operating in gear 2 for speed 16 to 25 kmph

Figure 8

Figure 8 shows the vehicle operating in gear 3 for speed 26 to 40 kmph

Figure 9

Figure 9 shows the vehicle operating in gear 4 for speed 41 to 60 kmph

Figure 10

Figure 10 shows the vehicle operating in gear 5 for speed greater than 60 kmph

Figure 11

Figure 11 shows the vehicle operating in gear 5 for speed greater than 60 kmph and indicate over speed when vehicle running greater than 90 kmph

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.