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

ans:As shown in the above image we have designed the state flow for washing machine control.

After completing the process an green lamp is turned on.

water and power are the inputs.

washing ,rensing,drying,soaking are the outputs.

For 200 sec soaking of cloths is in process.

After soaking for 200 sec next 100 sec washing process is performed.

After soaking and washing next 20 sec is given for rinsing.

Final stage is the drying stage which is carried out for 40 sec ,to dry the cloths .

As all the process has been conducted so the ligh indicates the cloths are completely washed.

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

Ans:At different spped different gear is used and this gear shift can be observed from the indicator light.

when speed increases gear also increased and speed decrease gear get aslo reduced respectively.

engine and speed are the inputs.

1-5gears are the output.

The green engine light represent that engine is in the on state .

As we varry our speed gear gets automatically changed for 1-5 as per speed.

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.