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. Troubleshooting
  3. Problem with connecting several temperature sensors

Problem with connecting several temperature sensors

Scheduled Pinned Locked Moved Troubleshooting
temperaturesensor
10 Posts 4 Posters 3.5k Views 1 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.
  • M Offline
    M Offline
    Mouridsen
    wrote on last edited by
    #1

    Hi

    I'm a newbie to Arduino and MySensors.

    I have some Dallas DS18B20 sensors connected to different wires which I connect together.
    When I connect the Arduino to the Purple connection only I get readings from the different sensors (4 sensors).
    When I connect the Arduino to the red connection only I get readings from the different sensors (3 sensors).
    When I connect it as shown on the picture where I'm connecting them all together (7 sensors) I get no readings.

    It only shows this from the serial monitor:

    sensor started, id 3
    send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1
    send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,st=fail:0
    send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor
    send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0

    I have the library 1.4.1, It's the standard sketch "DallasTemperatureSensor" I'm using and I have a 4,7k ohm resistor between + and the signal. It's powered by a laptop when I try to get the readings. I use the Arduino 5V for the sensors.
    One of the wires is around 15m long but I can get readings from it when I don't connect the all.

    I'm stuck and I don't know what's wrong. Please help!

    Skærmbillede 2014-12-23 kl. 14.02.23.png

    RJ_MakeR 1 Reply Last reply
    0
    • M Mouridsen

      Hi

      I'm a newbie to Arduino and MySensors.

      I have some Dallas DS18B20 sensors connected to different wires which I connect together.
      When I connect the Arduino to the Purple connection only I get readings from the different sensors (4 sensors).
      When I connect the Arduino to the red connection only I get readings from the different sensors (3 sensors).
      When I connect it as shown on the picture where I'm connecting them all together (7 sensors) I get no readings.

      It only shows this from the serial monitor:

      sensor started, id 3
      send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1
      send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,st=fail:0
      send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor
      send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0

      I have the library 1.4.1, It's the standard sketch "DallasTemperatureSensor" I'm using and I have a 4,7k ohm resistor between + and the signal. It's powered by a laptop when I try to get the readings. I use the Arduino 5V for the sensors.
      One of the wires is around 15m long but I can get readings from it when I don't connect the all.

      I'm stuck and I don't know what's wrong. Please help!

      Skærmbillede 2014-12-23 kl. 14.02.23.png

      RJ_MakeR Offline
      RJ_MakeR Offline
      RJ_Make
      Hero Member
      wrote on last edited by
      #2

      @Mouridsen I'm a little confused... How far away is the gateway/controller from this node? Depending on the resistive value of the wires in those runs, you may need to add a large cap and or drop the pull-up resister.

      Can you draw out a complete wiring diagram?

      RJ_Make

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mouridsen
        wrote on last edited by
        #3

        I have tried to make the diagram:
        Skærmbillede 2014-12-23 kl. 16.42.48.png

        I have tried to remove the resistor but no change.
        What size of capacitor do you think I should use?

        The gateway is around 10m away. Both the sensor and gateway have a 4,7uf capacitor mounted on the radio.

        I hope the diagram make sense :)

        RJ_MakeR 1 Reply Last reply
        0
        • M Mouridsen

          I have tried to make the diagram:
          Skærmbillede 2014-12-23 kl. 16.42.48.png

          I have tried to remove the resistor but no change.
          What size of capacitor do you think I should use?

          The gateway is around 10m away. Both the sensor and gateway have a 4,7uf capacitor mounted on the radio.

          I hope the diagram make sense :)

          RJ_MakeR Offline
          RJ_MakeR Offline
          RJ_Make
          Hero Member
          wrote on last edited by
          #4

          @Mouridsen So when you only have one "bank" of sensors connected, the the radio is able to communicate, but when both banks are connected you suddenly loose radio communication?

          How are you powering the sensors? Through the Arduino?

          Providing all the wiring is correct, It really sounds like a power problem. I would start with a measurement of the actual current draw on the entire system while cycling through all the sensors readings.

          RJ_Make

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mouridsen
            wrote on last edited by
            #5

            @ServiceXp I'm powering through the Arduino. I have tried to power the sensors with a 4,9V 450mA power supply and connected it to the sensors + and GND and to the Arduinos GND. It was the same result.
            I will try to measure the draw after christmas. Maybe the total length of the wires to the sensors get too long to supply the load needed or the resistance should be changed to a lower value?

            RJ_MakeR 1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #6

              A little christmas reading...
              http://www.maximintegrated.com/en/app-notes/index.mvp/id/148

              1 Reply Last reply
              0
              • M Mouridsen

                @ServiceXp I'm powering through the Arduino. I have tried to power the sensors with a 4,9V 450mA power supply and connected it to the sensors + and GND and to the Arduinos GND. It was the same result.
                I will try to measure the draw after christmas. Maybe the total length of the wires to the sensors get too long to supply the load needed or the resistance should be changed to a lower value?

                RJ_MakeR Offline
                RJ_MakeR Offline
                RJ_Make
                Hero Member
                wrote on last edited by
                #7

                Thanks for the page @hek, some great information.

                @Mouridsen If it's not too much trouble, you may want to setup the same sensor network using test wire on your bench. (with minimal wire lengths of course) That may give you a quick method to see if it's the existing wiring or something else.

                It's strange that you loose radio communication when both banks are connected.. I really would have suspected (when you did the test with the sensors directly connected to the power supply) the sketch to simply return fails on querying the sensors if it was just a 1-wire network issue.....

                RJ_Make

                1 Reply Last reply
                0
                • tbowmoT Offline
                  tbowmoT Offline
                  tbowmo
                  Admin
                  wrote on last edited by
                  #8

                  Hmm if I remember right, the sketch first acquire the temperature for one of the ds1820 sensors, and then transmitting the result, and then proceeding to the next ds1820 sensor in the row.

                  So it's not trying to talk to every ds1820 at the same time, causing it to use a lot of power.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mouridsen
                    wrote on last edited by
                    #9

                    Hi again

                    Problem solved!!! I found an other forum where some people had succes with a 2,2K ohm resistor instead of the 4,7k ohm and it worked. Now I get reading from 8 sensors.
                    I still get the st=fail all the time but it does communicates the values to the Gateway and Vera Lite. Is it something I should try to fix or do it not make a huge different?

                    Thanks for the input and the Christmas reading :)

                    RJ_MakeR 1 Reply Last reply
                    0
                    • M Mouridsen

                      Hi again

                      Problem solved!!! I found an other forum where some people had succes with a 2,2K ohm resistor instead of the 4,7k ohm and it worked. Now I get reading from 8 sensors.
                      I still get the st=fail all the time but it does communicates the values to the Gateway and Vera Lite. Is it something I should try to fix or do it not make a huge different?

                      Thanks for the input and the Christmas reading :)

                      RJ_MakeR Offline
                      RJ_MakeR Offline
                      RJ_Make
                      Hero Member
                      wrote on last edited by
                      #10

                      @Mouridsen Thanks for the follow up!

                      RJ_Make

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


                      10

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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