LCC code

I haven’t published my code for this project yet. Mainly because it’s dangerous and not totally tested. Here’s what I mean:

This software controls the environment of a living thing. Failure of the software can cause death. I’m not ok with that. For example- last night I  had an over heat condition. Because of a badly written IF statement, the corrective actions never executed. Thankfully I was home!

I am in the process of re-writing the code to simplify the corrective actions and to provide more debug information.  Arduino doesn’t provide ANY error trapping/reporting so testing has been more difficult than I’d prefer.

I hope to have a viable and tested code base to publish this weekend.

I just hope my lizard doesn’t mind the flashing lights while I’m testing…. 😉

 

TMP36 Analog Temperature Sensor

The TMP36 was my first sensor and is pretty simple. 3 pins, 1 analog port.

Available from SparkFun.

It’s a low voltage temperature sensor. It provides a voltage output that is linearly proportional to the Celsius temperature. It also doesn’t require any external calibration to provide a typical accuracy of ±1°C at +25°C and ±2°C over the −40°C to +125°C temperature range. Give the it a ground and 2.7 to 5.5 VDC and read the voltage on the Vout pin. The output voltage can be converted to temperature easily using the scale factor of 10 mV/°C. For Example:

Continue reading “TMP36 Analog Temperature Sensor”