Challenge

Week - 4

Que: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

Aim:To implement control logic of washing machine using stateflow

Simulink model:

Procedure:

  • The chart block is taken.The control logic is given in the chart.
  • The power supply and the water supply are the input.
  • The power and water supply are made ON and OFF through a switch
  • The switch is connected to the contant block.
  • Lamp is selected.And the lamp is connected for the indication of Power,water and process complete.
  • If the power and water supply is present then the process of soaking(for 200s),washing(for 100s),rinsing(for 20s) and drying(for 50s) will take place and once the process is completed the stop lamp will glow green.
  • If the water or power supply is not available then the corresponding lamp will glow red and the process will not take place.

control logic:

When power=0(ie no power is available)

When water supply not available:

When both power and water supply is available:

Que: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.

Aim:To give a gear shift logic using chart

Simulink model:

Procedure:

  • The control logic is given in the chart.
  • The power and the speed are the input.
  • Power input is given to turn and off the engine
  • The switch is connected to turn on and off the power.
  • The speed input is varied using the slider and according to the value of speed,the gear changes and it is indicated through lamp.

Control logic:

When power=0:

When power=1 and the speed is less than 15

When ,16<=speed<=25

When,26<=speed<=40

when,41<=speed<=60

when speed>=61,

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.