Challenge

Week - 4

1.Aim:

To create a control logic of a washing machine using stateflow as per above sequence

Procedure:

Create a blank Simulink model and create a chart block double click on it then go inside and start the stateflow chart

First create the power state block and type power then create the another state block link as in the slx file then click on link line and set the condition while the condition is true it goes to the next state as per the cart drawing

As per the condition the time is also set as per above condition for soak, wash, rinse,dry and final in between time condition is created as per given condition

Then go to view and open the symbols here the block port are assigned and input and out put are assigned. What are the things assigned only port is visible out of chart as Simulink

The input blocks and out put blocks are connected result taken out only an Simulink window

For input I used constant block and I provided dashboard signal slider switch and lamp. Water control I used toggle switch. For each state the operation done the separate indication lamp as been provided in scope the all final out results are ploted.

The state flow is as per the above condition created and ready for the simulation the slider switch is used for on the power off. The toggle switch is used for water control.

  1. Aim:

To make a simulink chart for the gear shift logic as per above condition and also need to provide the input variator to give speed input while the simulation is running and display the gear number.

Procedure:

Chart block is used for create the state flow. The initial state is ignition when it is on condition only engine start and run then the neutral state and gear are used to increase the speed

Here we need to provide automatic gear shifting as per the speed of the vehicle

States and conditions are need to provide after ignition the vehicle speed in zero condition neutral gear then first gear leads to when the vehicle speed is above 15 then it shifts to next gear or it maintain at same gear after the second gear reaches the speed of above 25 then the gear shift to 3rd or maintain at same speed or below 25 it reaches to first gear

As per the above condition for each gear is changes depends upon the speed limit then the symbol block is used for create the ports as per the symbol port the input and output takes part

Here the slider switch is used for ignition on condition and constant is linked with it and lamp is also connected to constant for applying speed the slider block is used while varying it the speed is adjusted and output analyses.

To view the speed while oscillating the half gauge is used for display while simulation we randomly change with use of slider we can see through the gauge

The gear out is connected to the display and scope the out put recorded and displayed in graph and while simulation the gear change and speed change are also seen through gauge and display.

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.