Week - 4
1. Control logic of washing machine using state flow :
REPORT:-
Step 1: Open the simulink page and open the chart box.
Step 2: After opening the chart box mention the steps to be followed in an washing machine.
Step 3: Steps to be followed in an washing machine are,
i) Power source.
ii) Power r supply.
iii) Water supply.
iv) Soakling.
v) Washing.
vi) Rinsing.
vii) Drying.
viii) End.
Step 4: If the power supply is available the washing machine get the supply the run if not the machine won't work.
Step 5: Soaking time should be 200 sec., washing time will be 100 sec., rinsing time will be 20 sec., and drying time will be 50 sec.
Step 6: After entering the input conditions go to the symbols pane and assign the variables.
Step 7: Give the input values to turn ON and OFF the powe and the water supply,
if value = 1 the power and the water supply will be turn ON,
if value = 0 the power and the water supply will be turn OFF.
Step 8: Use display block and lamp indicator to display the results.
Step 9: End the process.
PROCESS:
If the power supply = 0, water supply = 0 then, the machine will not get activated.
If the power supply = 1, and the water supply = 1 then, the machine will turn ON.
After all the process the end lamp will be turn ON.
--------------------------------------------------------------------------------------------
2. Simulink chart for the “Gear shift” logic :
REPORT:
Step 1: Open the simulink page and open the chart box.
Step 2: After opening the chart box mention the steps to be followed in an gear shifting.
Step 3: Steps to be followed in an gear shifting are,
- Neutral speed( 0 )
- Gear 1 speed( 0 - 15 )
- Gear 2 speed( 16 - 25 )
- Gear 3 speed( 26 - 40 )
- Gear 4 speed( 41 - 60 )
- Gear 5 speed( above 61 )
Step 4: After entering the input chart go to the symbols pane and give the input conditions
Step 5: Create an constant and give value 1 & 0 for turning ON & OFF.
Step 6: Create Lamp to indicate power ON & OFF.
Step 7: Use display block to display the Gear position.
Step 8: End the process.
PROCESS:
If key = 0 the power will be in OFF and the lamp indicator will be in red and the gear shift will not be activated.
If key = 1 the power will be in ON and the lamp indicator will be in Green and the gear shift will be activated.
By varying the speed in the speedometer the gear position will change.
-------------------------------------------------------------------------------------------