Week - 4
- Implement control logic of a “washing machine” using Stateflow as per given sequence:
- If the power supply is available, the system gets activated
- If the Water supply is not available, stop the process & indicate through LED
- Soaking time should be 200s followed by Washing time of 100s.
- Then rinsing happens for next 20s & dryer runs for 50s
control logic:

State are
1. start
2. soaking
3. washing
4. rinsing
5. dryer
6. end
all are flow as given as given condition
PARAMETER SYMBOLS:
Inputs are-power supply and water supply
Outputa are-water,soaking,washing,rinsing,dryer,cycle

MODEL

CONCLUSION
I can not run this model, faces these errors attatched below

____________________________________________________________________________________________________
OBJECTIVE
2. Make a Simulink chart for the “Gear shift” logic as per below conditions:
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
Give speed input while the simulation is running & display the gear number.
- CONTROL LOGIC & MODEL





1.Input data- speed
2. Output data - gear
in this above model we used slider gain block for variable speed and connect to control logic stateflow block. display block is connected to control logic to see which gear is running.
RESULT: To see results i have attched the model with challange.
conclusion:
we can conclude that we simulate the gear shifting control logic with the help of stateflow and get satisfactory results.