Skip to content

felix900006/Arduino-Temperature-Control-Library

This branch is 123 commits behind milesburton/Arduino-Temperature-Control-Library:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 10, 2020
Aug 1, 2016
Feb 10, 2020
Feb 10, 2020
Apr 4, 2019
Jul 15, 2018
Feb 10, 2020
Feb 10, 2020

Repository files navigation

Arduino Library for Maxim Temperature Integrated Circuits

Usage

This library supports the following devices :

  • DS18B20
  • DS18S20 - Please note there appears to be an issue with this series.
  • DS1822
  • DS1820
  • MAX31820

You will need a pull-up resistor of about 5 KOhm between the 1-Wire data line and your 5V power. If you are using the DS18B20, ground pins 1 and 3. The centre pin is the data line '1-wire'.

In case of temperature conversion problems (result is -85), strong pull-up setup may be necessary. See section Powering the DS18B20 in DS18B20 datasheet (page 7) and use DallasTemperature(OneWire*, uint8_t) constructor.

We have included a "REQUIRESNEW" and "REQUIRESALARMS" definition. If you want to slim down the code feel free to use either of these by including

#define REQUIRESNEW 

or

#define REQUIRESALARMS

at the top of DallasTemperature.h

Finally, please include OneWire from Paul Stoffregen in the library manager before you begin.

Credits

The OneWire code has been derived from http://www.arduino.cc/playground/Learning/OneWire. Miles Burton [email protected] originally developed this library. Tim Newsome [email protected] added support for multiple sensors on the same bus. Guil Barros [[email protected]] added getTempByAddress (v3.5) Note: these are implemented as getTempC(address) and getTempF(address) Rob Tillaart [[email protected]] added async modus (v3.7.0)

Website

You can find the latest version of the library at https://www.milesburton.com/Dallas_Temperature_Control_Library

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

About

Arduino plug and go library for the Maxim (previously Dallas) DS18B20 (and similar) temperature ICs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%