EcoRenovator

EcoRenovator (https://ecorenovator.org/forum/index.php)
-   Appliances & Gadgets (https://ecorenovator.org/forum/forumdisplay.php?f=21)
-   -   Quick & simple Arduino temperature logger (https://ecorenovator.org/forum/showthread.php?t=1209)

Daox 10-28-10 07:01 PM

Quick & simple Arduino temperature logger
 
1 Attachment(s)
The other night I threw together a simple temperature data logger with my arduino. I was programming to make the differential controller for the attic fan heat dodad and figured it would be good to log some temperatures while I'm at it.

As the title says, its very simple to make. All you need is:
Arduino
LM35DZ-ND
some wire

The total cost for parts would be less than $40 and you could make a 6 channel logger out of it with a few more sensors and some additional code.


The code is also very simple:

Code:

/* quick temp data logger
*/

// Variable declaration
int temperature = 0;  // variable to keep the actual value

// Analog pin declaration
int TsensorPin = 1;  // temperature sensor pin

void setup()
{
  Serial.begin(9600);
  pinMode(TsensorPin, INPUT);
}
void loop()
{
  temperature = analogRead(TsensorPin) * .512;
  Serial.print(temperature);
  Serial.println(",");
  delay(300000);
}


Every 5 minutes the logger just spews the temperatures back to the arduino software on a computer, so you do need a laptop or desktop to connect to. Once you are done logging, you copy the text into notepad and save it as a .csv file which you can then import into excel and make a chart or what have you out of it.

Here is what I ended up with.

http://ecorenovator.org/forum/attach...1&d=1288310419


Now, there is a slight problem. The temperature does seem to be a bit off. However, I'm working on it. :)

Clev 10-29-10 03:56 PM

Awesome; let us know if you get the temps figured out. I'd also love to see this store the data in the Arduino for later retrieval.

Daox 10-29-10 04:03 PM

Yeah, I'm looking into that idea as well. However, its a bit more complex to do that, and the arduino doesn't have a ton of onboard memory (512k).

RobertSmalls 10-29-10 05:02 PM

This thread got me thinking about a generalized arduino data acquisition system. Maybe something that could log an MPGuino's output to a SD card. Google turned up this, which would be fine for a temperature monitor, but too slow for a car: Arduino playground - UsbMemory

skyl4rk 10-30-10 01:12 PM

Thanks for the info on the LM35, I had been using thermistors but the LM35 might be better. Which package do you prefer to use? The TO-92s or the TO-220s?

I have a kit to put together a shield for a datalogger system, I have not yet put it together or even unpacked it. I need to log gps data and NMEA depth sounder data for a work project. I may also try to put together a pothole detector to rate city streets as to bumpiness as the driver experiences it.

It is an inexpensive kit:

Data-Logger Shield for Arduino

Daox 11-06-13 12:49 PM

I use the TO-92 sensors. However, many of the guys on the forum have been using 1-wire sensors and have been very happy with those. I forget which ones. Hopefully, they'll pop in here and share.

NiHaoMike 11-06-13 01:44 PM

TO92 is just a package type. It could be digital or analog, a complete sensor chip, or just a diode connected transistor.

It's possible to have the Arduino offload data to a PC (the PC doesn't even have to be on all the time - just often enough to empty the buffer) or you can add a SD card for increased storage.

jeff5may 11-06-13 02:48 PM

I love 1-wire sensors now that I have used a few with Arduino controllers.

A generic product page: 1-Wire Devices - Maxim

The DS18B20 is the temperature sensor that is so popular. Besides being a thermometer, you can tell it to be a thermostat, also. They are available in a waterproof package with 1 meter pigtail leads attached for $2.00 or less on ebay/amazon.

The thing i like about the 1-wire sensors over the linear sensors is that you can run a dozen or more sensors all off one line. With the linear sensors, a separate line must be run for each sensor, plus they need to be fed power. If you want to modify something, just splice in or remove a sensor from the data line. The 1-wire sensors can be fed power thru a separate line, but all they really need is a data line and a ground. They grab power for themselves off of the data line while it is inactive.

AC_Hacker 11-07-13 08:02 AM

Simple data logger...
 
I feel like I'm repeating myself, but the data logger I use is this one:


It is open source, it uses 1-wire sensors (Travis tested it with up to 70 sensors, could have gone higher), it is very reliable, it logs to an SD card (I tried a 16GB card, and it works fine), it is cheap $45 complete and ready to go.

I got mine HERE.

Since it is an Arduino, the code can be modified but you need a cheap FTDI Basic Breakout board to talk to it.

I've had mine for some years now, with no problems at all. It does everything I want it to do.

I'm currently monitoring my whole house with one.

-AC

Daox 11-07-13 08:09 AM

I know you've mentioned it several times AC Hacker, thanks for one more. :)

Do you have to do anything special with wiring the sensors? When I made my thermal differential controller for my attic heat fan setup, I had issues with RFI messing with my sensor readings. I made a not so great filter with a capacitor, but still have some issues with it. Does this logger incorporate some sort of software filtering, or hardware?


All times are GMT -5. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Ad Management by RedTyger