Challenge

Week - 4 Control Logic of s Washing Machine

Week 4 Challenges

Q1) Implement control logic of a “washing machine” using Stateflow as per given sequence

Simulink Model – Model File is attached. (File Name: WashMachine02)

  • Components Used :
  • Chart
  • Rocker Switch
  • Constant
  • Display
  • Lamp

Explanation For Simulink –

A Rocker switch from the dashboard library is used with a constant to supply the power and as water supply. A lamp is used to indicate the power status & water status. The power status is checked at the entry for every state and the water supply is checked for the soaking and the rinsing process. The timing for each state is as per the given inputs. The status of the running process can be seen by the glowing lamp corresponding to the process name.

Result : As we have made the simulation using Chart block we have set the conditions for Washing,Drying,Soaking,Rinshing after that particular time interval block will perform its operation and the indications will be seen in the display blocks and also indication lamps are provided to the every operation of washing machine. We can easily get the indications while operation is running.

Q2) “Gear Shift” logic as per below conditions:

Simulink Model - Model File is attached. (File Name: GearShifter)

Components Used :

  • Chart
  • Display
  • Constant
  • Lamp
  • Rocker Switch
  • Circular Guage
  • Slider
  • State
  • Function

Chart Parameters :

Speed Range(kmph) Gear

0 to 15 1

16 to 25 2

26 to 40 3

41 to 60 4

Above 61 5

Symbols : Inputs and Outputs

Result: As we have seen the simulation above Power Switch is connected to Constant block, Circular Guage and Slider both are connected to the Throttle Block. The main program of our Gear Shifter is in a chart where numbers of condition blocks are arranged by the conditions. When the speed is low 0-15kmph then 1st gear is activated when speed is 16-25kmph 2nd gear is activated when it reaches to 26-40kmph 3rd gear will be activated when speed 41-60kmph 4th gear will be activated and when it reaches the speed above 60kmph 5th gear is activated.

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.