RaspberryPi Temperature Sensor: Difference between revisions
Jump to navigation
Jump to search
(→Code) |
|||
Line 32: | Line 32: | ||
=== Code === | === Code === | ||
---- | ---- | ||
Line 37: | Line 39: | ||
** http://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/ | ** http://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/ | ||
** [[:Category:RaspberryPi]] | ** [[:Category:RaspberryPi]] | ||
* Footnotes: | |||
<references/> | |||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:RaspberryPi]] | [[Category:RaspberryPi]] |
Revision as of 20:34, 19 June 2013
Time to build a temperature sensor with my Pi.
Schematics
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 -1
10-000802ad5087[1] w1_bus_master1
See it's content (values):
cd 10-000802ad5087[2] cat w1_slave
Result:
39 00 4b 46 ff ff 03 10 9c : crc=9c YES 39 00 4b 46 ff ff 03 10 9c t=28562[3]