Challenge

Week - 4

Aim: To Implement and simulate 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

Body of the content:

The control logic of a washing is implemented by taking the following sequence .The system should be off when the power and water is not available .

1."a" is used as indiacted for Power ."b" is used for water in state flow chart.

2.The Soaking time(s) should be 200s.Later washing (W)process starts and continues for 100s .Then rinising(R) happens for next 20s& followed by drying for 50s.The entire logic is designed by using states in the control logic as below:

State flow chart with logic:

When both Power and water are available, response of washing machine :

Output of the state flow chart:

When both Power is available and water is not available, response of washing machine :

When both Power and water are not available response of washing machine:

Conclusion:

Washing machine is simulated with the required sequence and will operate when both the inputs (Power & water ) are available .

Question:2

Aim:

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

Body of the content:

Based on the input of the speed the gear no is decided.When the engine is on, based on the speed the gear mode is decided .

The state chart is designed to decide the gear mode based on speed input :

The engine is on and the speed given to the model is 58.So gear no:04 is on.

The engine is off and the speed given to the model is 58.

The engine is on and the speed given to the model is varied through the slider connected .

Conclusion:The gear mechanism is designed and simulated based on the input conditions .

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.