Centrifuge
A centrifuge is a device that uses centrifugal force to separate various components of a fluid.
the idea of the centrifuge is a device that uses a rotor to separate particles from a solution.A centrifuge's rotor applies a centrifugal force to each particle in the sample, which causes the particle to sediment at a rate proportional to the centrifugal force supplied to it.
I was influenced by the DIY bio team at London University, who created lab equipment using 3D printing, laser cutting, Arduino, and electronics to lower research costs.
My project body made of wood ad the rotor is a 3d printed part I started with the body which was a box so it consist of 6 parts 4 of them was 200mm*200mm and 2 of them were 200mm*189mm using tape and slots to join the parts with each other
-create sketch
-draw square 200*200 with 8 tapes 3.2 heights and 25 width copy it cause I need two from each part
- draw square 200*200 with to 8 rectangles 3.2 heights and 25 width were I can fix the tapes in it and copy it too
- draw rectangle 200mm*189mm with 4 tapes and 4 rectangles with the same dimensions and copy another one from it
- finish sketch and extrude all the parts 3 mm and used assembly choose joints to assemble the parts
- folder sketch - right click- save as dxf
then mountain components such as H bridge, motor, Arduino, temperature sensor, lcd and slider using project then extrude cut to the parts which will fix components through.
after that started the rotors started to draw a circles 10 mm extrude it 10mm then draw circle 25 mm and extrude it 3 mm then 4 circles on it 1 mm for the eppendorfs and extrude cut and then mountain the motor. repeat it 3 times with different sizes.
the last step save as stl
Laser cutting
export dxf file from fusion 360 then use laser work software to prepare file for laser cutting machine upload the dxf file to laser work and adjust the cutting speed 20 mm\sec and power 65% 300 mm/s the last step to download the file as rld.then using the laser cutting machine, uploaded the file to the machine computer then downloaded it o the machine , adjust the focus and choose the start point and start cutting it.
it takes 11 mins.
3d printed
after saved the file as stl from fusion 360
then used ultemaker cura
1- adjust dimensions
2-adjust parameters profile default 0.2, infill 30%
3- check supports and it doesn't need supports
4- slicing it
3d printing machine
choose the filament color
2- uploded the sd card with g code to the machine
3- preheat the bed and nozel and change the filament
4- start fabricating
My device function is to separate samples by centrifugal force so I used Motor and H bridge as output and potentiometer as input to adjust the speed also the device sense temperature and gives alert when it is unsuitable for the samples so I used LM35 sensor as input and buzzer as output and slider as a input to reverse the device function when it is on the motor works when its off the sensor works also used Arduino as a brain and 9v adapter as power source, jumpers and crocodiles.
analog pin A1 for temp. sensor
analog pin A0 for potientiometer
pin 3 for buzzer
pin 2 for slider
pins 8,9,10 for H bridge
My dc motor need 6 v so whe n I used 5 v adapter it does n't give the required speed so I used 9v adapter.
I used Arduino uno for coding my device needs to do 2 action first is to rotate the rotor with speed control by the potentiometer and sense temperature with buzzer alert when temperature chanched to lower than 35
so first of all I identified all integers and pins second I used if else condition to switch the device function by slider when it is low the motor work when it is high the temp. sensor work
I used potentiometer, Lm35 sensor and slider as inputs and motor and buzzer as outputs.
I used map to control the motor speed by the potentiometer but it doesn't work searched for the problem but can't fix it so I searched for another code and I found that one
void TurnMotorA()
{
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
speed1 = analogRead (A0);
speed1 = speed1*0.24926686622;
analogWrite(ConA,speed1);
}
void loop()
{
if (digitalRead(2) == LOW)
{
TurnMotorA();
}
and it worked
in else condition I used the lm 35 code I used in assigment week 6
val = analogRead(tempPin);
float mv = ( val / 1024.0) * 5000;
float cel = mv / 10; Serial.print("TEMPRATURE = ");
Serial.print(cel);
Serial.print("*C");
Serial.println();
delay(1000);
int temp = mv * 1000 / 10;
if ( cel < 35)
{
digitalWrite(3, HIGH) ;
}
else {
digitalWrite(3, LOW) ;
}
after finishing the fabrication I started to assembly the box parts with each other then started to assembly the components, uploaded the code to the Arduino and connect the device to the power supply . When I started to rotate the potentiometer the rotor rotate with different speed as shown I the vedio ( the slider was on or Low) when I turned the slider off as shown in the serial monitor the temperature sensor started to give readings to the temperature when it is lower than 35 the buzzer alert.I used a lighter to raise the temperature when it raise the buzzer stopped as shown in the second video.
I shared my project on Slack, and they suggested that I add additional accessories to the device. I also asked Amany and Rashida for advice when I finished the box in the lab, and they suggested that I change the colour, so I went with violet.
I have a problem with my code in that the map does not work. I searched a lot and couldn't discover the problem, so I looked for a new way to control the motor with a potentiometer other than the map until I found another equation that worked.
Also, the box's parts don't fit together, so I asked Mohaned and Amany to help me address the problem by making two of the sections smaller than the other four, and it worked.
I would add thermostat to the design to make the device works as centrifuge and incubator