Challenge

Week - 4

AIM: 
•To implement control logic of a “Washing Machin” using state
Flow as per sequence.
•Make a Simulink chart for the “Gear Shift” logic ass per given
Condition.


OBJECTIVE:
•Implement a control logical of a “Washing Machin” using state
Flow as per given sequency. Create a model and Operate the
Model logic system and display the output of the result by using 
A Lamp Indicator.
•Create a  model for “Gear Shifting Logic” as per given condition.
•Give the Speed input while  Simulation is  running and Display the
Gear number.

EXPLANATION:

TASK 1: 
State flow:
State flow provides a graphical language that includes state
Transition diagrams, flow charts, state transition tables, and truth
tables. By using state flow to describe how  MATLAB algorithms and 
Simulink models react to input signals, events, and time-based
Conditions.

Control logic:
Control logic is model system logic using state machine. Here, the 
Model system logic of a Washing machine using State flow has been
Done.
Step 1: Create a chart and enter the  given input conditions.
Given input condition:
•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.
After all the processes have complete turn on the finished Led.

Step 2: After entering the  input condition 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.

TASK 2:
Gear Shifting Mechanism:
Mechanical devise that enable the driver to engage gears in such a way as to obtain the desired transmission ratio are called ‘Shifting Mechanism’.

Explanation for Gear shifting  Mechanism using SIMULINK:
Step1: Create a chart and enter the given condition for gear shifting.
                          Given Condition:
                                       Speed Range (kmph)       Gear
                                             0 to 15                              1
                                            16 to 25                              2
                                            26 to 40                              3
                                            41 to 60                              4
                                            Above 61                              5
Step 2: After entering the input condition 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 a Constant and giving value 1 or 0 for turning ON & OFF.
Step 5: Create ‘Lamp’ to indicate  the power ON or OFF.
Step 6: Use ‘display’ blocks to display the gear position and speed.

OUTPUT:
TASK 1:
              Control Logical of a Washing Machine using state flow has been implemented.
               CASE 1: 
                           IF the Power Source = 0, Power Supply is not available and system will not be activated.
               CASE 2: 
                          If the power source = 1 and water source = 0, then the power Supply will turn ON and Water Supply will not be available. So, system will not be activated.

               CASE 3:
                         If the  power source = 1 and water Supply = 1, then Power supply will turn ON and water supply will be available. So, system will turn ON.

Task 2: 
          Gear shifting Logic has been created and by using Slider Gain block the speed has been varied while running the simulation.
          Case 1:
                    If the constant Power = 0, then the  power will turn OFF, and the  lamp indicate the Red colour and gear shifting mechanism will not be avtived.

          Case 2: 
                   If the constant Power = 1, then the power will turn ON, and the lamp indicate Green Colour and shifting mechanism will be activated.

         Case 3:
                  By varying the  speed (parameter) in the speedometer (Slider Gain), gear position will change according to the given condition.
                  
                 Giving Speed = 0km/ hr in Speedometer, the Gear Display
Display “Neutral” while, at Speed = 104km/hr, the Gear Display reads “Gear”.

                      Likewise, changing the speed in the speedometer 
According to the given condition, Gear position will change.
                      From Data Inspector option in the tool, bar we can see the graph on the gear shift at respective Speed 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.