How to use DS18B20 Temperature sensor with arduino
ฝัง
- เผยแพร่เมื่อ 12 ก.พ. 2021
- 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/how-to-simply-use... - วิทยาศาสตร์และเทคโนโลยี
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
Thanks for the vid. i would only recommend installing the OneWire library since it is actually required in the example.
is it accurate to measure a room temperature below -10 to -25 degrees Celcius?
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.
Thanks!
@@miliohm what happens if no resistor is added to the circuit?
how much of this sensors you can use parallel on a androinu? i need a system with 8-16
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
Valeu amigo. Ótimo vídeo
Único vídeo que encontrei na internet que realmente explica como faz. Parabéns e Obrigado. Ganhou meu like 👏
have u done this with a battery? What battery it might need do u know?
what type of jumoer wire sis you use?
I was looking for polarity and colours, can it die if I confuse yellow and red?
Hello, can you do one with the VISA LabVIEW?
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
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...
thanks a lot for the tutorial sir, could u also make the one wire version tutorial of this sensor? thanks!
good day would like to ask why my serial monitor shows the device cannot be found that show error results
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
thank you so much for the help, you saved me
what happens if no resistor is added to the circuit?
Thank you for the wonderful programs for Arduino for beginners.
Do you guys have same method on raspberry pi pls
Nice video, thanks :)
why on my PC not showing the COM2 window?
Can you type the name of the display screen please?
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
it can read up to 125° C
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.
add delay(1000); to the loop
Hi , I am your new subscriber, can u make a video or explain to build a SMD reflow with Nextion display?
i have an adruino mega were do i place the SDA & de SCL of ic2? couze the A4 & a5 dont work
SDA - 20
SCL - 21
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.....
You may need to adjust the contrast on the back of the display.
Thank you.
What to do if temperature data cannot be read?
Can you use it for water temperature? Like dip the sensor in it?
You should watch at 5:29
@@miliohm thanks man I didn''t actually watch it all
Looks like better than lm35
can we add more than one DS18B20 sensor wire on same bus/pin
yes
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 !!!!
Where did you ordered the tools bro?
is the temperature sensor robust for 1 year usage?
YES
What is the purpose of the register
Can the sensor be connected directly to the board ?
What register?
The breadboard just help us to put the resistor
@@miliohm Sorry . i meant resistor
@@AneeshPradeep it's pull up resistor. It's from datasheet.
nice video
im new to to arduino project. why dos it have an error LiquidCrystal_I2C.h: No such file or directory
. pls help :)
You need to download the library first, watch again carefully
how about accuracy is better than themocouple ?
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.
@@miliohm thank you for the answer
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?
Use resistor
can i use a 4.7k resistor also i am getting -127° reading what can be my solution
It should works, check your wiring again.
i have same -127°... but ho to resolved it ?
@@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
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
What is the type of the lcd?
it's 20x4 LCD
Why u use this resistor with the temp. Sensor i need this one?
It's for pull up
It is a 4.7k ohm resistor
Is it possible to do this without a breadboard?
Sure
@@miliohm Does it require calibration?
@@musicalmusician8019 it is factory calibrared. But if you still need adjusment you can also calibrate it.
the temperature values that I am getting is not accurate. my room is abou5 celcius but I am seeing 85 degrees Celsius
Did it change?
im sorry,can i get code for lcd1602 :(
You should read the description
Can you give me the code of it??plz I need urgent.
You should read the description
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 🙏
@@tanjimulislamdip2338 maybe you click the wrong link. The second one. Still work here miliohm.com/how-to-simply-use-ds18b20-temperature-sensor-with-arduino/
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...