No video

How to use DS18B20 Temperature sensor with arduino

  Рет қаралды 125,874

miliohm

miliohm

Күн бұрын

DS18B20 is one of the popular temperature sensors because it is cheap, easy to use, and also waterproof. It is a very cheap waterproof temperature sensor we can get from the market.
In this video, we will learn how to use it with Arduino.
You can support us and unlock premium projects code by joining our membership by clicking the link below:
/ @miliohm
Download sketch and wiring diagram :
miliohm.com/ho...

Пікірлер: 80
@bb4853
@bb4853 2 жыл бұрын
I've check the code you gave that is so detailed, to be a primer I learned a lot from it, I'll be guilty if I dont hit a like on this video.
@miliohm
@miliohm 2 жыл бұрын
Thanks!
@shogunvanrepi3555
@shogunvanrepi3555 Жыл бұрын
​@@miliohm what happens if no resistor is added to the circuit?
@maxwellvinimax68
@maxwellvinimax68 2 жыл бұрын
what all u said worked out perfect.first i thought my display had prob then changed contast and wroked perfect. never thought i will be able to something llike this for my school project. thanks man
@Alshafi
@Alshafi Жыл бұрын
Thanks for the vid. i would only recommend installing the OneWire library since it is actually required in the example.
@josielsoaresfarias1760
@josielsoaresfarias1760 11 ай бұрын
Valeu amigo. Ótimo vídeo Único vídeo que encontrei na internet que realmente explica como faz. Parabéns e Obrigado. Ganhou meu like 👏
@mikevez6639
@mikevez6639 Жыл бұрын
If people are getting strange results disconnect the power line to the sensor if using parasitic power from the arduino. just run 5v thro the resistor to the signal wire in yellow. This is what the datasheet says
@rafaellouish.odrada4183
@rafaellouish.odrada4183 2 жыл бұрын
good day would like to ask why my serial monitor shows the device cannot be found that show error results
@user-cf4vo3yv9y
@user-cf4vo3yv9y 14 күн бұрын
Hi , can you list all the things that you use for making this temperature sensors?
@gasko2762
@gasko2762 2 жыл бұрын
Thank you for the wonderful programs for Arduino for beginners.
@ajith6840
@ajith6840 Жыл бұрын
Thank you so much for this video👍 Is it possible to add an battery voltage sensor along with the temperature sensor in the same Arduino , How can we combine the both programs
@tosc4goro711
@tosc4goro711 7 ай бұрын
thanks a lot for the tutorial sir, could u also make the one wire version tutorial of this sensor? thanks!
@arthurmarcolan9722
@arthurmarcolan9722 2 жыл бұрын
thank you so much for the help, you saved me
@Bianchi77
@Bianchi77 2 жыл бұрын
Nice video, thanks :)
@GaneshPawar-gs6ee
@GaneshPawar-gs6ee 2 жыл бұрын
can we add more than one DS18B20 sensor wire on same bus/pin
@gernandoregobionejunior3794
@gernandoregobionejunior3794 2 жыл бұрын
Hi, i'm having some problems with this sensor when i try to heat the water until it evaporates, my sensor can't read a temperature above 100°C or equal. My programation sketch is similar
@shijumax1
@shijumax1 11 ай бұрын
Hi , I am your new subscriber, can u make a video or explain to build a SMD reflow with Nextion display?
@Earthstoriesbydev
@Earthstoriesbydev 10 ай бұрын
have u done this with a battery? What battery it might need do u know?
@FraLin
@FraLin 11 ай бұрын
I was looking for polarity and colours, can it die if I confuse yellow and red?
@syukorburger9699
@syukorburger9699 2 жыл бұрын
hey, why my (tempC != DEVICE_DISCONNECTED_C) at line 56 is error, it said "'DEVICE_DISCONNECTED_C' was not declared in this scope" i hope u can help me with that
@raajnivas2550
@raajnivas2550 2 жыл бұрын
Thank you.
@bradley9856
@bradley9856 Жыл бұрын
good video, but all i get is this in the serial monitor: Locating devices...Found 0 devices. Parasite power is: OFF Unable to find address for Device 0 Device 0 Address: 0000000000000000 Device 0 Resolution: 0 Requesting temperatures...DONE Error: Could not read temperature data
@jyaniharshil5585
@jyaniharshil5585 2 жыл бұрын
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected . As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...
@KonselorSekolah1407
@KonselorSekolah1407 3 жыл бұрын
Looks like better than lm35
@hondat7435
@hondat7435 3 жыл бұрын
Hello, can you do one with the VISA LabVIEW?
@sheenamarietongol4367
@sheenamarietongol4367 Жыл бұрын
what type of jumoer wire sis you use?
@chojix6394
@chojix6394 11 ай бұрын
What to do if temperature data cannot be read?
@BerndJTHIEL
@BerndJTHIEL 2 жыл бұрын
how much of this sensors you can use parallel on a androinu? i need a system with 8-16
@spakxd9834
@spakxd9834 2 жыл бұрын
why on my PC not showing the COM2 window?
@shogunvanrepi3555
@shogunvanrepi3555 Жыл бұрын
what happens if no resistor is added to the circuit?
@battlecampkhimmay2981
@battlecampkhimmay2981 2 жыл бұрын
Do you guys have same method on raspberry pi pls
@raphaelnazareth486
@raphaelnazareth486 Жыл бұрын
nice video
@mend17
@mend17 2 жыл бұрын
i have an adruino mega were do i place the SDA & de SCL of ic2? couze the A4 & a5 dont work
@miliohm
@miliohm 2 жыл бұрын
SDA - 20 SCL - 21
@gouthamas7265
@gouthamas7265 2 жыл бұрын
Hey. I tried the code ,it is working on serial monitor, but when I copy pasted your other coder for LCD ,lcd Is on but not showing anything, need help !!!!
@AnimeTv-us8gk
@AnimeTv-us8gk Жыл бұрын
Where did you ordered the tools bro?
@chandra7734
@chandra7734 3 жыл бұрын
is it accurate to measure a room temperature below -10 to -25 degrees Celcius?
@christophercabanbanalvarad2241
@christophercabanbanalvarad2241 2 жыл бұрын
i followed your diagram and download the code you have posted but still my lcd 168b20 doesn't display anything except for block bars. pls help.....
@chrisheaps9893
@chrisheaps9893 2 жыл бұрын
You may need to adjust the contrast on the back of the display.
@pearlydanahambayen3939
@pearlydanahambayen3939 Жыл бұрын
My ds18b20 is not giving me results it only shows -127.00c and -196.6f it is not changing even if I put it on hot water can you please help me?
@jovanadiyatma_6934
@jovanadiyatma_6934 8 ай бұрын
Use resistor
@TheWareek
@TheWareek 2 жыл бұрын
The first sketch worked on my set up but in the serial monitor I got the temperature about every 1/10 of a second. any ideas.
@mikevez6639
@mikevez6639 Жыл бұрын
add delay(1000); to the loop
@AneeshPradeep
@AneeshPradeep 2 жыл бұрын
What is the purpose of the register Can the sensor be connected directly to the board ?
@miliohm
@miliohm 2 жыл бұрын
What register? The breadboard just help us to put the resistor
@AneeshPradeep
@AneeshPradeep 2 жыл бұрын
@@miliohm Sorry . i meant resistor
@miliohm
@miliohm 2 жыл бұрын
@@AneeshPradeep it's pull up resistor. It's from datasheet.
@williampowell7518
@williampowell7518 2 жыл бұрын
the temperature values that I am getting is not accurate. my room is abou5 celcius but I am seeing 85 degrees Celsius
@miliohm
@miliohm 2 жыл бұрын
Did it change?
@TopOneTime
@TopOneTime 3 жыл бұрын
Can you type the name of the display screen please?
@pew1472
@pew1472 2 жыл бұрын
im new to to arduino project. why dos it have an error LiquidCrystal_I2C.h: No such file or directory . pls help :)
@miliohm
@miliohm 2 жыл бұрын
You need to download the library first, watch again carefully
@chris9yearsago698
@chris9yearsago698 2 жыл бұрын
Can you use it for water temperature? Like dip the sensor in it?
@miliohm
@miliohm 2 жыл бұрын
You should watch at 5:29
@chris9yearsago698
@chris9yearsago698 2 жыл бұрын
@@miliohm thanks man I didn''t actually watch it all
@Myb.pranoto
@Myb.pranoto 2 жыл бұрын
What is the type of the lcd?
@miliohm
@miliohm 2 жыл бұрын
it's 20x4 LCD
@wisnuindrawan6496
@wisnuindrawan6496 3 жыл бұрын
how about accuracy is better than themocouple ?
@miliohm
@miliohm 3 жыл бұрын
Make thermocouple accurate is sometimes complex since it has so small signal. So I think this sensor can be more accurate but, thermocouple has wider range. It can measure up to thousands degrees of celcius.
@wisnuindrawan6496
@wisnuindrawan6496 3 жыл бұрын
@@miliohm thank you for the answer
@Imaangrycat
@Imaangrycat 2 жыл бұрын
can i use a 4.7k resistor also i am getting -127° reading what can be my solution
@miliohm
@miliohm 2 жыл бұрын
It should works, check your wiring again.
@axel_72
@axel_72 2 жыл бұрын
i have same -127°... but ho to resolved it ?
@Imaangrycat
@Imaangrycat 2 жыл бұрын
@@axel_72 Check your wiring and make sure that it’s getting proper power supply When I connect this to my esp32 it was not working properly for me but Aurdino uno board gave me proper output
@xarek24g
@xarek24g 2 жыл бұрын
Why u use this resistor with the temp. Sensor i need this one?
@miliohm
@miliohm 2 жыл бұрын
It's for pull up
@Saini_Ayush07
@Saini_Ayush07 2 жыл бұрын
It is a 4.7k ohm resistor
@chickenz4604
@chickenz4604 3 жыл бұрын
is the temperature sensor robust for 1 year usage?
@lovarajukommoju1896
@lovarajukommoju1896 2 жыл бұрын
YES
@musicalmusician8019
@musicalmusician8019 Жыл бұрын
Is it possible to do this without a breadboard?
@miliohm
@miliohm Жыл бұрын
Sure
@musicalmusician8019
@musicalmusician8019 Жыл бұрын
@@miliohm Does it require calibration?
@miliohm
@miliohm Жыл бұрын
@@musicalmusician8019 it is factory calibrared. But if you still need adjusment you can also calibrate it.
@noraimanazmi1190
@noraimanazmi1190 3 жыл бұрын
im sorry,can i get code for lcd1602 :(
@miliohm
@miliohm 3 жыл бұрын
You should read the description
@tanjimulislamdip2338
@tanjimulislamdip2338 3 жыл бұрын
Can you give me the code of it??plz I need urgent.
@miliohm
@miliohm 3 жыл бұрын
You should read the description
@tanjimulislamdip2338
@tanjimulislamdip2338 3 жыл бұрын
The link is not working there,please give me the code of it,i need it very urgently,i must submit my portable refrigerator project 🙏
@miliohm
@miliohm 3 жыл бұрын
@@tanjimulislamdip2338 maybe you click the wrong link. The second one. Still work here miliohm.com/how-to-simply-use-ds18b20-temperature-sensor-with-arduino/
@jyaniharshil5585
@jyaniharshil5585 2 жыл бұрын
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected . As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...
Measuring Temperature with Arduino - 5 Sensors
29:55
DroneBot Workshop
Рет қаралды 141 М.
1 Wire DS18B20 Temperature Sensor - Arduino / Node Red
6:49
Tech Minds
Рет қаралды 8 М.
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 20 МЛН
4 channel temperature logger based on the DS18B20 sensors
36:41
Curious Scientist
Рет қаралды 12 М.
How to use LM35 temperature sensor with arduino
9:01
miliohm
Рет қаралды 57 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Get Started in Electronics #9 - Using the DHT11 Humidity & Temp Sensor
15:33
DS18B20 WATERPROOF TEMPERATURE SENSOR WITH ARDUINO.
7:54
MYTECTUTOR
Рет қаралды 22 М.