Monday, September 2, 2013

Electric Imp solar powered temperature logger.

The Electric imp is a small chip for connecting things to the internet. Programming the imp is done through their cloud IDE using squirrel.


The first hack I did with the imp was a solar powered temperature logger using a TMP36 sensor and send the data to ThingSpeak

Hardware

Parts

Optional 


Connect the pin9 on the imp to the middle pin on the TMP36 sensor.


Code

To calculate the temperature from the voltage is Temp °C = (voltage - 0.5) * 100 and to transform the analog value from pin9 to voltage is V = supplyVoltage * hardware.pin9.read() / 65535.0.


ThingSpeak graph




Happy hacking
Marcus