Interfacing Multiple DS18B20 Temperature Sensors to Arduino

(Last Updated On: July 18, 2019)

Interfacing Multiple DS18B20 Temperature Sensors to Arduino:

In this project, we will learn about Interfacing Multiple DS18B20 Temperature Sensors to Arduino. Simply we will connect Multiple DS18B20 Temperature Sensors to Arduino and display the temperature values of all the sensors in degree Celsius or Fahrenheit. Only one digital pin of Arduino is required to connect several temperature sensors. We can connect a maximum of 1024 sensors using I2C Protocol. But here I have shown connecting 3 DS18B20 Temperature Sensors to Arduino.

The DS18B20 temperature sensor is a 1-wire digital temperature sensor. This comes with a sealed package lets precisely measure temperatures in wet environments with a simple 1-Wire interface. It communicates on a common bus. It means it can connect several devices and read their values using just one digital pin of the Arduino.


DS18B20 Waterproof Digital Temperature Sensor:

This is a pre-wired and waterproofed version of the DS18B20 sensor. Handy for when you need to measure something far away, or in wet conditions. The Sensor can measure the temperature between -55 to 125°C (-67°F to +257°F). The cable is jacketed in PVC.

Because it is digital, there is no any signal degradation even over long distances. These 1-wire digital temperature sensors are fairly precise, i.e ±0.5°C over much of the range. It can give up to 12 bits of precision from the onboard digital-to-analog converter. They work great with any microcontroller using a single digital pin.

DS18B20
The only downside is they use the Dallas 1-Wire protocol, which is somewhat complex and requires a bunch of code to parse out the communication. We toss in a 4.7k resistor, which is required as a pullup from the DATA to the VCC line when using the sensor.


Components Required:

  1. Arduino UNO Board
  2. Multiple DS18B20 Waterproof Temperature Sensor
  3. 16*2 LCD Display
  4. 4.7K Resistor
  5. Breadboard
  6. Connecting Jumper Wires

Source Code/Program:

 

Related Project:

Nodemcu ESP8266 DS18b20 Waterproof Temperature Sensor Monitoring

 

 

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close