RPi/temperature

From Bjoern Hassler's website
< RPi
Jump to: navigation, search

Project 1: Temperature fluctuations in winter[edit]

Given that it's winter, I always wondered how good my heating controls (with combined timer/thermostat) are at getting the right temperature. Given that there is only one thermostat in a central location, and that the controls on the radiators are manual, how does the temperature varies in different rooms? How cold does get during the day or during the night (when the heating is low)? Ideal for some Pi data logging.

There are various recipies about, e.g. http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/

sudo modprobe w1-gpio
sudo modprobe w1-therm
cd /sys/bus/w1/devices/

then cd to the id for the sensor, followed by

 cat w1_slave

gave the temperature!

At the moment it's 19.5 degrees, and data is continuous logged to a file (one per minute), together with a (manually provided) label for the location.

Bjoern 13:09, 7 December 2013 (UTC): Make sure you connect the sensor the right way round! I just got a mini breadboard, so rewired my arrangement somewhat less carefully than first time round, and promptly connected the sensor the wrong way round. It got nice and hot in the 1-2 seconds before I noticed, and now claims that my room temperature is a more or less constant 22 degrees C. Luckily I had a spare!