The DS18B20 is a digital temperature sensor known for its accuracy and simplicity. With a single data wire using the One-Wire protocol, it provides temperature readings with a resolution of 0.0625°C. Its versatile design allows multiple sensors to be connected to a single bus, each identified by a unique ROM code. The DS18B20 operates across a wide temperature range and requires minimal external components. It is commonly used in applications such as weather monitoring, industrial systems, home automation, and temperature-controlled environments where precise and reliable temperature measurements are crucial.
DS18B20 Temperature Sensor
Specification
- Temperature Range: -55°C to +125°C (-67°F to +257°F)
- Temperature Resolution: 9 to 12 bits selectable, providing resolutions from 0.5°C to 0.0625°C
- Accuracy: ±0.5°C (from -10°C to +85°C)
- Supply Voltage: 3.0V to 5.5V
- Current Consumption: 1mA max during temperature conversion
- Interface: One-Wire digital interface
- Unique ROM Code: 64-bit unique identifier for each DS18B20 sensor
- Operating Modes: Normal and Parasitic (can draw power from the data line in Parasitic mode)
- Conversion Time: 750ms (12-bit resolution)
- Package Types: TO-92, SO-8, and other package options available
Usage
-
Power Supply: Connect the VCC pin of the sensor module to the positive supply voltage (3.3V to 5V) of your microcontroller or development board.
-
Ground: Connect the GND pin of the sensor module to the ground (0V) of your system.
-
Analog Output: Connect the analog output pin of the sensor module to an analog input pin of your microcontroller or an analog-to-digital converter (ADC) module.
-
Sensitivity Adjustment: Some rain drop sensor modules include a potentiometer for sensitivity adjustment. You can adjust the sensitivity level by turning the potentiometer to set the desired threshold for rain detection.