Arduino DS18B20 temperature sensor tutorial

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 85

  • @arunpatil7936
    @arunpatil7936 3 года назад +3

    hiee bro i need your help. I am using this sensor, for the first time it worked perfectly but after that, I had cut the wire to solder jumper wires but after soldering it is showing -126 degree celcius only. How to resolve this??

  • @ellseliow3855
    @ellseliow3855 3 года назад +3

    Hi Guys, i unable to get the result....it still on
    -127.00 C -196.60 F
    -127.00 C -196.60 F
    any idea?
    I had try to get to changed all the cable and resistor...

    • @lmeb83
      @lmeb83 3 года назад

      I have the same output: -127.00 C -196.60 F

    • @ellseliow3855
      @ellseliow3855 3 года назад

      @@lmeb83 ya. I dunno why the water resister temp not working all time...I had even tried use the new temp water resister sensor. But it provide me same result. But when I use the non water resistant temp sensor no problem at all

    • @hendrik727
      @hendrik727 3 года назад

      I have the same problem.

    • @arduino4569
      @arduino4569 3 года назад

      Check the code,
      The wires,
      The connections,
      Otherwise the sensor is defect, not working.
      Always keep more than one piece of each part, Arduino to wires.

    • @zmk55
      @zmk55 Год назад

      I had the same issue. I was accidentally using 4.7 ohm and not 4.7k …..

  • @topfundus1093
    @topfundus1093 3 года назад +1

    Sehr gut! Funktioniert alles. Vielen Dank!

  • @ali_youtube_user_7351
    @ali_youtube_user_7351 Месяц назад

    I dont understand, why do we connect the resistor terminals from the Vcc to the data line ? Why not from the arduino gpio pin to the data line ?

  • @dogeeatsveggies
    @dogeeatsveggies 3 года назад +1

    you make good tutorials

  • @tamgaming9861
    @tamgaming9861 5 лет назад +2

    Thanks a lot for your video! Why do you need a resistor and how do you calculated how high he has to be? Thanks in advance :-)

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY  5 лет назад

      Please read the datasheet of the sensor. It is written there.

    • @tamgaming9861
      @tamgaming9861 5 лет назад

      @@DPVTECHNOLOGY i got today 3 of them - but there was no datasheed, because this i ask here :-)

    • @idvfpv
      @idvfpv 4 года назад +1

      why thanks, the program is broken!

  • @beebzyful
    @beebzyful 4 года назад +2

    Is there a way to use this sensor with an arduino one wifi rev 2 board? I could really use help with this

  • @dooooood600
    @dooooood600 Год назад

    where is the dallas tmep library?

  • @alzbert6853
    @alzbert6853 3 года назад

    Good video man. Thank you!

  • @arthurberkouwer7123
    @arthurberkouwer7123 4 года назад +3

    The video looks nice, but where can I download the code?

  • @wahyum.s1143
    @wahyum.s1143 3 года назад

    thanks. what if we dont use resistor?

  • @KhianVictoryDCalderon
    @KhianVictoryDCalderon 4 года назад

    Bro is the resistor between positive and analog pin?

  • @ab237anjhfj
    @ab237anjhfj 4 года назад

    But if i use a grove arduino and not a breadboard where i connect the resistor ? please

  • @ivanmartinez-om2lq
    @ivanmartinez-om2lq 4 года назад

    Hi, I´m running the code, and it´s working, but my temperature began at 50 C, and is increasing, without heat... my environmental heat is 18 C. Can it be the resistor? The sensor is heating increasingly. Thank you!

    • @firozdang
      @firozdang 4 года назад

      your terminals are swapped

  • @johnbenedictdivinagracia4866
    @johnbenedictdivinagracia4866 7 месяцев назад

    Thank you so much!

  • @SashiRockzz
    @SashiRockzz 3 года назад

    How many temperature sensor can be connect to this arduino????

  • @muhammadalfian4762
    @muhammadalfian4762 5 лет назад +1

    can help me, how to make this with two multi sensors? please..

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY  5 лет назад

      video is already on our channel. It is shown by using non waterproof version. but everything will be same. Search like multiple ds18b20 sensor with arduino by dpv technology on youtube.

  • @tugasakhirhendro9965
    @tugasakhirhendro9965 4 года назад +1

    what is the difference between sensor DS18B20, DS18S20, DS1822, DS1820?

  • @rajipanicker624
    @rajipanicker624 4 года назад

    Hi If its is aurdino mega
    how do i connect the wires

  • @warrenwalter1448
    @warrenwalter1448 5 лет назад +2

    your code is full of mistakes - not including { and therafter using } etc. frustrated now cause im trying to learn !

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY  5 лет назад

      Let me check.

    • @umikalsumkalsum131
      @umikalsumkalsum131 5 лет назад +1

      Can anyone help me, i try it but in the serial monitor the temperature is -127 C, why it done? I don't know how to solve the problem

    • @romankotsiurko
      @romankotsiurko 5 лет назад

      @@umikalsumkalsum131 according to this tutorial, you must connect your sensor to 8th analog pin (input) (see line 4 in the code)

    • @failtv5442
      @failtv5442 4 года назад

      @@romankotsiurko he says digital pin, also pin8 is a analog pin..
      i have the same problem with -127 C

    • @idvfpv
      @idvfpv 4 года назад

      @@failtv5442 i also have that problem

  • @emilep.3803
    @emilep.3803 4 года назад

    Thank you very much for this tutorial, it helped me a lot !!

  • @gjhgkyunygukngugnyugnyugyg6743
    @gjhgkyunygukngugnyugnyugyg6743 5 лет назад +2

    resistor nominal?

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY  5 лет назад

      According to data sheet, it should be 4.7k . but you try with a value close to it. I did not test with other value.

  • @roshanchandana8058
    @roshanchandana8058 3 года назад

    Sir , may i get code for this project

  • @gameeducation1343
    @gameeducation1343 3 года назад

    Hello.
    you putted data wire into digital output pin....
    but data wire should be connected with analog input...!!!

  • @alexcarvajal3005
    @alexcarvajal3005 4 года назад

    Hello, I want to take the temperature every half hour and not every second, how do I do it?

    • @blvck_nth356
      @blvck_nth356 4 года назад

      1 second = 1000ms
      60 seconds = 60000ms = 1min
      1800 seconds = 1800000ms = 30min
      So put the delay on to 1800000ms

    • @gabrielmilanesi6341
      @gabrielmilanesi6341 4 года назад

      You can also try using the millis function of the arduino that counts the milliseconds. Then you make it measure the temperature every time when the time in milliseconds is divisible by 1800000.

  • @rezarizkiyanto4606
    @rezarizkiyanto4606 5 лет назад +4

    wheres the code

    • @mvigno2
      @mvigno2 3 года назад

      #include
      #include
      #define ONE_WIRE_BUS 8
      OneWire oneWire(ONE_WIRE_BUS);
      DallasTemperature sensors(&oneWire);
      float Celsius = 0;
      float Fahrenheit = 0;
      void setup() {
      sensors.begin();
      Serial.begin(9600);
      }
      void loop() {
      sensors.requestTemperatures();
      Celsius = sensors.getTempCByIndex(0);
      Fahrenheit = sensors.toFahrenheit(Celsius);
      Serial.print(Celsius);
      Serial.print(" C ");
      Serial.print(Fahrenheit);
      Serial.println(" F");
      delay(1000);
      }

  • @howtodo8094
    @howtodo8094 4 года назад

    I have been using Arduino 1.8.5 for Windows 8 for years now without any problems.
    I followed the instructions in this video and that's the last thing I ever did with Arduino, now it won't start whatever I do.
    I even tried uninstalling completely and re-installing the exact same version of arduino for IDE but the problem persists.
    Is anybody else having the same problem?
    Because of the problems I am having with arduino right now, I say be careful, make sure you can backtrack to the current
    state where you computer is at before trying.
    When I run arduino_debug what I am getting is shown below:
    C:\Program Files (x86)\Arduino>arduino_debug
    Looking for library 'user32'
    Adding paths from jna.library.path: null
    Trying user32.dll
    Found library 'user32' at user32.dll
    DPI detection failed, fallback to 96 dpi
    Looking for library 'shell32'
    Adding paths from jna.library.path: null
    Trying shell32.dll
    Found library 'shell32' at shell32.dll
    Looking for library 'Ole32'
    Adding paths from jna.library.path: null
    Trying Ole32.dll
    Found library 'Ole32' at Ole32.dll
    Loading configuration...
    Initializing packages...
    java.lang.NullPointerException
    at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(Con
    tributionsIndexer.java:123)
    at processing.app.BaseNoGui.initPackages(BaseNoGui.java:487)
    at processing.app.Base.(Base.java:261)
    at processing.app.Base.main(Base.java:144)

  • @techsecret6474
    @techsecret6474 4 года назад

    How to on off light with arduino when temp high low For incubator can u show that???

    • @muhammedimdaad
      @muhammedimdaad 4 года назад

      there is an alarm system in the sensor. when the temp goes higher or lower below a threshold it will set a flag and by checking it you can make your decisions.

  • @abhiramshetty9302
    @abhiramshetty9302 5 лет назад +2

    iam getting values in minus degress

    • @umikalsumkalsum131
      @umikalsumkalsum131 5 лет назад +1

      Do u have a solution for that? I have a problem like u, and i can't solve it, in the serial monitor the temperature is -127 C, can u help me why it done?

    • @FallingofHeroes
      @FallingofHeroes 5 лет назад

      @@umikalsumkalsum131 more than likely you are not connected to the right pin in your code, or on your breadboard

    • @umikalsumkalsum131
      @umikalsumkalsum131 5 лет назад

      @@FallingofHeroes but now I can solve it

    • @markhamclorado8391
      @markhamclorado8391 5 лет назад

      how did you solve sir?

    • @markhamclorado8391
      @markhamclorado8391 5 лет назад

      @@umikalsumkalsum131 how did you solve sir???

  • @industron22
    @industron22 Год назад

    showing wrong temperature ... 10 degree more than actual temperature

  • @choichifaijasonccf2536
    @choichifaijasonccf2536 3 года назад +1

    It keeps showing -127.00 C and -196.60 F
    any suggestion?

    • @alifmohd7371
      @alifmohd7371 3 года назад

      Your 5V wire was not attached properly, or another wire was not fit well..check it again

  • @sarankumar8043
    @sarankumar8043 4 года назад

    Where is the code ?

  • @abdul-aziztiblan2339
    @abdul-aziztiblan2339 4 года назад +1

    Thanks for the video. But how to contact 3 sensor using 1 arduino?

    • @failtv5442
      @failtv5442 4 года назад +5

      are u dumb?

    • @rathanshidling9832
      @rathanshidling9832 4 года назад

      Connect to another analog pins. A0, A1..

    • @adam03957
      @adam03957 4 года назад +1

      Rathan Shidling
      That wouldn’t work, a ds18b20 is a digital input.
      You can actually connect multiple ds18b20’s to the same Digital input as long as you still have voltage and current to spare, so you might want to implement a 5V source externally.
      So you can either connect them to different digital inputs but if you’re running short you can have them all on 1 digital pin and modify your code to address each one for temp first

    • @failtv5442
      @failtv5442 4 года назад

      @@adam03957 i connected it to another pin, it worked, so do that...

  • @chichinra6916
    @chichinra6916 3 года назад

    Can we replace 4.7 k resistance with other resister

  • @shathaan1763
    @shathaan1763 4 года назад

    thank you bro

  • @shantosutradhar1365
    @shantosutradhar1365 5 лет назад +1

    thank you

  • @yudirudiat6499
    @yudirudiat6499 3 года назад

    Source code please

  • @alirezaaraby
    @alirezaaraby 4 года назад

    Good Job

  • @daddythreelegs4113
    @daddythreelegs4113 5 лет назад +2

    need subtitles

  • @idvfpv
    @idvfpv 4 года назад +1

    this program does't work!

  • @charlessamwel6318
    @charlessamwel6318 4 года назад

    Always receive -127 plz help

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY  4 года назад +1

      Use 4.7k resistor as shown in the video. That is most important.

  • @bob-ny6kn
    @bob-ny6kn 2 года назад

    Why the annoying audio?

  • @quentinsadler1243
    @quentinsadler1243 4 года назад

    Nice video