Hi guys,
-- Myself subin a engineering student in biotechnlogy. I am actually new to this community("call me a new bourn"),just 19 year old.For about a month i was working on a project called "Low cost PCR".A normal PCR machine costs about 2- 3 lack in india. So i wished i should make one of myown. The principles are simple so it is simple to convert into a code and make it work. I used an arduino uno do the coding,LM 35 temparture ic as a sensor.I do works on Robotics so it was not a difficult to combine biology and electronics.
Ill give the arduino code i have written for My PCR hope it might be useful for you. I will update its solid works model and circuit stuffs in my blog. My design will aprox cost about 16 dollers
This is the arduino code.....i have used a header file called timer.h
#include "Timer.h"
Timer t;
const int fan = 12;
const int bulb = 11;
const int temp_sensor =1;
int sensor_value;
int temp;
int number;
int count = 1;
void setup()
{
pinMode(fan,OUTPUT);
pinMode(bulb,OUTPUT);
Serial.begin(9600);
number = Serial.read();
while(count <= number)
{
void heating_up();
int denaturation_clock = t.every(60000, denaturation);
Serial.println(denaturation_clock);
int annealing_clock = t.every(45000, annealing);
Serial.println(annealing_clock);
int extention_clock = t.every(120000, extention);
Serial.println(extention_clock);
count++;
}
}
void loop()
{
}
int temparature()
{
sensor_value=analogRead(temp_sensor);
temp=sensor_value*0.48828125;
return(temp);
}
void heating_up()
{
temparature();
while(temp != 94)
{
heating();
}
}
void heating()
{
digitalWrite(fan,LOW);
digitalWrite(bulb,HIGH);
}
void cooling()
{
digitalWrite(bulb,LOW);
digitalWrite(fan,HIGH);
}
void denaturation()
{
temparature();
while(temp == 93)
{
digitalWrite(bulb,LOW);
digitalWrite(fan,HIGH);
}
heating();
}
void annealing()
{
temparature();
while(temp <= 52);
{
digitalWrite(bulb,HIGH);
digitalWrite(fan,LOW);
}
cooling();
}
void extention()
{
temparature();
while(temp >= 72)
{
cooling();
}
heating();
}
-- You received this message because you are subscribed to the Google Groups DIYbio group. To post to this group, send email to diybio@googlegroups.com. To unsubscribe from this group, send email to diybio+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/diybio?hl=en
Learn more at www.diybio.org
---
You received this message because you are subscribed to the Google Groups "DIYbio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diybio+unsubscribe@googlegroups.com.
To post to this group, send email to diybio@googlegroups.com.
Visit this group at http://groups.google.com/group/diybio.
To view this discussion on the web visit https://groups.google.com/d/msgid/diybio/c68f9368-386c-407d-b960-cbe1a2d86033%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comments:
Post a Comment