Challenge

Week - 4

AIM :-

1. To implement logic of washing machine using stateflow.

2. To make simulink chart for gear shift from the given conditions.

OBJECTIVE 1:- Implementing logic of washing machine with the help of state flow which is a event driven system that responds by making transition from one state to another if the condition is true. Here we will impliment the conditions given to us in the particular order.

1. Create a chart with the given input sequence.

2. Declare the variables in symbol pane.

3. Connect the diaplays & lamps equivalent to the number of outputs declared in symbol pane.

4. Check for the first two condition i.e power and water supply and after that rest of the process should carried out till finish lamp is activated.

5. After the completion of first 2 steps state flow chart will work on as per timimg sequence i.e

Soaking time (200s) then washing time for (100s) followed by rinsing for (20s) and the dryer for (50s)

Chart of given input sequence

Declaring variables in symbol pane

Lamps been connected to their respective signal to show the status of process.

Here the status of the process can be observed on display block or on lamp.

STUDY

After implementing every given condition go for disabling water supply and power supply we will find process wil not go through these steps i.e Power supply and water supply has to be checked for the completion of process.

When water supply is not ok process stoped at that point and it didn't initiated without the Power supply.

OBJECTIVE 2:- Implementig Gear Shift logic using simulink chart as per given condition.

Speed & Gear combination is given as follow :-

0-15 = Gear 1

16-25 = Gear 2

26-40 = Gear 3

41-60 = Gear 4

Above 61 = Gear 5

1. After implementing above situation in chart go to Symbol Pane and assign variables as input and output.

2. Connect the slider gain to vary the speed while simulation is running.

3. Keep the constant one as ignition give it condition as 0 or 1 as on and off situation.

4. Use display bar in output to view the status of gear position.

Implimentation of given sequence.

Declaring Variables.

Connecting slider gain as speedo meter and constant value as Ignition to show the status of vehicle.

Study

Here we can see if there is no ignition the vehicle will give no output, so for getting the status of gear ignition has to be on and then change value of slider gain to show the status in display block connected at the output.

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.