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. Issues dallas sensor and sketch

Issues dallas sensor and sketch

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 1.5k 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.
  • pkriekP Offline
    pkriekP Offline
    pkriek
    wrote on last edited by
    #1

    Hi

    I have made multiple senors using the sketechs and fantastic site. I only have issues with the Dallas tempertatue sensors to get them working.

    I attached 2 dallas sensors to an arduino pro mini 3.3 v. I used the sketch that is provided on the site.
    prblem that it works sometimes for 1 sensors, some times 2. So I replaced both sesnors, and now I cant get an reading at al.

    Thru the serial monitor I see most of the times 1 sensors, it alsoshows up in domoticz, but is not reporting. So it seems very intermittenmd working.

    Can it be the pullup resistor? I use the 3.3 v from the arduino itself.

    thanks for helping

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Affe
      wrote on last edited by
      #2

      Have you restore the EERPOM memory ?

      /*
       * The MySensors Arduino library handles the wireless radio link and protocol
       * between your home built sensors/actuators and HA controller of choice.
       * The sensors forms a self healing radio network with optional repeaters. Each
       * repeater and gateway builds a routing tables in EEPROM which keeps track of the
       * network topology allowing messages to be routed to nodes.
       *
       * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
       * Copyright (C) 2013-2015 Sensnology AB
       * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
       *
       * Documentation: http://www.mysensors.org
       * Support Forum: http://forum.mysensors.org
       *
       * This program is free software; you can redistribute it and/or
       * modify it under the terms of the GNU General Public License
       * version 2 as published by the Free Software Foundation.
       *
       *******************************
       *
       * DESCRIPTION
       *
       * This sketch clears radioId, relayId and other routing information in EEPROM back to factory default
       * 
       */
      // load core modules only
      #define MY_CORE_ONLY
      
      #include <EEPROM.h>
      #include <MySensors.h>  
      
      void setup()  
      { 
        Serial.begin(MY_BAUD_RATE);
        Serial.println("Started clearing. Please wait...");
        for (int i=0;i<EEPROM_LOCAL_CONFIG_ADDRESS;i++) {
          hwWriteConfig(i,0xFF);  
        }
        Serial.println("Clearing done. You're ready to go!");
      }
      
      void loop()      
      { 
        // Nothing to do here...
      } ```
      
      /*
       * The MySensors Arduino library handles the wireless radio link and protocol
       * between your home built sensors/actuators and HA controller of choice.
       * The sensors forms a self healing radio network with optional repeaters. Each
       * repeater and gateway builds a routing tables in EEPROM which keeps track of the
       * network topology allowing messages to be routed to nodes.
       *
       * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
       * Copyright (C) 2013-2015 Sensnology AB
       * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
       *
       * Documentation: http://www.mysensors.org
       * Support Forum: http://forum.mysensors.org
       *
       * This program is free software; you can redistribute it and/or
       * modify it under the terms of the GNU General Public License
       * version 2 as published by the Free Software Foundation.
       *
       *******************************
       *
       * DESCRIPTION
       *
       * This sketch clears radioId, relayId and other routing information in EEPROM back to factory default
       * 
       */
      // load core modules only
      #define MY_CORE_ONLY
      
      #include <EEPROM.h>
      #include <MySensors.h>  
      
      void setup()  
      { 
        Serial.begin(MY_BAUD_RATE);
        Serial.println("Started clearing. Please wait...");
        for (int i=0;i<EEPROM_LOCAL_CONFIG_ADDRESS;i++) {
          hwWriteConfig(i,0xFF);  
        }
        Serial.println("Clearing done. You're ready to go!");
      }
      
      void loop()      
      { 
        // Nothing to do here...
      }
      1 Reply Last reply
      0
      • pkriekP Offline
        pkriekP Offline
        pkriek
        wrote on last edited by
        #3

        Hi

        With a new one,not soldered, but attached to teh clamps, it is working. This gives two posible exolanations:

        • the dalls sensor breaks easilly when soldered, can not have high temps.
        • I had a very bad packages . 3 from 10 pieces working.

        Patrikc

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Alexander Voronin
          wrote on last edited by
          #4

          Have similar issue while connect 1-wire sensors to pins 4 (power) and 5 (data) for low energy sensor.

          Looks like at least pin 5 used internally (as LED ?) by MySensors and broke 1-wire i/o.

          After moving 1-wire "data" pin to "A1" and hardwire "power" pin to "VCC" I have no issues with DS18B20. But about 3.5uA per sensor more in sleep (11-12uA instead of 4.7).

          BTW: still have issue with node registration and/or other connection issues - after approx. 2 days node whan't to send data to gateway... Will debug later.

          PS: MySensors v2.0 from Arduino Lib manager, Arduino Pro Mini 3.3V@8MHz@4.1VLiPo

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          11

          Online

          12.1k

          Users

          11.2k

          Topics

          113.4k

          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