Challenge

Week - 4

1)Implement control logic of a “washing machine” using Stateflow as per given sequence:

  • Soaking time should be 200s followed by Washing time of 100s.
  • Then rinsing happens for the next 20s & dryer runs for 50s

State flow: state flow is a graphical representation of logic that helps solve a given problem by giving required instructions in flowcharts.

steps to follow to draw a chart:

  1. first, open the chart block of Simulink.
  2. From the editor toolbar, drag one or more tools that help to build the flow chart
  3. Eg: state, junction, default transition, etc.
  4. add traditions in between the state tools.
  5. provide the connection between Simulink and chart by using simple blocks.

Flow chart:

Flow charts are prepared by using tools like steps, transition, etc.

the inputs and outputs are given according to the rules given in the above questions.

If the power supply is available, the system gets activated

If the Water supply is not available, stop the process & indicate through LED

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

26 to 40 3

41 to 60 4

Above 61 5

Give speed input while the simulation is running & display the gear number.

Flowchart:

the above inputs are given according to the rules which are provided in the question.

the required symbols are used to give input to the next step.

Blocks used to prepare the flowcharts are:

custom gauge

  1. constants
  2. display
  3. chart

steps to follow to draw a chart:

  1. first, open the chart block of Simulink.
  2. From the editor toolbar, drag one or more tools that help to build the flow chart
  3. Eg: state, junction, default transition, etc.
  4. add traditions in between the state tools.
  5. provide the connection between Simulink and chart by using simple blocks.

Flow chart:

Outputs:


conclusion:

the control logic of washing machine working and gear shift are prepared by using Simulink.

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.