Challenge

Week - 4

AIM:

1. To implement control logic of a washing machine using ststeflow as per given sequence.

2.make a simulink chart for the gear shift logic as per given conditions.

OBJECTIVE;

1. in simulink implement the control logic of a washing machine using state flow as per given input conditions.create a model and operate the model logic systyem and display the output of the results by using lamp indicator.

2. create a model for gear shifting logic as per given conditions give the speedinput while simulation is running and the gear number.

EXPLANATION;

STUDY-1;

STATEFLOW;

Stateflow provides a graphics language that includes state transtion diagrams,flow charts,state transition tables, and simulink models react to input signals, events and time-based conditions.

CONTROL LOGIC;

Control logic is model system logic using state machines, flowchart and truth tables.

Explanation for control logic of a washing machine using stateflow;

stateflow is a model system logic using statemachine flowchart and truth tables.

here model system logic of a washing machine using state flow has been done.

step1; create a chart and enter the given input conditions.

given input conditions;

if the power supply is avaliable the system gets activated

if the water supply is not avaliable stop the process & indicate thriugh led

soaking time should be 200s followed by washing timeof 100s.

then rising hapenses have completed turn on the finished led.

for next 20s dryers runs for 50s after all the process

STEP2; after entering the input conditions in the chart, go to symbols pane and assign thr given variable

step3;Give the input values for turning on or off for the power supply and water supply.

condition;

if value=1, power anmd water supply will turn on.

if value=0, power and water supply will turn off.

step4; use display block and lamp indicatator to display the results.

STUDY2;

GEAR SHIFTING MECHANISM;

mechanical devices that enable the driver to engage gears in such a way as to obtain the desired transmission ratio are called shifting mechanisms.

explanation for gear shifting mechanism using simulink;

step1; CREATE a charet and enter the given conditions for gear shifting.

given conditions;

speed range (kmph) Gear

0 to 15 1

16 to 25 2

26 to 40 3

41 to 60 4

above 61 5

step2; after entering the input conditions in the chart ,go to symbols pone and assign the given variable

step3; connect the slider gain to vary the speed while simulation is running.

step4; create constant and giving value 1 and 0 for turning on & off

step5; create lamp to indicate the power is on or off

step6; use display block to display the gear position.

output;

study-1;

control logic of a washong machine using state flow has been implemented.

case-1; if the power source=0, power supply is not avaliable and system will not activate.

CASE2;

if the power source= land water source=0, then power supply will turn on and water supply will not be avaliable and so system will not activate.

case-3; if the power source= land wAter source=1, then power supply will turn on and water supply will be avaliable and so system will activated and after all. and water supply will be avaliable and so system will activated and after all process completed end lamp will turn on.

STUDY-2;

gear shifting logic has been created and by using slider gain block, to vary the speed while running the simulation.

case-1; if the key=0 then the power will turn off, lamp indicate the red colour and gear shifting mechanism will not activate.

CASE-2; if the key=1 then the power will turn on , lamp indicate green colour and gear shifting mechanism will activate.

case-3; by varying the speed(parameter) in the speedometer (slider gain), gear position will chance according to the given condition.

given speed=30km/hr in the speedometer, if the speed is between 25km\hr -40 km\hr 3rd gear will activated as per the given condition gear position is displayed below in the simulink model.

likewise,changing the speed in the speedometer according to the given condition, gear position will change.

q2 ans;simulink model is attached.

model name is neww42.slx

four state we have defined named as gear1...5

conditions are defined as per the questions

when the speed is 61kmph all the gear are on and having value 1.

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.