Issues dallas sensor and sketch



  • 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



  • 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...
    }


  • 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



  • 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


Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts