Challenge

Week - 4

  1. Implement control logic of a “washing machine” using State flow 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

Simulation model:

Chart in state flow:

Condition-1: Power supply = OFF, Water Level = OFF

Result:

Power Supply

Water Level

Soaking

washing

rinsing

dryer

End

OFF

Empty

OFF

OFF

OFF

OFF

OFF

Condition-2: Power supply = ON, Water Level = Empty

Result:

Power Supply

Water Level

Soaking

washing

rinsing

dryer

End

ON

Empty

OFF

OFF

OFF

OFF

OFF

Condition-3: Power supply = ON, Water Level = ON

Result:

Power Supply

Water Level

Soaking

washing

rinsing

dryer

End

ON

Filled

ON

ON

ON

ON

ON

  1. 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.

Condition-1: Speed = 15

Result:

Speed

Gear-1

Gear-2

Gear-3

Gear-4

Gear-5

15

X

X

X

X

Condition-2: Speed = 21

Result:

Speed

Gear-1

Gear-2

Gear-3

Gear-4

Gear-5

21

X

X

X

X

Condition-3: Speed = 33

Result:

Speed

Gear-1

Gear-2

Gear-3

Gear-4

Gear-5

33

X

X

X

X

Condition-4: Speed = 42

Result:

Speed

Gear-1

Gear-2

Gear-3

Gear-4

Gear-5

42

X

X

X

X

Condition-5: Speed = 70

Result:

Speed

Gear-1

Gear-2

Gear-3

Gear-4

Gear-5

70

X

X

X

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.