Challenge

Week - 4

AIM 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

After all the processes have completed turn on the finished LED

Solution:

Model logic of automatic washing machine is built here, the state flow blocks are used for operating the various washing sequence.

Two switches used to provide power supply and water supply input to the state flow blocks.

State flow steps:

  1. If power supply is ON the machine will power ON,
  2. If water supply is ON the machine will jump to next sequence, if not machine will stop the process
  3. Once water is ON the machine will follow soaking sequence for 200 sec
  4. After that machine will follow washing sequence for 100 Sec
  5. After washing 20 sec for rinse
  6. After rinsing 50 sec dryer process will run,
  7. Washing finish indication will be generated

simulink model

state flow diagram and symbol pane:

simulation sequence:

1. power supply on only:

2 water supply ON:

3 soaking, washing, rinsing and drying sequence:

sequence of operation plot:

AIM 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.

Solution:

Gear Shift mechanisum model is designed using state flow blocks, variable speed input is provide to the state flow block.

speed input is generated using a slider from dashboard library, 0-100 km range is used for this model.

speedometer from dasboard library used to display the speed,

state flow chart:

symbole pane: speed is used as a input data and G is for output data:

sate flow block connditions are mentioned as per the table

Speed Range(kmph) Gear

0 to 15 1

16 to 25 2

26 to 40 3

41 to 60 4

Above 61 5

plot for various speed

Plot at various speed attached:

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.