Challenge

Week - 4

1.)

Aim:-

Implement control logic of "washing machine" Using stateflow as per given sequence:

PROCEDURE:-

Working Principle of A Machine:

A washing machine by spinning at 800-1600rpm helpss soap or dirt with leave it the surface of the cloth via centrifugal force and into outlet pipes hence utillizing cetrifugation to both clean and partially dry the cloths loadedin it.This the process are eelectrically controlled ,such as the drum,value,pump,motor and heating.The value opens again and the dirty water drains out of the drums.The pump works to helps get rid of the water. The value lets clean water in again into the drums.The four process are:

SOAKING:

IT is used to dip colthes in detergent water to remove dirt from the colthes. In this customer need to select soak from a panal. Soak-This function is available with wash timer,In 42 min of washing 27min is soak and 15 min machine will wash the clothes.

WASHING:

During the wash cycle ,a large plastic agitator (green) turns around,moving your clothes thorugh the water. When the wash is finished,the pump drains the water from the outer drum.

RINISING:

The dirty,soapy water is drained,then the washing machine is refilled and your colthes "rewased" in clean water. spin ALL the water is drained completely,then your clothes are spun very fast and excess water is removed thanks to centrifugal force.

DRYER:

They work by pushing warm dry air through your wet washing to extrack moisture,then cooling the now humid air in a heat exchanger to condense the moisture, which is collected in a tank or pumped down the drain. The (now dry) air is reheated and the cycle repeats.

STATEFLOW:

systematic solution of the problem is possible with sequential,unambiguous and realizable finite process step set. This set is called "algorithm" and it is one of the most important part of the programming languages.

CONTROL LOGIC OF A WASHING MACHINE :

Its checks for the extent of dirt and grease,the amount of soap and water to add ,direction of spin and so on.The machine rebalances washing load to ensure correct spinnig. else,it reduces spinnig speed if an imbalance is detected .Even distribution of washing load reduce spinning noise.

STEP:1

given the input condition:

* If the power supply is available,the subsystem is activated.

* If the water supply is not available,stop the process&indicate through LED

* Soaking time should be 200s followed by Wasing time of 100s.

* Then rinsing happens for next 20s&dryer runs for 50s.

* After all the process have completed turn on the finished LED

STEP 2:

After entering the input condition in chart , Go to symbols pane and assign the given variable.

(EXAMPLE : input data , output data ,etc....)

STEP 3:

Give in the input values for turning ON or OFF for the power supply and water supply.

condition:

if value =1, power supply and water supply will turn ON

if value=0,power supply and water supply will turn OFF

STEP 4:

Use display block and lamb indicator to display the result

WASHING MACHINE

OUTPUT:

Condition 1:

Control Logic of a washing machine using state flow has been implement.

case1:

if the power source = 0, power supply is not available and system will be not activated. then if automatic indicate on the stop condition.

CASE 2:

if the power source =1, and water source=0, then the power supply will turn ON and water supply will not be available. so system will not be activated.

Case 3:

if the power source=1 and water supply=1 power supply will be turn ON condition and water supply is available . system will be activated and after all process completed, end Lamp will turn ON .

The two input are given for power and water supply.Once the input given in outputs are displayed by flow chart as per the givin sequence .The system are observed for sometime then it is cheaked and the process is completed by green displayed.

RESULT:-

*Thus the control logic of a washing machine using stateflow is processed as per the given sequence and LED lights are turn to the green color and the system is completed.

-------------------------------------------------------------------------------------------------------------------------------------

2)

GEAR SHIFT LOGIC:

A gear shift machine for a manual transmission includes a shaft axially movable for selecting shift plance and rotatable fo engaging the gears defining the shift plance. The shaft is held in a reference shift plance by two helical spring.

Explanation For Gear shifting Machanism Using Simulink:

Step 1:

Create a chart and enter the given condition for gear shifting.

Gear Condition:

Speed Range (kmph) Gear

0 TO 15 1

16 to 25 2

26 to 40 3

41 to 60 4

Above 61 5

STEP 2:

After entering the input condition in the chart, go to symbol pane and assign the given variable.

(EXAMPLE: input data,output data,etc....)

STEP 3: connect the "Slider Gain" to vary the speed while simulation is running.

STEP 4: Create a constant and give the value of 1&0 for ON& OFF condition.

STEP 5:Create the Lamp to indicate the ON & OFF condiion

STEP 6:Use "Display" and "Gauge" blocks to display the gear position and speed.

OUTPUT:-

GEAR Shifting Logic has been created and by using Slider Gain Block has been varied while running the simulation.

Condition 1 :-

if the constant Power =0 then the power will turn OFF,and the Lamp indicates the Red colour and gear shifting mechanism will not be Activated.

Condition 2:

if the constant power=1,then power will turn ON,and the Lamp indicates green colour and gear shifting mechanism will be activated.

Condition 3:

*By varying the speed (parameter) in the speedometer(Slider Gain),gear position will change according to the given condition.

* Giving speed = 0km/hr in speedometer, the Gear display "NEUTRAL" wille,at speed =80km/hr, the gear display reads"Gear5".

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

*From data inspector option in the tool,bar we can see the graph on the Gear shit at respective speed change.

RESULT:-

* A sumulink model is created for gear shift logic and using slider gain the value are obtained.

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.