Go Down

Topic: Need Help with Temp and Power Data Logging w Ethernet and Email (Read 132 times) previous topic - next topic

KDAD

New to Arduino and while generally aware of the possibilities there is now so much information out there that wading through it has been difficult.  Any help on the general direction that I am looking at would be appreciated.

We have a remote monitoring site that operates unattended which we would like to monitor and log the temperature and AC power status.  The site has a Windows 7 PC and a battery back up.  Typically we monitor a 5 VDC power supply plugged into a non-battery backup outlet as an indicator of a power outage.  We have remote access through an Ethernet (or serial) data modem.

We would like to build something to monitor the temperature and AC power status and be able to log that data.  Something like hourly averages would be great although samples each hour (or less) would work as well.  If the data could be sent to the PC in a format that can be read in Excel is preferred.  Email send capabilities are also preferred when conditions are met such as if temperature is below or above a set point.

 I have identified the items listed below from DigiKey. We have an account with them and a single source is helpful. My budget is reasonable so I don't have to save every penny by foregoing assembled shields in favor of individual components unless it makes sense to do so. Are the items listed a good starting point or would you recommend something different to get the project completed.  Are there any issues with what I have selected as far as compatibility? Anything that I am missing?

ARDUINO UNO BOARD REV3
ADAFRUIT ASSEMBLED DATA LOGGING SHIELD 1141
ARDUINO A000024 ETHERNET SHIELD
ADAFRUIT TMP007 IR THERMOPILE SENSE EVAL BRD
ADAFRUIT 714RGB LCD 16X2 CHAR DISPLAY SHIELD




mikb55

Do you want to log the temperature of the PC?
Is the 'battery backup' a UPS with a USB connection to the PC?

If yes and yes, then write a Windows program to log and send the data using APIs provided by the operating system. No need for a microcontroller.

KDAD

No.  Logging is of an stand alone temperature sensor (ADAFRUIT TMP007 IR THERMOPILE SENSE EVAL BRD or other) that will monitor the air in a climate controlled room that the equipment is in.  The temperature sensor will be separate from the PC.  The PC will act as a user interface and additional way to remotely connect to the site.

Yes. The battery backup is a UPS although we haven't ever used the USB connection and any UPS or Windows software that comes with them.  Not to say that we can't...

Didn't mention it above but date and time stamping the data is important, especially if a power outage occurs.

PieterP

I wouldn't recommend an UNO for networking. 2kB of RAM isn't a lot if you need to access files from an SD card and run a web server at the same time, for example. You'll probably be dealing with long Strings (e.g. HTTP responses or HTML), if you dynamically allocate them, you'll get memory fragmentation.
You may want to (de)serialize JSON or parse XML as well, which requires quite a lot of resources.

You could take a look at this temperature logger I wrote for the ESP8266 (using the Arduino IDE). It saves time stamps and temperature values to a CSV file, hosts a web page to graph it in the browser, and uses NTP to get the time from a time server.

The CSV file can be downloaded, and can be directly imported in Excel.

It has some more advanced features as well, like network firmware upgrades, and you can upload new web pages wirelessly and from within the browser.

Pieter

KDAD

The ESP8266 seems like a simpler and more elegant approach using less components.  I will look into using that chip instead.  It would be nice if that chip could handle 5V but I can deal with that.

Go Up