Week - 4
Washing machine
file link:
https://drive.google.com/file/d/1d6ohxmc6n39dYTpRJco4oytUv2q2UXQg/view?usp=sharing
Explanation:
Here created control logic for automatic washing machine.The designed Washing machine will run the seequences
Water filling > Soacking > Washing > Rinsing > Drying > Finished .All the seequences will follow only when water and power supply is given ,If anyone is get interupted the sustem will goto stop for when it will be back and shows machine "stopped" . When again both are ok machine will resume the same running step .The indication will gives which step is running. Two slider switches used for gives rwo inputs which represents power and water .These type of slider switches have two positions labeled as on & off positions ,We can assign the values for this position .The given value for this positions will get from the connected Constant block , need to connect a constant block for completing the configuration. These two constant blocks are placed in a subsystem and Two lamps placed near to slider switches these lamp configured with Out puts of both constant block .In the lamp block we can set the colours depends on the state of connection. Another shape changed lamp "stopped" placed near to these lamp that connected with another source with these same procedure.The output from contants blocks (power & water) conneceted to a product block and output ports product block output connected to an another output block .These three output ports connected to a Chart.Char is used for create a seequenced state function.In this chart we can add states that will goes as per assigned order and condition. Here we created first state named "power1" and the transition assigned in this state because begins from this state and this state connected One "simulink state" with the conditon (power==0) state Named as "error 1" (these used all error simulink states have same function) we can creat a simulink blocks inside in this simulink state and it will run when this state is active.Here one constant value 1 will goes to "stopped" output of this chart. Then the "stopped" named output of chart will state 1.This connection works like when power is 0 then "error 1" active and stopped output will get 1 , it resultant to get machine stopped condition.One anoter connecteion created from "error 1" to "power1" with condition "power==1" When power reconnected state changes from "error 1" to "power1", then the stated "stopped=0" will happen.The connection from "power1" to "water" with condition of input "power==1" is ok state will change to "water" ,"stopped=0" state will remains same and if "water/power==0" the state will goes to "error4" through the conditional connection from Water to error4 from error4 to water have a connection with condition "ready==1" ready is the third input of chart from the product block output . When the power and water available "ready" will alaways equals to 1 then the state will comes back to water and goes next state .All the states conneceted with an error simulink state gives the conditional connection "ready==0"and "ready ==1" that will makes when water and current supply or anyone disconneceted state will be stopped and when it will be back the state will continue from the stopped state.
2.Gear box
File link: https://drive.google.com/file/d/1-RYQWFNgQZ2VoVMALv8zebnErS9WPGuO/view?usp=sharing
Explanation:
First of all we inserted a constant and the 1 vale given there because initial value required after that the constatnt conneceted to a slider gain for varyong this constatnt value to desired speed value in slider gain we can set upper limit and lower limit parameters given 0 as lower limit and 80 as higher because we required above 60 speed on this gear box.Then one chart inserted from library and in that the chart inserted first state and given the name N ,Which denote it is neutral. and label the entry action with "entry:G=0" G is the chart output port we can use any names .this label means that When fisrt state occur the G port will be 0 ,we added second state and these states connect with condition input ==0 & input>0 which mean the input is equal to zero the state will be N and G port will be "0" otherwise next state will happen this second state named as Gear 1 and labelled as "entry:G=1;" when this state occur G port will be 1 .This state connect to third state with condition of "input>15" and "input<16" reason for this criteria is we need to upshift the gear 1 to 2 when speed is higher than 15 and we need to downshift the gear 2 - 1 when speed is lower than 15.Like these desired gears as per the speed we can design in this methord.The output of chart connected to Display and Scope these scope parellely conneceted to input signal to chart from slider gain.One half gauge and gauge inserted from library gauge ,Gauge connected with slider gain signal that will show input value given to chart from slider gain and half gauge connected to chart G port output that will show Output from G port (gear number)Conected scope given graphical presentation