Challenge

Week - 4

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 are completed, LED is turned on.

Steps and explanation:

1. two rocker switches are used to turn ON and OFF the power and water supply.

2. a chart is made where all the connections and logics are defined.

3. there are 6 states output from the chart connected to display.

4. lamps are used to shoe the output of each states color wise to make to easy to grasp what is happening throughout the process.

Inside chart:

1. power, water, soaking, wash, rinse, dry, finish are the 6 steps.

2. when power is on, water is checked. if it is on, then all the activities afterwards are carried according to the time mentioned.

3. the local variables are made 1 and 0 according to entry and exit to show the lamps (LED) green and red respectively.

Simulink chart for the “Gear shift” logic.

1. a slider is connected tot a constant supply which is connected to the chart and then result is output on display.

inside chart:

1. engine variable is 1 as it ON.

2. according to the input speed, the gear number is slotted and with entry and exit variables as the gear numbers.

these are the links to the files:

washing machine model (named as washing_machine):

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

gear shifter (named as gear_shift_logic_2):

https://drive.google.com/file/d/18OCBmgSKXj8l0GNosZr7emyn4_xhQPMJ/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.