Connecting the Dallas DS18B20 temperature sensor.



  • Hello everyone, I am building a temperature sensor using the Dallas DS18B20 sensor. I have a couple of question about it's connection. I am using a arduino nano and have the NRF24L01+ connected to the 3.3v pin. To connect the sensor, is it ok to plug it into the 5v pin? it says to plug it into the vcc pin but I dont know the ouput voltage of it and the documentation says (3.0-5.5V). In addition, I am using a 4,7kOhm resistor. another question I have is on the connection of the resistor. I dont understand why the documentation says I have to plug it between the vcc and d3, How is that? Isnt a resistor supposed to stand in te middle of a connection? WhatsApp Image 2022-02-23 at 16.04.04.jpeg This is how I connected it, the resistor makes a bridge from the d3 to the vcc. Is this ok? (The orange cable is coming from the pin 3 and goes to the dq of the sensor, the red cable comes from the 5v and goes to the vcc of the sensor and the black comes form the gnd and goes to the gnd of the sesor).
    Hope this is well explained 🙂 .


  • Mod

    @Feliw05 the resistor is called a pull-up resistor. See https://en.m.wikipedia.org/wiki/Pull-up_resistor

    As you have noted, any voltage between 3.0 and 5.5 for power supply will work so it doesn’t make much difference whether you connect 3.3V or 5.0V.



  • so I am guessing the resistor is placed correcty? Thank you very much for your replay, it has been extremely helpful.


  • Mod

    @Feliw05 I don't know. Where do the two brown wires go to?



  • @mfalkvidd said in Connecting the Dallas DS18B20 temperature sensor.:

    I don't know. Where do the two brown wires go to?

    @mfalkvidd the one on the right goes to vcc of the sesnor and the left one goes to the gnd of the arduino nano. The other white and orange cable go to pin 3.


  • Mod

    ok. I'll need to wait until I can find time to get pen and paper and sketch this out. I can't keep it all in my head at the same time, need something visual to understand where everything goes.



  • @Feliw05 You have left and right transposed. Looks like the left should go to Vcc and the right should go to ground....or are you looking at it from a different angle?


Log in to reply
 

Suggested Topics

  • 87
  • 1
  • 7
  • 10
  • 7
  • 5

1
Online

11.4k
Users

11.1k
Topics

112.7k
Posts