G is for GROUND! The latest Circuit Playground is here!


Author Gravatar Image SIMON MONK

The Occidentalis Linux distribution for Raspberry Pi (and Raspbian as of Dec 2012) includes support for the DS18B20 1-wire temperature sensor. These sensors come in a small three pin package like a transistor and are accurate digital devices.

In this lesson, you will learn how to use a DS18B20 with the Raspberry Pi to take temperature readings.

Since the Raspberry Pi has no ADC (Analog to Digital Converter), it cannot directly use an analog temperature sensor like the TMP36, making the DS18B20 a good choice for temperature sensing.

Other Code Libraries

If you are a python-fancier, there's also a nice DS18B20 library that works with raspberry pi over at https://github.com/timofurrer/ds18b20 (written by Timo!)
Last updated on 2015-05-04 at 04.27.11 PM Published on 2013-01-28 at 04.35.41 PM