Challenge

Week - 4

Q1.

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

BLOCKS USED:

  1. Constant
  2. State flow Chart
  3. Display
  4. Lamp
  5. Toggle Switch

Flow Chart:

Model

1. Soaking (200s)

2. Washing (300s)

3. Rinsing (340s)

4. Drying (370s)

Q2

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.

BLOCK USED:

  1. Toggle switch
  2. Display
  3. StateFlow Chart
  4. Custom Gauge
  5. Slider
  6. Lamp
  7. Constant

STATEFLOW CHART:

MODEL:

1. Speed:- 0kmph and neutral gear

2. Speed:- 10kmph and 1st gear

3. Speed:- 20kmph and 2nd Gear

3. Speed:- 32kmph and 3rd gear

4. Speed:- 45kmph and 4th Gear

5. Speed:- 70kmph and 5th gear

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.