Challenge

Week - 4

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

2.BLOCKS USED:

  • Slider switch
  • Display
  • Lamp
  • Chart
  • Constant

3.EXPLANATION:

If power supply is ON the system is activated and if water supply is not available LED will glow and the system process will

stops.

When both WATER and POWER SUPPLY in ON state;

After all process have completed the finished LED will glow.

SIMULATION CIRCUIT:

CONCLUSION:

Hence i have Implemented control logic of a “washing machine” using Stateflow.

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

BLOCKS USED:

  • Chart
  • slider switch
  • constant
  • display
  • lamp

EXPLANATION:

STATE 1: If speed is (0-15kmph)

STATE 2: If speed is (15-25kmph)

STATE 3: If speed is (25-40kmph)

STATE 4: If speed is (40-60kmph)

STATE 5:If speed is (60kmph & above)

CONCLUSION:

Hence a simulink chart for gear shift logic for the given conditions are made.

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.