This project explores how to monitor simple climatic conditions with the Arduino in the context of solar power generation. Specifically, it introduces basic temperature sensing with a TMP36 chip and light with a light-emitting diode (LED), and stores the information for later retrieval, then smoothes out selected results and display in a chart, using PHP as a data processor, MySQL® as storage, and Flotr as a charting library.
: Arduino, Ethernet Shield, Solar panel battery
<Sensors on panel>
TMP36 sensors are attached to a solar rack and panel. On the right, under black electrical tape, is a sensor for ambient temperature taken from the metal pole. To the left is a second sensor attached to the back of a solar cell with duct tape. The duct tape retains adhesion a lot better than the consumer-grade electrical tape, at least in the short term.
The script is set up to treat X axis data as time values on the 24-hour clock for both charts and contains mouse instructions that allow you to hover over the produced line and display the related coordinates.
During the display phase, you might think about smoothing. This can be the use of a moving average or other weight-based scheme that moderates extreme values.