Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Connecting the Dallas DS18B20 temperature sensor.

Connecting the Dallas DS18B20 temperature sensor.

Scheduled Pinned Locked Moved Hardware
7 Posts 3 Posters 86 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Feliw05F Offline
    Feliw05F Offline
    Feliw05
    wrote on last edited by
    #1

    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 :) .

    mfalkviddM 1 Reply Last reply
    0
    • Feliw05F Feliw05

      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 :) .

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @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.

      1 Reply Last reply
      0
      • Feliw05F Offline
        Feliw05F Offline
        Feliw05
        wrote on last edited by
        #3

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

        mfalkviddM 1 Reply Last reply
        0
        • Feliw05F Feliw05

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

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • Feliw05F Offline
            Feliw05F Offline
            Feliw05
            wrote on last edited by
            #5

            @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.

            skywatchS 1 Reply Last reply
            0
            • mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • Feliw05F Feliw05

                @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.

                skywatchS Offline
                skywatchS Offline
                skywatch
                wrote on last edited by
                #7

                @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?

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                14

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular