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
T

torfinn

@torfinn
About
Posts
16
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DS18B20 + multi relay
    T torfinn

    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.

    Troubleshooting

  • RF Nano from Keywish & MYSBootloader
    T torfinn

    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.

    Hardware

  • RF Nano = Nano + NRF24, for just $3,50 on Aliexpress
    T torfinn

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

    Hardware

  • RF Nano = Nano + NRF24, for just $3,50 on Aliexpress
    T torfinn

    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

    Hardware

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

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

    Troubleshooting atmega328p low power stand alone nrf24l01+

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

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

    Troubleshooting atmega328p low power stand alone nrf24l01+

  • [SOLVED] Sleep dont run
    T torfinn

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

    Troubleshooting

  • [SOLVED] Sleep dont run
    T torfinn

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

    Troubleshooting

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

    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 ?

    Troubleshooting atmega328p low power stand alone nrf24l01+

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

    Thank's for your feedback.

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

    Troubleshooting atmega328p low power stand alone nrf24l01+

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

    @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); 
    }
    
    Troubleshooting atmega328p low power stand alone nrf24l01+

  • ATMega328p 8Mhz internal, standalone, mysensors low power problem
    T torfinn

    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 ?

    Troubleshooting atmega328p low power stand alone nrf24l01+

  • Multisensor PIR problem [solved]
    T torfinn

    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();
    ......

    Troubleshooting

  • DHT22 and DS18b20 on same node: DS shows up with Humidity now.
    T torfinn

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

    Troubleshooting

  • DHT22 and DS18b20 on same node: DS shows up with Humidity now.
    T torfinn

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

    Troubleshooting

  • DHT22 and DS18b20 on same node: DS shows up with Humidity now.
    T torfinn

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

    Troubleshooting
  • Login

  • Don't have an account? Register

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