Week - 4
WASHING MACHINE
* open the simulink blank model and search for the chart.
* search for the constant blocks and include two constants
* search for the two displays and include it.
* search for the two light switching blocks and include it.
* assign the light switching blocks and one is red and one is green color indication
*open the chart and include six states and assign the states that power, washing, soak, wash, dry and finish
* inputs are the power supply and the water supply will be taken from the out of the chart block.
* if the power supply is 1 then check the condition for the water supply condition. if not it connects to the red light.
* if water supply is 1 the move on to the next state that is soak.
* soak for the 200 seconds and move on to the next state that is Wash.
* wash for 100 sec, and move on to the next state.
*next to rinse for 20 sec. and next state dry for 50 sec
give the run time for 400 sec. give the inputs that the powersupply and water supply
Run the module.
Results:
washing machine model is ready. By giving the power supply ON and water supply ON, this model will automatically checks the conditions and completes the washing and indicates the green light.
If anyone watersupply or power supply is not ON, it will indicates the red light.
Gear Shift design.
* open the matlab simulation. search for "chart" and include into the simulation.
* search for the constant block and get it into the simulation.
* connect the constant block to the chart block. By click on the side of the chart.
* change the connected point name from data to speed.
* now the constant block is the speed of the vehicle.
* now search for the display block. include five displays, name them as gear1, gear2, gear3, gear4 and gear5.
* connect the five displays to the five output points of the chart.
* Now open the chart block..
* Take a state block and intial block takes the input terminal as input data. so no need to give input data.
* Take the next state block and assign that as Gear1.
* connect the first and second state blocks by adding the both sides with a line.
* click on the line to give condition that [speed>15] ..
* assign that block state as Gear1.
* add another state block and connect that with previous state.
* click on the line and give the condition [speed>25].
* Name the state as Gear2.
* add another state block and name its state as Gear3.
* connect it with previous state and give the condition [speed>40].
* add another state block and name its state as Gear4.
* connect the block with previous state and give condition [speed>60].
* add another state block and name its state as Gear5.
* coonect the block with previous state and give the condition [speed>80].
*Now give the runtime of 100 sec.
Give the speed that have to known that which gear will support for that speed.
Results:
By this sumulation, we can know that which gear will supports for the particular speed we are running.