Challenge

Week - 4

1.Implement control logic for washing machine using state flow.

Here we are trying to simulate working of washing machine using state flow.

The main requirement for WM to work is power supply and water availability. So these two parameters act as input to the system.

Working of WM: only when the input conditions are met, the washing machine starts operating. the first process is soaking and happens for 200 secs which is indicated as a delay(using 'after' command) for washing block to start off with.Later washing happens for 100 sec,followed by rinsing for 20sec.

After this stage,water supply is not required as the next stage is drying.hence we turn off the water supply with exit command.

drying happens for 50 sec and this marks the end of process indicated through finish LED.

2.implement the control logic for 'Gear shift' using state flow.

Requirement

Speed(kmph) Gear

0-15 1

16-25 2

26-40 3

41-60 4

61 and above 5

with this requirement, speed acts as the input here, which is provided as a condition to shift gears.The states being different gears.If the speed excedes certain range it shifts to next gear at the same time if speed falls back to lower value, gear comes down too.Any speed over 60 is considered to be in 5th gear.

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.