Project

Control Logic of Washing Machine and Gear Shift Logic of an Automobile using State flow in Simulink

Aim:

  • Challenge 1: Implementing the control logic of a washing machine using State flow and showing results of the operation that are completed by using a LED Indicator.
  • Challenge 2: Making a Simulink chart for the Gear shift logic and providing the input as Slider Gain so that the Output gear number could be displayed.

Procedure:

Challenge 1:

The input and output values are noted in the figure (control logic of washing machine with LED Indicator) below:

The chart which shows the flow of a process in the washing machine:

Explanation:

Firstly the Power and Water supply input for the process is checked by '1' for Available and '0' for Not available.

Now it gets into the chart in which it checks for the availability of power supply if yes then continue with the chart or end the process since 'No power supply'

Similarly, check for the availability of the Water supply if yes then continue for the rest of the process or end the process due to water shortage.

Here we need to put the entry only if the supply of water and power are available since we need to put the light 'ON' for the entire process

Then as per the challenge, it should enter the stages as follows soaking, washing, rinsing, dryer, and for each process we need to enter and exit from the process using 'entry' and 'exit'.

Checking the model with the condition as Power supply=1, Water supply =1

After the two conditions are done, it should move to the soaking process to a time span of 200sec

After the above process, it should turn on the light of washing and should switch off the light of the soaking process. This washing process should run for a time span of 100sec

And it should continue as similar for the rest of the process.

The above shows the lights 'ON' for the end process.

Taken another example by giving a condition of 'no power supply' and it will not run since the power is not available and the rest of the process cannot be achieved and leads to the end of the process

Challenge 2:

To make a Simulink chart for the “Gear shift” logic.

Here in the challenge, we need to shift the gear according to the speed variation.

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

Here we need to introduce Slider gain to input the values to the chart. The constant is placed before the slider gain because usually the gain block is used for the product operation and for using we should introduce a constant such that it should cause problems to the speed term also. So the constant value of '1' with the slider will not cause any problem.

The chart should show the value of gear shift according to the speed at which we are going, so a display is introduced into the state flow. The time for the execution of the process should be taken for inf - infinity time so that the variation of speed study can be carried out.

After the process run for infinity time and we need to shift the speed at the time of run so we can be able to get the value in the display as below

Result :

Thus the control logic of a “washing machine” and Simulink chart for the “Gear shift” logic is completed

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.