DS18B20 Dallas 1-Wire digital temperature sensor with Arduino tutorial

preview_player
Показать описание
A tutorial on how to use the Dallas Maxim 1-Wire DS18B20 digital temperature sensor with the Arduino. We learn how to connect the DS18B20 sensor to the Arduino, select the correct libraries and write some code to read two DS18B20 sensors and output the readings in Degrees C to the serial port of the Arduino.

The DS18B20 can form the core of a simple weather station using the Arduino.

Best watched full screen HD to enable reading of the code.
Рекомендации по теме
Комментарии
Автор

One of the best Arduino " how to " video I have seen. You Tell us how to write the code and then you explain what the command is doing. Very Clear and not t0o fast. You even leave the code on the screen long enough that I can type it in. Keep up the great work and THANK YOU from all us newbies!Roger

exbassguide
Автор

Just wanted to thank you for your video. I tried a few other tutorials to connect the DS18B20 to the Arduino and always ran into problems. Your explanations were to the point, not too fast and easy to follow. Now I can continue installing the sensors around the house (I combined your code with an other example for the Ethernet Shield and I sit on my sofa and red out 3 temperatures for 3 different rooms on my laptop.

hierschreibtpflegefuermaen
Автор

Thanks for making so simple!!! I have tried other programs with no success. I was able to incorporate this into my other program.

kevinwright
Автор

Congratulations - someone who explains how and why to use a library rather than just copying someone else's code.

Magic-Smoke
Автор

Great tutorial, very thorough, simple, and explained in a good basic step by step manner. Thanks!

caseychambers
Автор

Great tutorial! Thanks for your help. Using this for a small school project and your video provided all the needed resources. I I tried it using an UNO and it worked great!

georgeiv
Автор

thank you very much for explaining it in simpler terms

omieyouknowme
Автор

Thanks for a great tutorial. Im a newb and found this to be very well explained.

DaveC-tktv
Автор

Thank you for this Tutorial, Really just helped get past something i was stuck on for the last week!

KittenisKitten
Автор

Nice tutorial! It would be usefull if you showed how to connect in not parasitic mode too!

carmoldu
Автор

Hello Tom
I'm trying to use DS18B20 in Flowcode AVR project. I know, You probably don't use it and don't know how it looks like to work in FC, but my question is not about that.
 I know that this sensore send digital output for coresponding temperature ( like =HEX: 0320h  ). So to get temperature in celsius data output converted to decimal must be dived by 16 right? = DEC: 800 /16 = 50C
There are macros in Flowcode called read_scratchpad and get_temp but I'm not sure how to use them. Do have any idea what read_scratchpad mean, what does it do, or what the hell is scratchpad in microcontroller world ? AS i figure it out it's something like your step at 6:37 set data to buffer and make it ready for read? :) Just what ever you think say it, for sure it could help me to understand. Thanks

milek
Автор

The pullup resistor must be a 4.7k ohm resistor not a 47k ohm

himangshugoswami
Автор

OneWire does not make a nymae type
same for the dallas temperature
then in teh void loop, sensors was not declared in this scope

something with the libraryes, but i do have bot the OneWire and DallasTemperature in my documents arduino folder and the one in the installation directory root.

zigastrmsek
Автор

I have written exactly like you, but why do i get the: error: delayMicroseconds' was not declared in this scope ?
Please HELP!

tommynaslund
Автор

please i need more illustration on one wire communication and how it build

hallowman
Автор

Awesome Tutorial.. Thank you very much. 
It worked as expected. 


Is there a way to identify which sensor is throwing what values. Means device(0) is always the same device? and is there a fixed sequence for devices in the array? 

traktap
Автор

The page for the DallasTemperature libary doesn't work. Any other places where I can find it that definitly works?

lucasw
Автор

Thanks it was really helpfull to lear how it works.

Griffelkiste
Автор

great work.
can you give me idee how to programm ds18b20 on stm32 and to aquise data from the sensor through the i2c bus?
thanks

gaaloulwalid
Автор

Is that 4.7K resistor or 47K resistor as you said?

NoFaithNoPain