Incubator Controller Project

I am a newbie to micro controllers and just ordered my first Arduino Uno to make my home made egg incubator a little cooler. I plan to control temp using an lm34 and control the position of my egg turner using limit switches. I also ordered a 16/2 lcd with a keypad and plan to set it up so that I can calibrate the temp, change the set-point, and change settings on the egg turner. I will also want to display the temp and maybe the humidity at some point. Once I get that mastered, there is no telling what I will do next. I am an electrician in a industrial plant and have done lots of PLC programming using windows based software, but will probably be asking for help on here when I get started.

I plan to control temp using an lm34

How will you control the temperature using a thermometer? I have a dozen thermometers around my house, but I still have to run the furnace or air conditioner to control the temperature. It would sure be a lot cheaper if I could control the temperature using a thermometer.

Welcome in Arduino land,

Wrote a test sketch (that is what we call applications) for an LM34 recently, including 3 ways to suppress noisy readings. Although I work in Celsius mostly I like the lm34 as it has an 1.8 higher resolution than the lm35. 10 mv per 1F versus 10mv per 1C.

Please be carefull when connection the lm34 to the Arduino. The pinlayout in the datasheet is as seen from below. (it will get very hot very quick)

About the code - loop1() and loop2() are not executed, only loop() is, rename the functions and see the differences.

Hopes this gets you started.

//
//    FILE: lm34.pde
//  AUTHOR: Rob Tillaart
//    DATE: 2012-01-24
// PURPOSE: showing LM34 fahrenheit temp sensor
// VERSION: 0.1
// HISTORY: 2012-01-24 initial version (2 diff loops
//          quite a difference between 3 sensors
//
float raw = 0;
float t = 0;

void doPrint()
{
  Serial.print(raw);
  Serial.print("\t");
  Serial.print(t, 4);
  Serial.print("\t");
  Serial.println((t-32)*0.555555555555, 4);
}

void setup()
{
  Serial.begin(115200);
  Serial.println("START....");
}

void loop1()
{
  raw = raw * 0.9 + 0.1 * analogRead(A0);
  t = 5 + raw * 500.0/1023.0;
  doPrint();
  delay(10);
}

void loop()
{
  raw = 0;
  for (int i=0; i<100; i++) raw += analogRead(A0);
  t = 5 + raw*5.0/1023.0;
  doPrint();
  delay(10);
}

void loop2()
{
  raw = 0;
  for (int i=0; i<500; i++) raw += analogRead(A0);
  t = 5 + raw/1023.0;
  doPrint();
}

but will probably be asking for help on here when I get started.

Anytime, but please use the # button to tag code properly and tell us as much as you can about the problems like what did you expect for output, what did you get etc.

Have fun!

Thanks for the info robotillaart !
I am just thinking about what kind of control logic I want for the temperature control and wondering if I could set it up to do pwm with a solid state relay to operate the heating element. I think it would work great but don't know how long the sst would last? I am also wondering if I could bring the outside temp into the control scheme. I will be trying to maintain 99.5 F and I keep this thing in my garage that is insulated but not climate controlled. In the winter the element stays on most of the time and not very much in the summer.

Hello my name is Asek, I'm learning to make an incubator for chicken with Arduino. Please help. On the LCD there is a Select button, up, down, right, left and reset. How is the code, I do not know. Please help. Thank you

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

Check this link it will tell you all about your LCD board and give you sample code.

https://arduino-info.wikispaces.com/LCD-Pushbuttons

Thanks... Tom.. :slight_smile:

i am new to this i want a full code and circuit details for egg incubator please help any one

gobi2085:
i am new to this i want a full code and circuit details for egg incubator please help any one

When resurrecting an old thread, it always helps if you read it first. Especially the links in #5 are very useful for you.
Oh, and we do expect you to do your own homework which includes a thorough Google search on the subject, and at the very least make a good attempt at starting your project.

PaulS:
How will you control the temperature using a thermometer? I have a dozen thermometers around my house, but I still have to run the furnace or air conditioner to control the temperature. It would sure be a lot cheaper if I could control the temperature using a thermometer.

you are just not feeding it enough power.
put in a solid 20-30 amps at 220 volts and you should be able to heat more than a few rooms.

for that larger space, make sure there is a sufficient amount of combustibles nearby.

just checking... you did say 'heat' and not 'control' right ?

gobi2085:
i am new to this i want a full code and circuit details for egg incubator please help any one

:o

Are you sure this is all you want?

Maybe you should ask for the PCB (with all the components, and have everything fully soldered), maybe a case to install the hardware, and maybe the eggs too.

We help you, we don't do your work.

Show us what you have done on this project.