Saturday, June 29, 2013

Raspberry Pi Temperature Control - Part 1

So, gonna use a raspberry pi to control the temperature of the fermentation.

(followed the following blog for a lot of this - http://raspbrew.tumblr.com/)


Stage 1 is to get the pi reading the temp.

Got these parts:

raspberry pi (and stuff to make it work, SD card, power supply etc)

DS18B20 (1-wire temperature sensor)

4.7k resistor

pi cobbler breakout board



loaded raspbian

soldered together components


added the temp sensor and resistor:


started the pi and loaded the sensor modules:

sudo modprobe w1_gpio && sudo modprobe w1_therm

then read the temperature:

pi@raspberrypi /sys/bus/w1/devices/w1_bus_master1/28-0000049ce4cb $ cat w1_slave 22 01 4b 46 7f ff 0e 10 4a : crc=4a YES 22 01 4b 46 7f ff 0e 10 4a t=18125

bingo! 18.1oC

2 comments: