RaspberryPi Temperature Sensor: Difference between revisions

From Wurst-Wasser.net
Jump to navigation Jump to search
Line 8: Line 8:
  apt-get update
  apt-get update
  apt-get ugrade
  apt-get ugrade
==== Setup GPIO for 1-wire device ====
==== Setup kernel modules for GPIO and 1-wire device ====
  modprobe w1+gpio
  modprobe w1+gpio
  modprobe w1+therm
  modprobe w1+therm
==== Check setup ====
==== Check setup ====
  cd /sys/bus/w1/devices
  cd /sys/bus/w1/devices

Revision as of 20:18, 19 June 2013

Time to build a temperature sensor with my Pi.

Schematics

RaspberryPiDS18B20.png

Configure the Pi

Update the OS

apt-get update
apt-get ugrade

Setup kernel modules for GPIO and 1-wire device

modprobe w1+gpio
modprobe w1+therm

Check setup

cd /sys/bus/w1/devices
ls
cd XX
cat XX

Result:

?


Code