Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Placements

Student Reviews


For Business


More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

All Courses

All Courses

logo

CHOOSE A CATEGORY

Mechanical

Electrical

Civil

Computer Science

Electronics

Offline Program

Top Job Leading Courses

Automotive

CFD

FEA

Design

MBD

Med Tech

Courses by Software

Design

Solver

Automation

Vehicle Dynamics

CFD Solver

Preprocessor

Courses by Semester

First Year

Second Year

Third Year

Fourth Year

Courses by Domain

Automotive

CFD

Design

FEA

Tool-focused Courses

Design

Solver

Automation

Preprocessor

CFD Solver

Vehicle Dynamics

Machine learning

Machine Learning and AI

POPULAR COURSES

coursePost Graduate Program in Hybrid Electric Vehicle Design and Analysis
coursePost Graduate Program in Computational Fluid Dynamics
coursePost Graduate Program in CAD
coursePost Graduate Program in CAE
coursePost Graduate Program in Manufacturing Design
coursePost Graduate Program in Computational Design and Pre-processing
coursePost Graduate Program in Complete Passenger Car Design & Product Development
Executive Programs
Workshops
For Business

Success Stories

Placements

Student Reviews

More

Projects

Blogs

Academic Training

Find Jobs

Informative Articles

We're Hiring!

phone+91 9342691281Log in
  1. Home/
  2. Setlem Yogi Venkata Karishma/
  3. Week - 4

Week - 4

