DS18B20 Waterproof Temperature Sensor
Hello friends! Welcome back to ElectroDuino. This blog is based on Introduction to DS18B20 Waterproof Temperature Sensor | How it Works. Here we will discuss the Introduction to DS18B20 Waterproof Temperature Sensor, Pin Diagram, Working Principle, Specifications, Features, and Applications.
The DS18B20 is a widely used 1-Wire waterproof digital temperature sensor that comes in the form of a Stainless-steel probe. it is manufactured by Dallas Semiconductor (acquired by Maxim Integrated). This sensor has the characteristics of small size, low hardware overhead, high precision, and strong anti-interference ability. This sensor is perfect for measuring temperature in wet conditions, beneath the ground, underwater, or something far away.
This Sensor can measure a wide temperature in the range of -55°C ( -67°F) to +125°C (+257°F) with +-5% accuracy. This Sensors used a one-wire bus protocol to communicate with a microcontroller, which means it uses a single digital pin of any microcontroller/microprocessor to transmit the temperature readings. The temperature sensor’s resolution ranges from 9 to 12 bits. however, the default resolution to power up the sensor is 12-bit (i.e., 0.0625°C precision).
DS18B20 Waterproof Temperature Sensor Pinout/Pin Diagram
|Pin No.||Pin Name||Description|
|1||GND||This is the Ground pin of the sensor, it needs to connect to the GND terminal of the microcontroller.|
This is the Power Supply pin of the sensor, it needs to connect to the 3.3V or 5V terminal of the microcontroller/microprocessor.
This is the Output pin. It Provides the output using one wire method that should be connected to a digital pin on the microcontroller/microprocessor.
Working Principle of DS18B20 Waterproof Temperature Sensor
The working principle of the DS18B20 Waterproof temperature sensor is similar to any other temperature sensor. The resolution of the sensor ranges from 9-bits to 12-bits. But 12-bit is used as the default resolution to power up this sensor. It measures temperature, as well as the conversion of Analog-to-Digital (A-to-D), which can be done with a convert-T command. The output temperature value can be stored within the 2-byte register in the sensor, and after that, this sensor returns to its inactive state.
The DS18B20 Temperature Sensor has three wires/pins (Vcc, ground, and data wires) for operation. But in parasite mode, only the ground and data lines are used to operate the sensor, the input voltage of the sensor is supplied through the data line.
DS18B20 Waterproof Temperature Sensor Specifications
|Sensor Type||Programmable Digital Temperature Sensor|
|Operating Voltage||3.3V – 5V|
|Operating Current||1 A|
|Measuring temperature range||-55ºC to +125ºC (-67°F to +257°F)|
|Accuracy||±0.5°C Accuracy from -10°C to +85°C|
|Programmable Resolution||9 to 12 bit (Selectable)|
|Conversion Time||< 750ms|
|Sensing Probes||Stainless Steel tube|
|Sensor Probe Length/ Diameter||45mm Long, 6mm Diameter|
|Cable Length/ Diameter||36 Inch / 91cm long, 4mm Diameter|
- Unique 1-Wire® Interface Requires Only One Digital Pin of microcontroller/microprocessor for Communication
- In Parasitic Power Mode, Requires Only 2 Pins for Operation (Data and GND pin).
- Multiple temperature sensors can share one pin of microcontroller/microprocessor
- No External Components are Required
- Temperature Sensor and EEPROM
- Unique 64-bit address enables multiplexing
- Programmable alarm options
- It is Available in 8-Pin SO (150 mils), 8-Pin µSOP, and 3-Pin TO-92 Packages
- This sensor is widely used to calculate the temperature in a rigid environment like mines, chemical solutions, soil, etc.
- Measuring Liquid temperature
- it can be used in the thermostat controls system
- Used in industries as a temperature-measuring device
- It is very useful where the temperature has to be measured at multiple points