Challenge

Week - 4

STUDY-1
 
STATE FLOW:-
  • Stateflow provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. By using Stateflow to describe how MATLAB algorithms and Simulink models react to input signals, events, and time-based conditions Control Logicis model system logic using State machines Flowchart and Truth tables

CONTROLLOGIC:

EXPLANATION FOR CONTROL LOGIC DEA WASHING MACHINE USING STATE FLOW

  • State Flow is a simulink tool to implement the state machine. Hare model system logic of a Washing Machine using state flow has been done.
 
Stap 1:
  • Create a chart and enter the given input conditions

Given Input Conditions:

  • 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 100,
  • Then rinsing happens for next 20s & dryer runs for 50s
  • After all the processes have completed turn on the finished LED
 Step 2: 
  • After entering the input conditions in the chart, Go to Symbols pane and assign the given variable          (Example input data, Output data etc.)
Step 3:
  • Give the input values for turning on or off for the Power Supply and Water Supply
 Condition:
  • if value 1- Power and water Supply will turn On
  • if value 0- Power and water supply will turn off
Step 4:
  • Use display block and lamp Indicator to display the results
 
OUTPUT:-
 
STUDY-1
 Control Logic of a Washing Machine using Sate flow has been implemented
 
Case-1:
  • If the Power source =0, Power Supply is not available and system will not activate.
 
Case-2:
  • If the Power source= 1 and Water Source =0 then Power Supply will turn on and Water Supply will not be available and so system will not activate
 
Case 3:
  •  If the Power source=1,then Power Supply will turn on and Water Supply will be available and so system will activate and after all process completed end lamp will turn on
 
STUDY-2
 
GEAR SHIFTING MECHANISM:-
 
Mechanical devices that enable the driver to engage gears in such a way as to obtain the desired transmission ratio are called shifting mechanisms
 
EXPLANATION FOR GEAR SHIFTING MECHANISM USING SIMULINK
 
Given Conditions:
 
Speed Range(kmph)                     Gear
 0 to 15                                          1
 16 to 25                                        2
 26 to 40                                        3
 41 to 60                                        4
 Above 61                                       5
 
Step 1: Create a chart and enter the given conditions for gear shifting.
Step 2: After entering the input conditions in the chart, Go to Symbols pane and assign the given variable.                      (Example: input data, Output data.etc.)
Step 3: Connect the Slider Gain to vary the speed while simulation is running Step 4: Create Constant and 
 giving value I and a for turning on & off 
Step 5: Create Lamp to indicate the power is on or off
 
STUDY-2:
 Gear Shifting logic has been created and by using Slider Gain" block, to vary the speed whille running the simulation 
 
Case 1:
 if the Key=0 then the power will turn off, Lamp indicate the Red colour and Gear shifting mechanism will not activate
Case 2:
 it the Key then the power will turn an, Lamp indicate Green colour and dear Shitting mechanism will activate
Case 3:
 By varying the speed(Parameter) in the speedometer(Slider Gain), Gear position will change according to the given condition,
  •  Giving Speed -30 km/hr in the Speedometer, at the speed is between 25 activate as per the given condition Gear position is displayed below in the Simulink model
 Likewse, changing the speed in the Speedometer according to the given condition, Gear position will change.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.