Beruflich Dokumente
Kultur Dokumente
Conductor stiinific:
.L.dr.ing. George IPATE
Studeni:
Emilia MANTARAU, Anul III, ISB
.........................., Anul I, ISB
.........................., Anul I, ISB
MAI 2014
CUPRINS
Mai 2014
1. Introducere
2. Obiectivele lucrarii
3. Conceptul de .....................................
4. Prezentare generala a .......................
5. .............................................................
6. Concluzii
Bibliografie
Mai 2014
1. Introducere
2. Obiectivele lucrrii
Obiectivul general al lucrarii este .................
Im lazy. My impatience often leads me to botch important steps when I make yogurt. So to
get better control over the fermentation process, I made a crockpot thermostat attachment to
precisely control the temperature.
3
You can buy electric yogurt makers, but most of them only incubate; the heating/sterilization
step still has to be done on the stovetop. I wanted to experiment with Arduino microcontroller
programming and electronic circuit design in Fritzing (an open source circuit layout tool that
lets users document and share designs), so why not combine them into something I enjoy
doing?
With my old-school yogurt recipe (adapted from wikihow.com/Make-Yogurt), Id use a
stovetop and a candy thermometer to heat the milk to 185F and cool it to 110F, then use a
warm oven or radiator to ferment it at 100F. That takes a lot of attention, and more containers
than I care to wash later. Even with a commercial yogurt maker, Id probably have to heat the
milk myself, and thats the step Im most likely to botch.
Dont get me wrong its a great recipe as long as youre diligent. But the combination of
boring, time-consuming, temperature-sensitive steps puts my diligence to the test; thats why
the automation of an Arduino-controlled crockpot yogurt maker makes perfect sense to me.
3. ...................................
Mai 2014
Mai 2014
pinMode(relay, OUTPUT);
lcd.begin(16, 2);
lcd.setRGB(colorR, colorG, colorB);
Bridge.begin();
Serial.begin (9600);
Console.begin();
}
void loop() {
timp = millis() / 1000;
// temp = ((analogRead(TempSens) / 1024.0) * 5.0) * 100.0; // converteste valoarea in grade
Kelvin
// temp = temp - 273.0; // convert Kelvin to Celsius
Setpoint = (map(analogRead(pot), 0, 1024, 0, 255))*0.39; //Read our setpoint
// Setpoint = 26;
/* Senzor Temperatura GROVE */
temp = readTemp();
if (temp <= Setpoint)
{
digitalWrite(relay, HIGH); //Write out the output from the PID loop to our relay pin
}
else
{
digitalWrite(relay, LOW);
}
Serial.print(" timp ");
Serial.print(timp);
Serial.print(" r ");
Serial.print(Setpoint);
Serial.print(" Temp ");
Serial.print(temp);
Serial.print("\n");
lcd.setCursor(0, 0);
lcd.print(temp);
lcd.print(" oC ");
lcd.print(Setpoint);
lcd.print(" ref oC ");
lcd.setCursor(0, 1);
lcd.print(timp); // print the number of seconds since reset:
lcd.print(" s ");
// Console.print(temp);
delay(1000);
postToThinspeak();
Serial.flush();
}
float readTemp()
{
const int B = 3975;
int sensorValue = analogRead( TempSens );
float Rsensor;
Rsensor = (float)(1023 - sensorValue) * 10000 / sensorValue;
temp = 1 / (log(Rsensor / 10000) / B + 1 / 298.15) - 273.15;
return temp;
}
void postToThinspeak() {
HttpClient client;
String request_string = thingspeak_update_API + thingspeak_write_API_key +
thingspeakfieldname1 + temp + thingspeakfieldname2 + Setpoint;
// Make a HTTP request:
client.get(request_string);
Console.print(timp);
Console.print ("\t timp");
Console.print(temp);
Console.print("\t oC ");
Console.print(Setpoint);
Console.print("\t ref oC ");
delay(150);
}
/* Code ends here! */
Everything is commented. Just set the min and max temperature and upload it to your Arduino
board.
This code prints the current temperature and relay status on the serial port every 1 second, sou
you have an idea what is happening inside the box!
Note that the code also calls for an SD card to save the data. This is optional and commented
on the next step.
5. Saving data
Step 3: Saving data
Mai 2014
One thing I was not sure of was to how to set the min and max temperatures. To get a better
ideas what was happening inside the box I attached a SD card module to the Arduino. It uses
pins 10-13 for communication and GND and 3.3V pins of the Arduino for power.
Just insert a FAT formatted SD card and the program will create a new TXT file every time
you turn it on and save the temperature and relay status every 5 seconds.
If you open the created file in Excel you can make a graph like the one on the image. Looking
at the graph you see that it would be probably more interesting to set a narrower temperature
range and improve heat transfer from the resistor in order to reduce temperature variations
inside the box. Well, I'll post some update on this later.
Hope you have fun and make some nice yogurts!
6. Concluzii
.............................................................
Bibliografie selectiv
1. George Ipate. APTB. Note de curs , 2013 - 2014.
2.
3.
4.
5.
6.
http://makezine.com/projects/yobot-arduino-yogurt-maker/
http://www.instructables.com/id/Cheap-Arduino-Controled-Yogurt-Maker
.............................
...............................
..........................
10