Challenge

Week - 4

AIM:

  1. Create a SIMULINK circuits layout to control logic of a “washing machine” using Stateflow command.
  2. Create a SIMULINK circuit layout to display 'Gear shift number' with respect to the speed range.

OBJECTIVE:

  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

2. Make a Simulink chart for the “Gear shift” logic as per below conditions and display speed input while the simulation is run time & display the gear shift numbers.

Speed Range(kmph) Gear
0-15 1
16-25 2
26-40 3
41-60 4
Above 61 5

Blocks used :

CHART

LAMP

CONSTANT

SCOPE

SIMULINK :

Block of simulink shown above

EXPLANATION :

As per the given condition, 'If the power supply is available, the system gets activated'. To start the machine, we need to provide an input signal using a constant block with value as '1' defines the ON state and '0' defines the OFF state.

And for the water supply also, we need to provide a constant block to tell the circuit about its state.

To perform all the operations, we need to assign the delay after each stage using 'after' logic.

A display block is attached at the output to show the time step.Also, by changing the value of constant for power and water supply we check the logic by the change of the LED signal lamp.

The simulation run time for this logic is 500.

Results:

2 .GEARS SHIFTING

BLOCKS USED :

constant

slider

display

chart

Explantion :

This chart is used to find the gear shifting using greater than or equal to and less method

this is changed on each stage according to the speed varies , consatnt block is used to give speedometer values, by changing the speed we can use gear shifts from 1 to 5 .the total run time of stimulition is 80

Simulink chart layout :

The simulink block :

ii) The main Simulink circuit layout:

CONCLUSION:

Successfully create the Simulink block diagram to run the simulation of the washing machine using the given sequence and gear shift with the display of the gear number with varying speed limits using LED lamps.

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.