Week - 4
1. For implementation of the control logic of a washing machine by using state flow we need chart.
In this chart we make the flow chart by using diiferent state with different logic condition. In this process we implement some logic condition for washing machine.
Condition:1 (Power supply=1 & Water flow=0)- In this condition water flow switch is in off state that's why the washing machine is in OFF state.
Condition:2 (a)[Power supply=0 & Water flow=0)- In this condition both Power switch & water flow switch is in off state that's why the washing machine is in OFF state.
Condition:2 (b)[Power supply=1 & Water flow=1)- In this condition both Power supply & water flow switch is in on state that's why the washing machine is in ON state.
In this ON state washing machine will soak the clothes for 200 sec. In this state machine required water that's why water is in ON State.
After this washing machine will wash the clothes for 100 sec. In this state machine not required water that's why water is in OFF State.
After this washing machine will rinse the clothes for 20 sec. In this state machine required water that's why water is in ON State.
After this washing machine will dry the clothes for 50 sec. In this state machine not required water that's why water is in OFF State.
After this washing machine is completed the work that's why machine is ion finish state.
Here we use two no.s rocker switch for On & Off purpose of Power supply and Water supply. Both this switch again connected with separate Lamp. Lamp glow green light with On condition and glow red light with Off condition for both switch.
Here each state connected with display and also connected with Lamp for show the response of each state. Here also same Lamp glow green light with On condition and glow red light with Off condition for each state.
After preparation of Flow chart in state flow we need to define all symbol used in this control logic.
Input Data: Power Supply & Water flow
Output Data: water, washing machine state, soaking, washing, rinsing, dryer, finish
find the supporting documents for each state condition.
2. For Gear Shift Logic by using state flow we need chart.
In this Chart we make flow chart using different state with different logic condition.
As per the data given in question for speed range (Kmph) 0 to 15 km Gear-1 is use, for speed range (Kmph) 16 to 25 km Gear-2 is use, for speed range (Kmph) 26 to 40 km Gear-3 is use, for speed range (Kmph) 41 to 60 km Gear-4 is use & for speed range (Kmph) above 60 km Gear-5 is use.
Here we connect Slider Range for Speed input. For output display is connected with Gear port. Also Lamp is Connected with Gear.
Input Data: Speed
Output Data: Gear
For Gear-1 : Green Color light is glow
For Gear-2 : Light Blue Color light is glow
For Gear-3 : Dark Blue Color light is glow
For Gear-4 : Orange Color light is glow
For Gear-5 : Red Color light is glow
Find the Documents for each state execution.