160 likes | 268 Views
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
E N D
The George Washington University Electrical & Computer Engineering Department ECE 001Intro To Electrical and Computer Engineering Dr. S. Ahmadi Class 7
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
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
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
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
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
Centrifuge Pictures I For more centrifuge pictures, visit http://www.seas.gwu.edu/~ece001/Biomed_Fall05.html
Centrifuge Pictures II For more centrifuge pictures, visit http://www.seas.gwu.edu/~ece001/Biomed_Fall05.html
Motor Power (%) 100 t t1 t2 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
IR Reflectance Sensor “Top Hat” • Analog sensor • Connect to ports 2-6 or 20-23 • 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
Light Sensors • Analog sensor • Connect to ports 2-6 or 20-23 • 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.
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); } }
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
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
void main() { int speed = 0; // initial guesses-you tune these vars: float separation_time=1.0 ; // guess float ramp_time=.1; // guess printf (“\nPress start to being”); while (start_button() == 0) {} // read value of oil + water mixed up while (stop_button()==0) { printf (“\n mixed up value=%d”, analog (20); sleep(.2); } // program continued in right column // ramp up motor while (speed < 100) { // turn on motor at “speed” // sleep for “ramp_time” // increment “speed” variable } // full speed ahead! sleep ( separation_time ); // ramp motor down while (speed >=100) { // do the reverse of ramp up loop } ao(); /* use another while loop to measure separation just as before */ } Pseudocode implementation of Centrifuge Program
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: 2) Graph of Motor % vs. Speed (see slide 9) (use best trial’s t1 and t2) 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 NOTE: Email this document to report coordinator for use in final presentation/report