CONTROL LOGIC FOR WASHING MACHINE PROCESS AND GEAR TRANSMISSION SHIFT
- Implement control logic of a “washing machine” using Stateflow and according to the sequence.
Here we are implementing a control logic of washing machine using stateflow by giving certain conditions such as power input and water input. As per this input, the machine operates the given stages and obtains the output by lamp light and scope.
Firstally we are giving the condition to the process as soak,wash,rinse and dry and checking that the process is ended or not and also that the power supply is excatly the same form the input source it was given is the same or not atlast we see that the process is working with the help of the observation with respect to the lamp and the scope.
Here we are representing that all the four process are completely following the logic given and stops accordingly as we can see the green colour indication for completion of the process and lastly in the display after the processes it is showing 1 which indicates that the finishing processes ended according to the logic control given and lastly the power block showed that power is also same with respect to the all processes.
If we take a case that power supply is off :-
We can see here that if we slide the power supply to off (0) then the process do not work and thats why the input source of both power supply and water supply is vaulable to get the system to work according to the control logic.
In the chart we are elaborating the stateflow processes according the input specifications we are given :-
Here according to the control logic the power supply form the input is given to the all the processes accordingly with start and stop parameters in the blocks with respect to the water supply.Firstally the power source to the soaking process for 200 seconds according to the input parameters given to the block and then the process goes to the wash for 100 seconds and stops according to the parameters given and then to the third stage of the rinse for 20 seconds and lastally on the drying process for 50 seconds and hence follows the all respective processes according to the input parameters given.So the process works on input given , the conditions setted with the help of blocks and lastly the output observation.
FINAL OUTPUT :-
As our input parameters are correct and also the conditon given are perfectly working according to the input given we are getting the output what we had implemented the control logic of washing machine.
Here in the first figure, we are observing the soak process the soak process start form 20 seconds to 220 seconds as form 0 to 20 seconds the power supply is not given and the main soaking process starts form the power supply given to the 220 seconds and in the second figure the wash process starts form 220 seconds to 320 seconds and the third figure depicts the rinse process form 320 to 340 seconds and the fourth figure observes the dry process for 50 seconds means 340 to 390 seconds and the last two figures are for the checking the flow of the parameter as the fifth figure represents that the process finishes according to the control logic and the last figure represents that the power supply is same for all the process form (0) to (1).
CONCLUSION:
From figures we obtained that, the washine machine works according to the input supply of power & water else it won't work and indicated by lamp light green and red respectively.And the condition should be given according to the logic which we want to implement as we can't get the output respectively.
- A Simulink chart for the “Gear shift” as per the logic conditon :-
Here we are creating the actual simulink model of Gear-shift using stateflow as per the input condition. The input is taken as speed which varies manually and the gear shift is obtained as per the condition.
As per the condition of the speed range and the gear as in first gear the speed will be 0 to 15 then in second gear it will 16 to 25 and third gear it will be 26 to 40 the speed range and fourth gear follows the speed range of 41 to 60 and last gear or the fifth gear for the speed range of above 61.
The model consists of constant, slider gain, chart and display blocks. The chart block includes the values and condition as per the above format. Slider gain block can be used as Speed which varies from 0 - 100 kmph. As the speed varies the gear shift automatically and obtained in display block.
In the chart we are giving the input conditions :-
Here according to the input condition the stateflow logic is setted and the first block takes the input condition and sets the parameters accordingly and as the block uses the start - stop parameter and this start stop parameters according to the respective block condition it works on the flow,so all the gear are represented in the block with the parameters of starting and stoping and we get the desired output.
OBSERVATION :-
So as we have defined our input to the stateflow condition and also the we get the desired output respectivly it as follows :-
For Gear 1 :-
So according to the given condition , we are getting the desired output with respect to the parameter of the First block and the desired output is being observed and the lamp indicates the Blue color.
For Gear 2 :-
In the figure 2 that when we give a random speed range number with respect to the parameter of the second block and the desired output is being observed and the lamp indicates the Orange color.
For Gear 3 :-
In the figure 3 that when we give a random speed range number with respect to the parameter of the third block and the desired output is being observed and the lamp indicates the Yellow color.
For Gear 4 :-
In the figure 4 that when we give a random speed range number with respect to the parameter of the fourth block and the desired output is being observed and the lamp indicates the Purple color.
For Gear 5 :-
As here we can see in the figure 5 that when we give a random speed range number in the parameter of the fifth block the desired output is being observed and the lamp indicates the green color.
FINAL OBSERVATION :-
Input Values :-
Here when the condition are not defined the input valves are not eligible for the output and then we specify the condition and get the desried output.
FINAL OUTPUT :-
So according to the “Gear shift” logic conditions we get the output,consdering the speed range with respect to the gear transmission shift.
CONCLUSION :-
Here we obtained that, as speed varies the gear shift done by automatically as per the given condition and the change of gear indicated by lamp light as the speed varies from 0 - 100 kmph. and the proper shift of gear from neutral to 5th gear as per the speed variation. The gears are indicated in different colors as shown above figures and observations.