Challenge

Week - 4

Task:1

Aim: To IMplement control logic of a washing machine using stateflow in simulink

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

Model:

model of washing machine in simulink

Note:

parameter consider while create thee model

value '1' mean there is inputs and '0' means is no inputs

when lamp shows green the task in process and when shows red the task ends

Chart diagram:

Inputs parameter and output parameter

we have given the inputs as water ,soak,washing ,rinsing,dryer,cycle as outputs of the chart and we have consider water_supply and power_supply as inputs values

Results:

There are two condition asked in create model

Condition:1 is create model when the water supply is off

From above model we conclude that ,we can see that clearly indicate of lamp is showing Red color hence there no supply

Condition:2 is created model when water supply is on

Now we providing the water supply in this case

From above model we conclude that ,we can see that clearly indicate of lamp is showing green color hence there is supply water and indicates the process complection.

conclusion

The simulation of the washing machine using state flow is done and results are satisfactory

simulink model link

https://drive.google.com/file/d/1hxJQtjUjrTMrw_RyzDV_KfNE53X3EDO_/view?usp=sharing

---------------*********--------------------------*********-------------------------

Task:2

Aim:To make the simulink chart for the Gear shift logic

Objective :

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

Block diagram of model

Condition:

Speed Range(kmph) Gear color

0 to 15 1 green

16 to 25 2 yellow

26 to 40 3 purple

41 to 60 4 blue

Above 61 5 red

Chart diagram:

Inputs parameter and output parameter

Note : we given speed as speed an input and we gear as output

simulation times as 'inf' simulation should run until we stop

Inputs : we use slider gain provided input to chart

Results :

The outputs produced is recoreded in diiferent speed range

Gear :1

speed range 0 to 15 kmph

input speed given is 12 kmph

color :green

Gear :2

speed range 16 to 25kmph

input speed given is 22 kmph

color : yellow

Gear :3

speed range 26 to 40kmph

input speed given is 35 kmph

color : purple

Gear :4

speed range 41 to 60kmph

input speed given is 50 kmph

color :blue

Gear :5

speed range 60 and above kmph

input speed given is 80 kmph

color : red

conclusion

The simulation of the Gear shift using state flow is done and results are satisfactory

simulink model link

https://drive.google.com/file/d/1DgG4Id4rzegg8N-LonQkeepqRG-U-FVz/view?usp=sharing

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.