Challenge

Week - 4

Aim - To Implement control logic of a “washing machine” using Stateflow.

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

Model -

simulink model -

stateflow model-

Parameters-

we have given 'Power_supply' and 'water_supply' as input of the chart.

and we have taken water,washing ,soak,rinsin,dryer,cycle as an output.

Simulation Time - we have taken 400 sec as the simulation time that we can achieve all the desired outcome and store values and solve the simulation.

symbols-

Output -

Acc. to given question we have to apply two conditions -

  1. when water supply is off -

we have disconnected the water supply and than checked the outcome -

we didn't get any output due to unidentified errors.

2. when water supply is on -

now we are providing the water supply and now we have to checked output.

we didn't get any result due to unidentified error.

Conclusion - the simulation of the given conditions is unable to simulate due to mass errors.

Challenge -2

Aim - To Make a Simulink chart for the “Gear shift” logic.

Objective - To 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.

Model -

simulink model-

Stateflow model -

Parameters - we have taken 'speed' as and input and 'gear' as an output parameters.

Simulation Time - here we have given time as 'inf' to run our simulation continuously till we stop it.

Output- Due to unidentified errors , we didn't get any result.

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.