How to use DS18B20 with Arduino (Example included)

preview_player
Показать описание
How to use DS18B20 with Arduino. The video will show the DS18B20 with an Arduino UNO. We'll go over the connections to the Arduino, the specification sheet for the DS18B20, how to program the DS18B20 in Arduino, the required libraries, and testing of the DS18B20.

Datasheet:

Libraries:
Dallas Temperature Control Library (by Miles Burton):

Items used in this video (affiliate links):
*As an Amazon Associate I earn from qualifying purchases.

Arduino UNO:

DS18B20 Module (KY-001):

DS18B20 (stand-alone):

Hand-held infrared thermometer:

Breadboard (Elenco 9440):

Video Chapters:
0:00 Intro
1:58 Datasheet
2:56 Sensor pins
3:40 Connecting to Arduino
4:46 Downloading and importing libraries
4:54 Arduino code overview
6:12 Example testing
Рекомендации по теме
Комментарии
Автор

im interfacing it with an esp32, and getting the celsius value as -127 constantly
i looked it up online and they said its a wiring error, so i did it as they said, used a 4.7k pullup resistor and it still doesnt work, pls help

NidhiOchani-gy
Автор

How far away from the Mc can you put the sensor?How about an rtc ? same same?

patrickmclaughlin