Project

state flow for washing machine and gear box

  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

by using Stateflow the washing machine model was made

inside the chart flow model

here Two switches are given

1.power

2.water

in the picture show the status of washing (finished or not), water supply in LED.

when power on, water off

when power off, water on

when power off, water off

when power on, water on

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.

By using the state flow Simulink model has been made.

from the above figure, the slider bar is taken to varying the speed and it is assigned to a constant block(speed), the constant block is input to the chart. the custom gauge will show the value of the slider bar.

in the chart, the conditions are assigned as per the problem statement and run the simulation with infinite time conditions. the display shows the gear number with respect to the chart conditions.by varying the slider bar value (speed) display shows the gear number.

below some images are uploaded for reference.

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.