RaspberryPi Temperature Sensor: Difference between revisions

From Wurst-Wasser.net
Jump to navigation Jump to search
Line 15: Line 15:


==== Check setup ====
==== Check setup ====
Check whether there is now our sensor device:
  cd /sys/bus/w1/devices
  cd /sys/bus/w1/devices
  ls
  ls
XXX
See it's content (values):
  cd XX
  cd XX
  cat XX
  cat XX
Line 23: Line 28:


  ?
  ?


=== Code ===
=== Code ===

Revision as of 21:29, 19 June 2013

Time to build a temperature sensor with my Pi.

Schematics

RaspberryPiDS18B20.png

Configure the Pi

Update the OS

This not necessary, but generally a good idea.

apt-get update
apt-get ugrade

Setup kernel modules for GPIO and 1-wire device

modprobe w1+gpio
modprobe w1+therm

Check setup

Check whether there is now our sensor device:

cd /sys/bus/w1/devices
ls
XXX

See it's content (values):

cd XX
cat XX

Result:

?

Code