Week - 4
Detailed report for the 1st challenge(washing machine):
I implemented control logic for washing machine by using stateflow.
* Here power and water supply is given as inputs.
* Different operations like soaking,washing,rinsing,drying and finsihing are taken as outputs.
* When power is off, the system will not activate.
*When power is on and water supply is off, only the 'END' LED will light.
*When both power & water is on & for the 1st 220 seconds, only soaking will takes place.
*After soaking , washing will carry out for another 100sec.
* After washing, rinsing will takes place another 20 sec.
* For the last 50 seconds, drying will carry out .
* Finally finish or end light will blink
Note: Screenshots for all the above conditions attached along with this and screen shot of the stateflow inside the chart also attached.
Detailed report for the 2nd challenge(Gear system):
I made a simulink chart for 'gear shift' logic.
*Here we given speed as the input and five different gear as outputs.
*At 0 kmph, vechicle will not move and so no gear is acting.
* Upto 15kmph 1st gear will activate.
*Between 16 to 25kmph, 2nd gear will work.
*Between 26 to 40kmph, 3rd gear will work.
*Between 41 to 60kmph,4th gear will work.
*Above 60kmph,5th gear will work.
Note: Screenshots for all the above conditions are attached along with this and screenshot of the stateflow inside the chart also attached.