Web Data Logging With Pachube and LM335Z

An Arduino Mega Clone Resetting The Other Arduino + EthernetShield Every 30 Minutes.


Arduino feed of LM335 temperature sensor to the cloud.

This is an extension of the LM335 temperature sensor circuit adding internet logging capabilities to the Arduino using Pachube (patch-bay). It is basically the same circuit with the Tellymate and Arduino (Wiznet) EthernetShield added, so I will point you to the original LM335 plans.

The Main Arduino Sketch: pachubeLm335zTemperatureSensor_v6.pde

Functions To Include For This Sketch (in the same directory):

Everything is stock so far, no modifications  have been made to the ethernetShield or the Arduino. I do get the freezing problem with the Arduino quite regularly, so a reset is indeed needed. My solution was to use an old Arduino Atmega8 I have lying around and program it is a "resetter". A simple sketch with digitalWrite to pin 9 (hooked up to the Arduino RESET) gives me a hard reset every 30 minutes.

Wiring to Pachube is a breeze, but could not figure out how to send proper results using "sprintf()". In the end I just sent comma-delimted values using "localClient.print" and bypassed the "pachube_data" array as set up in the tutorial sketch. Also I am very impressed by the speed, reliability and level of online documentation for Pachube-- hopefully this will stay around as a sustainable business model even if they start charging for their services. Good stuff.

The Pachube Data Logging Setup On My Desktop Before The Remote Sensor.

Creating A Remote Sensor Using Phone Cables, RJ-Jacks and the LM335. Note the Home End and the Remote End.

Use An Arduino As A Periodic Resetter: resetAnotherArduino.pde