Challenge

Week - 4

1. The washing machine logic is designed as follows:

  • There is an indicator lamp for both power supply(red means no power supply & green means power supply available) & water supply(red means no water supply & blue means water supply available).
  • An indicator is also provided for indicating the status of the washing process(orange indicator for process-in progress & green indicator for process-completed)
  • If both power supply & water supply conditions are met,then only the systems is activated(implemented using AND gate).
  • There are four main states in this washing machine logic(Soaking-S,Washing-W,Rinsing-R & Drying-D).
  • The default state of the system is given as Default.
  • When power supply & water supply conditions are met then only there is transition to next state that is Soaking.
  • Based on the States the values of S,W,R & D change (1 means that particular state or function is completed & 0 means not completed).
  • At the end when drying is completed all the states must be finished so the values for S,W,R & D are all 1's.
  • After all 4 processes are completed the process status changes from inprogress(orange lamp) to completed(green lamp)-This is implemented using a AND gate again by taking the values of states S,W,R & D as inputs & giving the output to display.If all the inputs to the AND gate are true then only the output is 1 & the process status is changed from in-progress to completed.

2. In the Gear change statelogic model attached below:

  • The first state is the Default state where the value of the gear is 0,that means neutral gear.
  • When the Key is inserted in the key slot then the system is activated & the next state is Neutral gear(gear 0).The vehicle's initial gear position is set to zero at start.
  • After we set the above speed conditions in the stateflow chart according to the speed input & key activation,the suitable gear is automatically selected & displayed at the output(the value of gear chosen automatically is given to the variable value).
  • The automatic gear change system has two input variables(key & speed) & one output variable(value),the output variable's value is the gear level selected as per the speed input.
  • The input & output variables are specified in the symbols pane menu.
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.