A DS18B20 1-wire digital thermometer AVR ATmega library


Davide Gironi writes:

DS18B20 is a programmable resolution 1-wire digital thermometer.
It has an operating temperature range of -55°C to +125°C and is accurate to ±0.5°C over the range of -10°C to +85°C.
This library is an AVR implementation to retrive temperature from DS18B20.

Built using the reference document: “Using DS18B20 digital temperature sensor on AVR microcontrollers” by Gerard Marull Paretas, 2007.

Join the Conversation

1 Comment

  1. The multi drop feature, and the long runs make this a great sensor, with many easy to use libraries. But ±0.5°C accuracy is not so great, and if you get the cheap ones from eBay it’s easy to get a batch much worse than that. I’ve worked through several different calibration methods and I think we finally have one that can consistently get you to ±0.1°C or better with DS18B20’s:


Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.