The George Washington University Electrical Computer Engineering Department

  • Slides: 16
Download presentation
The George Washington University Electrical & Computer Engineering Department ECE 1010 Intro To Electrical

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

Biomedical Experiment Agenda • Building centrifuge • Separating oil and water with centrifuge •

Biomedical Experiment Agenda • Building centrifuge • Separating oil and water with centrifuge • Adjusting time and speed to achieve the best separation • Using an analog sensor to quantify separation 2

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

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 3

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

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 4

Water Oil Separation by Centrifuge • Oil-water separation in a centrifuge is based on

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 4500 rpm 5

Building Centrifuge • Build a centrifuge using lego components, gears and motor • Lego

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 6

Centrifuge Pictures I For more centrifuge pictures, visit http: //www. seas. gwu. edu/~ece 001/Biomed_Fall

Centrifuge Pictures I For more centrifuge pictures, visit http: //www. seas. gwu. edu/~ece 001/Biomed_Fall 05. html 7

Centrifuge Pictures II For more centrifuge pictures, visit http: //www. seas. gwu. edu/~ece 001/Biomed_Fall

Centrifuge Pictures II For more centrifuge pictures, visit http: //www. seas. gwu. edu/~ece 001/Biomed_Fall 05. html 8

Centrifuge Experiment • Mix oil and water in the test tube • Run the

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 (%) 100 t 1 t 2 t 9

IR Reflectance Sensor “Top Hat” • • Analog sensor Connect to ports 0 -7

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 10

Light Sensors • • • Analog sensor Connect to ports 0 -7 Access with

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. 11

How to use sensors? • You should create an infinite loop • Inside the

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); } } 12

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

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 13

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

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 14

Pseudocode implementation of Centrifuge Program int main() { int speed = 0; // initial

Pseudocode implementation of Centrifuge Program int main() { int speed = 0; // initial guesses-you tune these vars: // ramp up motor while (speed < 100) { // turn on motor at “speed” // sleep for “ramp_time” // increment “speed” variable } float separation_time=1. 0 ; // guess float ramp_time=. 1; // guess printf (“n. Press A button to begin”); while (a_button() == 0) {} // full speed ahead! sleep ( separation_time ); // read value of oil + water mixed up while (b_button()==0) { // ramp motor down while (speed >=100) { // do the reverse of ramp up loop } ao(); return 0; /* use another while loop to measure separation just as before */ printf (“n mixed up value=%d”, analog (20); sleep(. 2); } // program continued in right column } 15

In Class Assignment (Due at the end of lab today) • Build Centrifuge, write

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) OIL WATER Ramp UP Time (s) Time to Separate (s) Ramp DOWN Time (s) 1 … 5 2) Graph of Motor % vs. Speed (see slide 9) (use best trial’s t 1 and t 2) 3) Type of Sensor Used 4) 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 lab 16 NOTE: Email this document to report coordinator for use in final presentation/report