All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
- 1. Aim: - Implement control logic of a washing machine using Stateflow. - Make a Simulink chart for the Gear shift logic as per the requirement. - 2. Objectives: - To implement the logic for simulation of a washing machine using Stateflow. - Forming a simulation of gear shift which will indicate…
Neel sanap
updated on 16 Nov 2020
- 1. Aim:
- Implement control logic of a washing machine using Stateflow.
- Make a Simulink chart for the Gear shift logic as per the requirement.
- 2. Objectives:
- To implement the logic for simulation of a washing machine using Stateflow.
- Forming a simulation of gear shift which will indicate gear position when the input is given while the simulation is running.
- 3. Method:
- 1. Control logic for the washing machine:
- Stateflow is basically a new feature of converting a login into the systematic arrangement.
- State is the operating mode of the system. For ex. car state is parking, accelerating, braking.
- Input and conditions decide the state transition.
- Control logic is a controller that controls the operation of the program. It answers the command given by the user, and it also acts on its own to execute an automated task. Control logic can also be modelled using a state diagram.
- In this particular control logic, it is required to check for the 2 input parameters. First, the power has to be checked using switch block and the second water supply has to be checked.
- A "slider switch" is provided in order to provide the power, either on the switch or off. Depending upon this input the output will vary.
- Also the water supply has to be checked.
- After receiving the inputs, when the input condition becomes true which is [input==1] then the first block gets activated and it again checks the machine is on or not.
- After this, the water supply is check which is denoted by "cw". Once the water supply is checked.
- In order to give sufficient time for each process to occur " after " command is used, in which time along with the unit has to be mentioned.
- When cw_1 is true then the next block is checked. Once the soaking block is reached a particular time is assigned to each block in order to take sufficient time to perform the tasks. This is done for all the blocks like washing, rinsing, drying and finish.
- In case any of the input condition is get false then this flow will not occur and the chart will directly come to finish.
The machine is on the condition, which can be seen from the green build. |
The machine is in the off condition which can be seen from the orange bulb. |
|
- 2. Simulink chart for the gear shift.
- Here the requirements are to give the input manually when the simulation is running. This is the point where the run time has to be given infinite and manually stop has to be given.
- The basic working must be such that, as the speed changed it should be seen on the accelerator block, the position of the gear must be visible and the limit point has to be given.
- For each speed range the output must change and position of gear has to be shown.
Circular gauge to show the variation of speed |
Slider to change the speed during run time. |
- These two block has to be attached to the input so that due to change in the slider the gauge also shows the change in the display.
Complete simulation model of the gear shift |
|
Simulation while running at a particular speed showing the corresponding gear as well. |
Simulation showing the speed limit of 100 and its indication is shown in the speed limit indication block. |
- In order to see the variation of the speed, the gear indicator and speed limit indicator, all the connections and conditions are needed to be done properly. Here the input is given by engineer, which represent the condition of the engine either on i.e position 1 or off i.e position 0.
- Once the input conditions are matched, the speed is getting detected. The speed range and position of the gear shift is shown below.
- In order to match the required conditions and gear position, the speed has to be greater than 0 and less than equal to 15 for the 1st position. And the same is applicable to others as shown in the table above.
- All the input conditions are mentioned near the stated which are represented by the rectangles. The state will shift from 1 to other only when the condition id true. This will result in choosing the higher gear as the speed increases. Once the speed is reduced the gear has to be shifted to the lower position and in order to achieve this, the conditions are also given.
- A speed limit state is also mentioned which gives the indication once the speed is above a determined limit. Here, in this case, it is 100.
- Once the speed increases above 100 it shows the output and speed has to be reduced then.
- The switch slider described the position of the engine as either on or off.
- 4. Learning outcome:
- To understand the basics of Stateflow, state, actions, simulation transition, and conditions.
- To implement the logic for washing machine using the Stateflow.
- To perform the simulation of the gear shift mechanism and obtain the necessary outcomes.
- Understanding the ways to connect different inputs and indication blocks.
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.
Other comments...
Photo Realistic Rendering
Title: modelling of the chopper model in Solidworks. - Objectives: - To model different parts of the chopper along with proper constraints. - To do assembly of the chopper model. - Perform the rendering operations. - Introduction: - Designing or modelling of a vehicle generally starts with the styling team,…
01 Sep 2021 10:25 AM IST
Benchmarking
2. Prepare a report explaining what is benchmarking. Benchmarking involved a comparison between similar products on some dimensions of performance. It can be used to compare the availability and delivery of features in a product and in this form often provide the basis of consumer tests and review. These look at products…
30 Jun 2021 05:26 AM IST
Design of backdoor
- Aim: To design the back door of an automobile using the styling surface along with necessary reinforcement and embosses. - Method: - Back door: - A car door is a type of door, typically hinged, but sometimes attached by other mechanisms such as tracks, in front of an opening that is used for entering and exiting a vehicle.…
24 Jun 2021 06:51 PM IST
Roof challenge
- Aim: To design the Automotive roof rail and all the necessary components to improve the strength of the roof as per the master section. - Method: - An automobile roof or car top is the portion of an automobile that sits above the passenger compartment, protecting the vehicle occupants from sun, wind, rain, and other…
22 May 2021 06:44 AM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.