Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. torfinn
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by torfinn

    • RE: DS18B20 + multi relay

      This should give you a description in domoticz: present(0, S_TEMP,"A-DS18S20");

      I dont know about the child id but the unit id will be the same as the number you present them with.

      I dont get the whole scope of your setup but I would just have domoticz control the relays based on whatever calc you do on the temps.

      posted in Troubleshooting
      torfinn
      torfinn
    • RF Nano from Keywish & MYSBootloader

      Anyone got this to work with the MYSBootloader ( ref. #define MY_RF24_CE_PIN 10 #define MY_RF24_CS_PIN 9 ).

      If you have working .HEX please post it.

      posted in Hardware
      torfinn
      torfinn
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      @zen85 Thanks I got it to work but if I add #define MY_DEBUG_VERBOSE_RF24 i still get RBR:REG=23, VAL=17 filling the console....

      posted in Hardware
      torfinn
      torfinn
    • RE: RF Nano = Nano + NRF24, for just $3,50 on Aliexpress

      Hi ! Got a couple of these. Hard to say if its + chip ( but I guess not ). Anyway I am not able to get them running a simple test sketch. Only get RBR:REG=23, VAL=17

      posted in Hardware
      torfinn
      torfinn
    • RE: ATMega328p 8Mhz internal, standalone, mysensors low power problem

      @mortommy Hi ! I decided to go with 2.1.1 on new sensors but still have the old 1.5.4 gw running. Had to change frequency to #define MY_RF24_CHANNEL 125 as the 2.1.1 sensors also registered partialy ( temp not humidity ) on the old 1.5 gw.

      Also tried out #define MY_REPEATER_FEATURE Disabled this seems to do the opposite what i thought. Radio is never turned off ie. 17mA drain.

      Added the following to try the lower the init etc. and it improves a little.
      #define MY_REGISTRATION_FEATURE Disabled
      #define MY_REGISTRATION_RETRIES 1

      I think its a serious flaw that if the gw for any case locks up our sensors will drain the battery until it's back online again.

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: ATMega328p 8Mhz internal, standalone, mysensors low power problem

      @torfinn RESOLVED:
      Hi ! I had problem with properly registering on the gateway ( due to chips was used on old version earlier ). After finding this post I tried the https://www.mysensors.org/build/debug#clearing-eeprom and it fixed problem. Looking at 40uA sleeping now 🙂

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: [SOLVED] Sleep dont run

      Hi ! Just wanted to add that this also solved it for me. I had problem with properly registering on the gateway ( due to chips was used on old version earlier ). After finding this post I tried the https://www.mysensors.org/build/debug#clearing-eeprom and it fixed problem. Looking at 40uA sleeping now 🙂

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: [SOLVED] Sleep dont run

      @mar.conte Hi ! Have the same problem with mysensor and NRF24l01. Tried to pull down both pins 4,5 (INT1/2) and even tried just to sleep(10000) without success. My circuit uses 17mA sending and 3,5mA when its supposed to sleep ???

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: ATMega328p 8Mhz internal, standalone, mysensors low power problem

      Could it be board related ? I am using Arduino 1.8.1. I tried compiling with Ardino Pro / ATmega 328p 8Mhz as stock setup and now using both bootloader and setup from here: https://github.com/MCUdude/MiniCore/blob/master/README.md#boards-manager-installation

      I was just thinking that maybe some of the command in the mysensors library are disabled if it detects another board setting ?

      Also anyone know if the pin 2 / IRQ should be used ? Its not connected in my project could it be that mysensors is awakened by this ?

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: ATMega328p 8Mhz internal, standalone, mysensors low power problem

      Thank's for your feedback.

      Did you use the usual gw.sleep command on 1.5.4 or any other lowpower libraries ?

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: ATMega328p 8Mhz internal, standalone, mysensors low power problem

      @AWI

      Here is a minimal sketch I am testing with:

      #define MY_RADIO_NRF24
      #include <SPI.h>
      #include <MySensors.h>  
      #include <DHT.h>
      
      #define DHT_DATA_PIN 8
      #define SENSOR_TEMP_OFFSET 0
      
      static const uint64_t UPDATE_INTERVAL = 60000;
      
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      DHT dht;
      
      void presentation()  
      { 
        sendSketchInfo("TemperatureAndHumidity", "2.2");
        present(CHILD_ID_HUM, S_HUM);
        present(CHILD_ID_TEMP, S_TEMP);
      }
      
      void setup()
      {
       
      }
      
      void loop()      
      {  
        dht.readSensor(true);
        float temperature = dht.getTemperature();
        float humidity = dht.getHumidity();
        send(msgHum.set(humidity, 1));
        
        sleep(10000); 
      }
      
      posted in Troubleshooting
      torfinn
      torfinn
    • ATMega328p 8Mhz internal, standalone, mysensors low power problem

      Hi ! I have started to upgrade mysensors ( 1.5 ) thats been working for a long time to version 2.1.1 but can't seem to get lowpower working.

      Tried most of the stuff out there like different bootloaders and changing NRF24 chips but I end up with 17mA during transmit and between 2,4 - 3,5mA in sleep mode.

      Tried using other low power libraries like http://www.gammon.com.au/power which works nice but is not compatible with mysensors because some parts are already implemented there I guess. With this library I get sleep mode like 20uA but then again can't get mysensors to work. What's the catch ?

      Anyone else have this problem and hopefully a solution for standalone ATMega 328p ?

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: Multisensor PIR problem [solved]

      Hi ! I had the same problem. Seems like gw.sleep(some_number_of_mills); lets you loose the init of the dht. Just put dht.begin(); in your loop before you read the value and it should work.

      example.
      void loop ()
      {
      dht.begin();
      float temperature = dht.readTemperature();
      ......

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: DHT22 and DS18b20 on same node: DS shows up with Humidity now.

      Hi ! You can get a partly workaround using V_DUST_LEVEL or something instead of V_HUM.

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: DHT22 and DS18b20 on same node: DS shows up with Humidity now.

      Seems to be related to the domoticz gateway. Also tried to downgrade to the first version that supported Arduino as serial controller but same problem. Strange thing is that if you restart controller and only present temp in the sketch its working until you present the humidity??

      posted in Troubleshooting
      torfinn
      torfinn
    • RE: DHT22 and DS18b20 on same node: DS shows up with Humidity now.

      @jbishop129 Hi I am sorry have the same problem but have not found any solution to it yet.

      posted in Troubleshooting
      torfinn
      torfinn