AIM: Implement control logic of a washing machine using stateflow by giving certain condition as per power input and water input. As per this input ,machine operates and obtain output by lamp light. Create the stateflow for gear shift and vary the speed as input and obtain the ouput as the gear number in display.  …

    • Setlem Yogi Venkata Karishma

      updated on 06 Nov 2021

    AIM:

    1. Implement control logic of a washing machine using stateflow by giving certain condition as per power input and water input. As per this input ,machine operates and obtain output by lamp light.
    2. Create the stateflow for gear shift and vary the speed as input and obtain the ouput as the gear number in display.  

    OBJECTIVE:

    1. To 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

    After all the processes have completed turn on the finished LED

         2. To 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. 

    SOFTWARE USED:  Matlab, Simulink

    STUDY-1:

    WORKING OF WASHING MACHINE:

    All the important parts of the clothes washer are electrically controlled, including the inner drum, the valves, the pump, and the heating element. The programmer is like the conductor of an orchestra, switching these things on and off in a sensible sequence that goes something like this:

    1. You put your clothes in the machine and detergent either in the machine itself or in a tray up above.
    2. You set the program you want and switch on the power.
    3. The programmer opens the water valves so hot and cold water enter the machine and fill up the outer and inner drums. The water usually enters at the top and trickles down through the detergent tray, washing any soap there into the machine.
    4. The programmer switches off the water valves.
    5. The thermostat measures the temperature of the incoming water. If it's too cold, the programmer switches on the heating element. This works just like an electric kettle or water boiler.
    6. When the water is hot enough, the programmer makes the inner drum rotate back and forth, sloshing the clothes through the soapy water.
    7. The detergent pulls the dirt from your clothes and traps it in the water.
    8. The programmer opens a valve so the water drains from both drums. Then it switches on the pump to help empty the water away.
    9. The programmer opens the water valves again so clean water enters the drums.
    10. The programmer makes the inner drum rotate back and forth so the clean water rinses the clothes. It empties both drums and repeats this process several times to get rid of all the soap.
    11. When the clothes are rinsed, the programmer makes the inner drum rotate at really high speed—around 80 mph (130 km/h). The clothes are flung against the outside edge of the inner drum, but the water they contain is small enough to pass through the drum's tiny holes into the outer drum. Spinning gets your clothes dry using the same idea as a centrifuge.
    12. The pump removes any remaining water from the outer drum and the wash cycle comes to an end.
    13. You take your clothes out and marvel at how clean they are!
    14. But there's still the problem of drying your wet clothes to figure out.

     CONTROL LOGIC OF WASHING MACHINE AND EXPLANATION:

    • To create this control system in simulink insert the chart and create the logic system using stateflow. The stateflow excute the flow of inputs "if" the condition is accept.
    • In this control logic the input power is applied to ON the washing machine and the power supply is flow in other system. The conditions are applied to move other sequence of operation in stateflow.
    • Water supply is execute when power is ON ,so entry and exit are assigned as value of 0 to 1. While the condition is not ok water supply stops and it will come back to its constant state.
    • This process is applied for each flow and time of working in each operations are initiate by sec that are given in question.
    • Stateflow of washing machine are created and they are shown below,  
    • SUBPROGRAM
    • Now assigned the input values of steadyflow and sequence of operation is initiate to identify the working division. Constant block is created to give an input power value of system.
    • And other constant block is created for input of water supply and value as 1 to ON water and to run washing sequence.
    • Display block is inserted with each sequence to display the results of operations.
    • Lamp block is introduced to indicates wheather the operations are 'ON' or 'OFF' in different states.     

    lamp

    RESULT:

    STUDY-1:

    Simulink Model are created and inputs are generated to power supply and water supply 

    • If the power supply and water supply are assigned as 0 value the ouput value of all operations become zero because no inputs are generated and conditions are not applied.
    • Lamp is in red color due to 'OFF' of operation system. That are shown as below,

     

    CONSTANT

    • Now the power supply and water supply value are assigned as 1. Power are generated from input and the operation starts , water supply also done by initiate the value of 1.
    • Sequence of operation in stateflow starts when the condition is getting satisfied. Water supply is generated and other operations are followed by duration of time that we given in stateflow.
    • Each operations are runned and results are obtained by display block. Lamp is turned "ON" and it indicates green color as result

     

    RESULT

    STUDY-2:

    GEAR SHIFT:

    A manual transmission, also known as a manual gearbox, a standard transmission or colloquially in some countries (e.g. the United states) as a stick shift, is a type of transmission used in motor vehicle applications. It uses a driver-operated clutch, usually engaged and disengaged by a foot pedal or hand lever, for regulating torque transfer from the engine to the transmission; and a gear selector that can be operated by hand.

    A conventional 4- or 5-speed manual transmission is often the standard equipment in a modern base model vehicle, with 4-speed being more common in non-passenger vehicles such as pickup trucks and light commercial vehicle. Higher end vehicles, such as sport cars and luxury cars are often usually equipped with a 6-speed transmission for the base model. 

    SIMULINK MODEL:

    • In this model inputs are generated to slider gain which is connected to constant block the value is 1. The gear shift is acted by conditions in stateflow. Chart is created and conditions are applied same as washing machine stateflow.
    • The gear is shited by variations in speed. An speed range are created in chart as several gear system and conditions are applied.
    • Display block is used to obtain the result. That displays which gear is running in particular range of speed.
    • Lamp is connected to indicate the 5 different colors which is assigned for each gear. The model is shown below,

    Speed range and the gear variation are given below,

              Speed Range(kmph)        Gear 

                  0 to 15                         1

                 16 to 25                        2

                 26 to 40                        3

                 41 to 60                        4

                 Above 61                       5 

    The speed variation are depends on value that initiate in slider gain parameters. when speed range changes the output values of gear also varied by the conditions applied in stateflow.

     

     

    RESULT:

    Gear Neutral

    When speed range is 0 the gear is in neutral and output value of display remains 0 thus it indicates red light which are assigned in lamp block.

    Gear - 1

    When speed range is 0 to 15 the gear 1 is proceed and output value of display gives 1 thus it indicates green light which are assigned in lamp block.

    Gear - 2

    When speed range is 16 to 25 the gear 2 is proceed and output value of display gives 2 thus it indicates blue light which are assigned in lamp block.

    Gear - 3

    When speed range is 26 to 40 the gear 3 is proceed and output value of display gives 3 thus it indicates orange light which are assigned in lamp block.

    Gear - 4

    When speed range is 41 to 60 the gear 4 is proceed and output value of display gives 4 thus it indicates yellow light which are assigned in lamp block.

    Gear - 5

    When speed range is Above 61 the gear 5 is proceed and output value of display gives 5 thus it indicates purple light which are assigned in lamp block.

     

    Leave a comment

    Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

    Please  login to add a comment

    Other comments...

    No comments yet!
    Be the first to add a comment

    Read more Projects by Setlem Yogi Venkata Karishma (18)

    Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol

    Objective:

    Aim: Overview of the Project:  In this project implementing the Code for “Interfacing a 16*2 LCD with two Arduino’s (one for Master and one for Slave) using Inter-Integrated Circuit (I2C) communication protocol” by sending the message to LCD using I2C communication protocol and display the message…

    calendar

    15 Jun 2022 09:49 AM IST

      Read more

      Project 2

      Objective:

      Objective:  Design an interleaving DC/DC converter system for a data centre application with the following specifications: • Input voltage: 45 – 60 v• Output voltage: 3 V• Output current: 100A• Efficiency > 85% (extra credit for efficiency higher than 90% on a spice-based software simulation…

      calendar

      04 Jun 2022 09:32 AM IST

        Read more

        Project 1

        Objective:

        Project:1   Choose any three topologies and develop the models in Simulink. The project design report should include the following:1- A Design report to show the reasoning behind your choices of inductance and capacitance levels in your design.2- The full schematics of your converter including gate drivers, PWM chips,…

        calendar

        03 Jun 2022 11:36 AM IST

          Read more

          Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear

          Objective:

          Aim:Implement the Code for controlling the retraction and extension of Airplane’s landing gear Overview of the project: In this project, controlling the retraction and extension of Airplane’s landing gear can be implemented using Finite State Machine (FSM). FSM is the most efficient algorithm which is mathematical…

          calendar

          25 May 2022 06:57 AM IST

            Read more

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            Related Courses

            coursecard

            Design loads considered on bridges

            Recently launched

            10 Hours of Content

            coursecard

            Design of Steel Superstructure in Bridges

            Recently launched

            16 Hours of Content

            coursecard

            Design for Manufacturability (DFM)

            Recently launched

            11 Hours of Content

            coursecard

            CATIA for Medical Product Design

            Recently launched

            5 Hours of Content

            coursecardcoursetype

            Accelerated Career Program in Embedded Systems (On-Campus) Courseware Partner: IT-ITes SSC nasscom

            Recently launched

            0 Hours of Content

            Schedule a counselling session

            Please enter your name
            Please enter a valid email
            Please enter a valid number

            logo

            Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.

            https://d27yxarlh48w6q.cloudfront.net/web/v1/images/facebook.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/insta.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/twitter.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/youtube.svghttps://d27yxarlh48w6q.cloudfront.net/web/v1/images/linkedin.svg

            Our Company

            News & EventsBlogCareersGrievance RedressalSkill-Lync ReviewsTermsPrivacy PolicyBecome an Affiliate
            map
            EpowerX Learning Technologies Pvt Ltd.
            4th Floor, BLOCK-B, Velachery - Tambaram Main Rd, Ram Nagar South, Madipakkam, Chennai, Tamil Nadu 600042.
            mail
            info@skill-lync.com
            mail
            ITgrievance@skill-lync.com

            Top Individual Courses

            Computational Combustion Using Python and CanteraIntroduction to Physical Modeling using SimscapeIntroduction to Structural Analysis using ANSYS WorkbenchIntroduction to Structural Analysis using ANSYS Workbench

            Top PG Programs

            Post Graduate Program in Hybrid Electric Vehicle Design and AnalysisPost Graduate Program in Computational Fluid DynamicsPost Graduate Program in CADPost Graduate Program in Electric Vehicle Design & Development

            Skill-Lync Plus

            Executive Program in Electric Vehicle Embedded SoftwareExecutive Program in Electric Vehicle DesignExecutive Program in Cybersecurity

            Trending Blogs

            Heat Transfer Principles in Energy-Efficient Refrigerators and Air Conditioners Advanced Modeling and Result Visualization in Simscape Exploring Simulink and Library Browser in Simscape Advanced Simulink Tools and Libraries in SimscapeExploring Simulink Basics in Simscape

            © 2025 Skill-Lync Inc. All Rights Reserved.

                        Do You Want To Showcase Your Technical Skills?
                        Sign-Up for our projects.