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.
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.
- Arduino UNO Board
- Multiple DS18B20 Waterproof Temperature Sensor
- 16*2 LCD Display
- 4.7K Resistor
- Connecting Jumper Wires