Challenge

Week - 4

  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.

The automatic washing machine has 4 stages to watch the clother:-

  • soaking
  • washing
  • rinsing
  • drying

here, in the below image we can see that the entire flowchart has shown with input and output.

the process in the off condition. it will begin with switching on the power and water supply for the washing machine.

when we start the process, the cycle for soaking will run for 200s and it can be seen the display as well as led indicator. after that the duration of washing is 100 seconds. then, rinsing will runs for 20 seconds for removing water from washing machine. last step is for 50 seconds for drying the clothes inside the machine.

Here, we can that the entire flow is shown for washing machine. the blue colour is high lighted on the block while runing the process.

The above table show status of completed cycle of washing machine. Hence this is comple prcoess of washine=g machine

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.

gearbox transmission is very important thing in the IC engine for providing from engine to the all wheel of car.it also gives high torque to move car from the starting position.

The setup for program is as follow:

1) slider for constant value (speed)

2) flowchart

3) display

4) led status.

1) here, the 1st gear is shown:-

1st gear will be there for the speed limit of 0 to 15 range. slider is used as input for speed in the block diagram.

2) 2nd gear :- as soon as the speed of car increases more then 15 km/ph. The system will shift from 1st to 2nd gear.

flow chart incidation for gear shifting.

3) gear gear:- as per the condition programmed in the flow chart. the gear will change from 2nd to 3rd when the speed is more then 26km/ph.

the blue line high lighted on the block show the which block is right now active or working.Here, 3rd is active.

4) 4th gear:

5) 5th gear:- when speed of car is more then 60 km/ph then gear will shift from 4th to 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.