16
1 The George Washington University Electrical & Computer Engineering Department ECE 1010 Intro To Electrical and Computer Engineering Dr. S. Ahmadi Class 7

Dr. S. Ahmadi Class 7

  • Upload
    celine

  • View
    46

  • Download
    0

Embed Size (px)

DESCRIPTION

The George Washington University Electrical & Computer Engineering Department ECE 001 Intro To Electrical and Computer Engineering. Dr. S. Ahmadi Class 7. Biomedical Experiment Agenda. Building centrifuge Separating oil and water with centrifuge - PowerPoint PPT Presentation

Citation preview

Page 1: Dr.  S. Ahmadi Class 7

1

The George Washington University Electrical & Computer Engineering Department

ECE 1010Intro To Electrical and Computer

Engineering

Dr. S. AhmadiClass 7

Page 2: Dr.  S. Ahmadi Class 7

2

Biomedical ExperimentAgenda

• Building centrifuge• Separating oil and water with centrifuge• Adjusting time and speed to achieve the

best separation• Using an analog sensor to quantify

separation

Page 3: Dr.  S. Ahmadi Class 7

3

Centrifuge• A centrifuge is a piece of equipment that puts a

substance in circular motion in order for the centrifugal force to separate one fluid from another fluid.

• Gravity can separate mixtures but this process is very slow

• Centrifuge increases the effective gravitational force on the mixture by inducing centrifugal force

• Therefore, it accelerates the separation of the liquid from the solids or from other fluids

Page 4: Dr.  S. Ahmadi Class 7

4

Applications of Centrifuge• Separation of proteins and DNA’s by

Ultracentrifuge• Separation of isotopes used in nuclear

power and nuclear weapon programs • Used in the petroleum industry to separate

oil components• Oil-Water Separation

Page 5: Dr.  S. Ahmadi Class 7

5

Water Oil Separation by Centrifuge

• Oil-water separation in a centrifuge is based on centrifugal forces and the difference in specific gravity of oil and water

• Water will collect at the outside of the centrifuge, oil will collect in an inner layer

• Commercial centrifuges for oil-water separation have speeds varying from 2400 to 4500rpm

Page 6: Dr.  S. Ahmadi Class 7

6

Building Centrifuge• Build a centrifuge using lego components,

gears and motor• Lego motor’s free weight rpm is 350• Use gears to increase the rpm• Connect the motor to the handy board and

test your centrifuge• Attach the test tube to the centrifuge

Page 7: Dr.  S. Ahmadi Class 7

7

Centrifuge Pictures I

For more centrifuge pictures, visithttp://www.seas.gwu.edu/~ece001/Biomed_Fall05.html

Page 8: Dr.  S. Ahmadi Class 7

8

Centrifuge Pictures II

For more centrifuge pictures, visithttp://www.seas.gwu.edu/~ece001/Biomed_Fall05.html

Page 9: Dr.  S. Ahmadi Class 7

9

Centrifuge Experiment• Mix oil and water in the test tube• Run the centrifuge for a sufficient amount

of time • Observe the separation in the tube• Adjust your time accordingly

Motor Power (%)

t2 tt1

100

Page 10: Dr.  S. Ahmadi Class 7

10

IR Reflectance Sensor “Top Hat”

• Analog sensor• Connect to ports 0-7• Access with function analog(port#)• Low values indicate bright light, light

color, or close proximity• High values indicate low light, dark

color, or distance of several inches• Sensor has a reflectance range of

about 3 inches

Page 11: Dr.  S. Ahmadi Class 7

11

Light Sensors• Analog sensor• Connect to ports 0-7• Access with function analog(port#)• Low values indicate bright light• High values indicate low light• Sensor is somewhat directional and can

be made more so using black paper or tape or an opaque straw or lego to shade extraneous light. Sensor can be attenuated by placing paper in front.

Page 12: Dr.  S. Ahmadi Class 7

12

How to use sensors?• You should create an infinite loop• Inside the loop, read your measurement

from the analog sensor• Add a sleep time between your readings• Sample code

void main(){

while(1) {

/*Here type one line of code in order to print the value that you read from the sensor to the screen*/sleep(0.4);

}}

Page 13: Dr.  S. Ahmadi Class 7

13

Sensor Measurement• Use IR Reflectance Sensor “Top Hat” or light

sensor to measure values from separated oil and water

• Before centrifuge:– when oil and water are mixed

• After centrifuge– Measure value from the oil part which is at the top of

the tube– Measure value from the water part at the bottom

• Note your results

Page 14: Dr.  S. Ahmadi Class 7

14

Comparison• Prepare a test tube with the exact same ratio of

water and oil.• Mix water and oil in the tube• Make it wait same time as your run-time of

centrifuge experiment • Measure oil and water parts separately• Note your results• Compare your results with the ones from the

centrifuge tube• See if you have achieved enough distinction

between two measurements

Page 15: Dr.  S. Ahmadi Class 7

15

Pseudocode implementation of Centrifuge Program

int main(){

int speed = 0;// initial guesses-you tune these vars:

float separation_time=1.0 ; // guessfloat ramp_time=.1; // guess

printf (“\nPress A button to begin”);while (a_button() == 0) {}

// read value of oil + water mixed upwhile (b_button()==0){ printf (“\n mixed up value=%d”, analog (20); sleep(.2);}

// program continued in right column

// ramp up motorwhile (speed < 100){ // turn on motor at “speed” // sleep for “ramp_time” // increment “speed” variable}

// full speed ahead!sleep ( separation_time );

// ramp motor downwhile (speed >=100){ // do the reverse of ramp up loop}ao();return 0;/* use another while loop to measure separation just as before */

}

Page 16: Dr.  S. Ahmadi Class 7

16

In Class Assignment (Due at the end of lab today)

• Build Centrifuge, write Interactive C program to separate oil from water• Make and print a 1 PAGE document including the following:1) An Excel table, with sensor readings for 5 trials:

Trial # Sensor Reading (before

separation)

Sensor Reading (after separation)

Ramp UP

Time(s)

Time to Separate

(s)

Ramp DOWN Time

(s)OIL WATER

1

52) Graph of Motor % vs. Speed (see slide 9) (use best trial’s t1 and t2)3) Type of Sensor Used4) Average time needed to separate oil/water mix (Average of the 5 trials – include

time to separate + ramp-up/down time)5) Listing of code used to implement labNOTE: Email this document to report coordinator for use in final presentation/report