All Courses
All Courses
AIM:To create a model of Implement control logic of a “washing machine” using Stateflow as per given sequence and Make a Simulink chart for the “Gear shift” logic as per below conditions by using the simulink. objective:1.Implement control logic of a “washing machine” using…
Mohmmed Riyaz
updated on 04 Apr 2022
AIM:To create a model of Implement control logic of a “washing machine” using Stateflow as per given sequence and Make a Simulink chart for the “Gear shift” logic as per below conditions by using the simulink.
objective:1.Implement control logic of a “washing machine” using Stateflow as per given sequence:
After all the processes have completed turn on the finished LED
explanation:1.With state flow,you model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Graphical animation enables you to analyze and debug your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.
2..The model was created by using the state flow block in the simulink library.
3.If you are building a chart in a Simulink model, in the Modeling tab, under Design Data, select Symbols Pane. If you are building a standalone chart for execution in MATLAB, in the State Chart tab, select Add Data > Symbols Pane. In the Symbols pane, click Resolve Undefined Symbols.
4.A slider switch is used to give the power supply to the switch and as well as water supply.
5.A chart is created by determining the various state flows of the washing machine such as checking the water supply and soaking for 200 sec,followed by washing time for 100sec andthen rinsing time happens for next of 20 sec,finally the drying time of 50 sec.
6.Led lamp are connected to show the process in every state.
7.Water supply is checked before soaking process if there is no water supply the lamp indicates the red signal of LED lamp otherwise the lamp shows the green signal of the proceess complete.
model block:The below model block is respresent the state flow chart which should be taken from simulink library.
The below symbol pane is use to define the outputs and input of the chart.which should be taken from the modelling option in the page.
The below diagram is showing the simulation before giving the supply. the 'red lamp' indicates the stopped process.
The below diagram is showing the simulation after giving the supply. the 'green lamp' indicates process complition.
the below figure represents the running time and simulation cloumn:
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.
explanation:1.With state flow,you model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Graphical animation enables you to analyze and debug your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.
2..The model was created by using the state flow block in the simulink library.
3.If you are building a chart in a Simulink model, in the Modeling tab, under Design Data, select Symbols Pane. If you are building a standalone chart for execution in MATLAB, in the State Chart tab, select Add Data > Symbols Pane. In the Symbols pane, click Resolve Undefined Symbols.
4.Making the chart to stimulate the gear shifts.when the Speed Range(kmph) of 0 to 15kmph reaches the gear shifts to 1,the speed reaches to 16 to 25kmph the gear shifts to 2,the speed reaches the 26 to 40 kmper hour the gear shifts to 3,after reaching a 41 to 60kmph the gear shifts to 4 ,finally the gear reaches above 61 the gear shifts to 5. the process can done repeatly until stop the car.
5.The Slider block tunes the value of the connected block parameter during simulation. For example, you can connect the Slider block to a Gain block in your model and adjust its value during simulation. You can modify the range of the Slider block's scale to fit your data.
model:The below chart represent the gear shifts and conditions of moving the gears.
The below symbol pane is used define the input and output of the gears system which should be defined through the symbol pane panel should be taken from the modelling window in the simulink.
The below model block is represent the gear shift 1 which starts the speed of the car.the blue box represents the gear 1.
The below model block is represent the gear shift 2 which means the speed of the car reaches between the16 to 25kmph.the blue box inside the chart represents the gear 2.
The below model block is represent the gear shift 3 which means the speed of the car reaches between the 26 to 40kmph.the blue box inside the chart represents the gear 3.
The below model block is represent the gear shift 4 which means the speed of the car reaches between the 41 to 60kmph.the blue box inside the chart represents the gear 4.
The below model block is represent the gear shift 5 which means the speed of the car reaches between above 60kmph.the blue box inside the chart represents the gear 5.
The below figure shows the simulation window
conclusion:
The control logic of washing machine and the control logic of gear shifts are created successfully by using the matlab-simulink.
`
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...
Project 2
AIM: To develop the forward energy-based fuel Consumption model of a P1 hybrid vehicle by using the matlab and simulink. Overview: 1. Hybrid Electric vehicle: Using the Two or more energy sources to propulsion system in driving is called the Hybrid Electric Vehicle. Conventionally,petroleum fuel based energy source (Petrol,deisel,etc..)via…
30 Jun 2022 03:17 PM IST
Project 2 Adaptive Cruise Control
EV BATCH17 AIM: To develop a model of adaptive cruise control by using the matlab. Objective: Development of a MATLAB Simulink Model for Adaptive Cruise Control feature as per the requirement document following Model Based Development(MBD) related process.SLDD creation,configuration parameter changes,Model advisor check…
27 Jun 2022 07:56 AM IST
Project 1 (Mini Project on Vehicle Direction Detection
AIM: To develop the model of vehicle direction by using the matlab. OBJECTIVE: The objective of this project is to create a MBD complaint MATLAB Simulink model for a vehicle direction dectection as per the requirement specified. Tag the requirements to the simulink model;Requirement 1 & Requirement 2 are tagged…
26 Jun 2022 06:30 AM IST
Project 2 Thermal modeling of battery pack
EV BATCH17 AIM: To design a 10 series lithium ion battery model,simulate the thermal effects by using the matlab. abstract: Lithium ion (Li-ion) battery pack is a complex system consisting of numerous cells connected in parallel and series. The performance of the pack is highly dependent on the health of each individual…
18 Jun 2022 09:46 AM IST
Related Courses