Esp32 Projects

ESP32 DS18B20 Digital Temperature Sensor

DS18B20 Digital Temperature Sensor interfacing with ESP32 Board

Introduction

In this tutorial, we will learn how to interface the DS18B20 Sensor With the ESP32 Devkit Development Board. if you want to build a Temperature Monitoring System Using ESP32 then just follow the article. the DS18B20 Sensor Is an excellent choice for a temperature sensor.

ESP32

Bill Of Material

S.N

Component's

Quantity

Link To Buy

1

ESP32 Board

1

2

DS18B20 Sensor

1

3

Zero PCB

1

4

Wire

5

5

Soldering wire

1

6

Soldering Gun

1

Component’s

ESP32 Board

ESP32 Baord

DS18B20 Sensor

We already used the DS18B20 Temperature Sensor in a couple of Projects Involving Arduino, ESP8266 And Raspberry Pi.DS18B20 is a digital Temperature Sensor is measures temperatures in the range of -55°c To +125°c.

DS18B20 Sensor

Many sensors work over I2C or SPI but the DS18B20 Temperature Sensor Uses 1-wire Communication to interact with the ESP32 Board.

The DS18B20 is a digital Temperature Sensor, the temperature data is stored in the on-chip EEPROM.some important Features.

  • User-configurable Resolution between 9-bits And 12-bits.
  • 64-bit Serial Code is Unique to all DS18B20 Sensors.

Circuit Diagram

Now Proceed with understanding how to interface the DS18B20 Sensor with the ESP32 Board. The first thing to remember is that DS18B20 is a Digital Sensor.

That’s means for the ESP32 Board we interfacing the DS18B20 Sensor to Digital Pin D14 Pin Number. The ESP32 is to Send and Receive Data to / From DS18B20 and we need only one wire for proper Communication.

Circuit Diagram5

I am Powering up the DS18B20 Sensor with normal Power. So, the VCC of DS18B20 is conected to the Vin of the ESP32 Board.

NOTE: The Range of power supply for DS18B20 is 3v to 5.5v.

the GND pin is conected to the GND pin of the ESP32 Board. Finally, The DQ pin should be pulled HIGH.So,I connected a 4.7KΩ Resistor Between the DQ Pin And 3.3V.

NOTE: The Pullup voltage can be very 3v to 5.5v.

Code

Now I Write a simple code that will initialize the 1-wire communication in GPIO 14, this one wire Communicates to the DS18B20 Sensor And reads Temperature Data.

With 16×2 LCD Using I2C

GitHub e1697076839430

Working Project

Now you see the temperature values on the serial monitor on Arduino Ide Software

ESP32 DS18B20 Digital Temperature Sensor2

if I Provide some heat then the temperature value will change.


ESP32 DS18B20 Digital Temperature Sensor1

Video

0005720 coming soon page 550

Conclusion

In this tutorial, we interfaced the DS18B20 Temperature Sensor with the ESP32 Board and implemented it with the LCD. You learned some Information about the DS18B20 Sensor And How to interface with the ESP32 Board.

Related Posts:

Prateek

Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker