Challenge

Week - 4

Q1)

WASHING MACHINE

To build a state flow logic operation for a washing machine. The steps followed in the washing machine are mentioned below.

  • Soaking
  • Washing
  • Rinsing
  • Drying
  • Finish

The state flow chart is shown below.

As per the given condition, Logic follows certain steps

Power and water supply are essential things, So the signal is provided in the logic, and led indicator is used to represent whether power and water supply are ON.

Soaking of clothes is the first step here, soaking is done for 200 seconds as per the given condition after that clothes followed by washing, time taken is 100 seconds. As washing time completed clothes goes for rinsing for 20 seconds. The final process is drying(50 seconds) the clothes.

Q2) Gear shift logic

Speed Range(kmph) Gear

0 to 15 1

16 to 25 2

26 to 40 3

41 to 60 4

Above 61 5

The speed-based gear shift logic model is built using state flow in Simulink interface. Conditions are given.

Above image shows that when vehicle reaches above 60 KPH, as per the logic gear shifts to 5th.

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.