EmbeddedRelated.com
DS18B20

DS18B20

Maxim Integrated
Widely used digital temperature sensor available in a waterproof 1-Wire form factor for remote sensing.
NRND9,525 in stock

Overview

The DS18B20 is a digital temperature sensor that provides 9-bit to 12-bit Celsius temperature measurements. It communicates over a 1-Wire bus, allowing multiple sensors to coexist on a single data line while being powered directly from the data line itself via parasite power. This sensor is highly recognizable for its unique 64-bit serial code which enables precise tracking in multi-node environments.

Why Choose This Part

The 1-Wire interface simplifies cabling by requiring only one data line and ground for communication. It features a high accuracy of 0.5 degrees Celsius across a wide operating range and includes nonvolatile user-definable alarm settings. The integrated EEPROM allows for permanent storage of sensor identification or threshold data directly on the device.

Applications

Distributed Temperature Monitoring
Monitoring multiple points in a building or industrial facility using a single microcontroller pin.
HVAC Environmental Controls
Measuring air and liquid temperatures for climate control systems.
Process Monitoring
Tracking thermal gradients in industrial equipment or chemical storage.
Consumer Electronics
Internal thermal management for high-power devices or battery packs.

Getting Started

To interface with the DS18B20, use a 4.7k ohm pull-up resistor between the DQ and VDD lines. It is widely supported by the Arduino OneWire and DallasTemperature libraries, making it compatible with almost any MCU platform. For hardware prototyping, the TO-92 package fits standard breadboards and provides easy access to the three-pin interface.

DS18B20 Family

Part NumberDifferenceStock
DS18B20+ (Analog Devices / Maxim Integrated) + 8,058
DS18B20-PAR+T&R (Analog Devices / Maxim Integrated) PAR+T&R 1,834

Also Consider

TMP36 Analog Devices - An analog alternative for systems without a 1-Wire stack that require a simple voltage-proportional output.
SHT31 Sensirion - A high-precision I2C digital sensor that provides both temperature and humidity data in a single package.