Navigation

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

    FrankVK

    @FrankVK

    3
    Reputation
    11
    Posts
    213
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    FrankVK Follow

    Best posts made by FrankVK

    • RE: Lux sensor (BH1750) sending battery level (V)

      Actually, I needed to change 2 things: first one was dividing by 1000.0 rather than 1000 and the other one was calling send(msgVcc.set(Vcc, 2)); rather than send(msgVcc.set(Vcc)); Now the log reads 2.95V.

      Thanks Mikael (@mfalkvidd) & everyone! Happy coding!

      posted in Development
      FrankVK
      FrankVK
    • RE: Serial Gateway + MySensor working but devices not added in Domoticz

      Yes Mikael, but it suddenly hit me that you have to allow Domoticz to add new devices from the console. I can see the Temperature and the Humidity now!

      Thanks again!

      posted in Domoticz
      FrankVK
      FrankVK
    • RE: [SOLVED] Testing Serial Gateway?

      Thanks for your reply!

      It appears to be a newby mistake: I overpowered the NRF24L01 radios: the FTDI board did put out 5.0V although the output Voltage selectors witch wat at the 3.3V position..

      Another lesson learned today... always doublecheck !

      posted in Troubleshooting
      FrankVK
      FrankVK

    Latest posts made by FrankVK

    • RE: [SOLVED] Poor battery life on door sensor

      @martinb Did you replace the NRF24L01 with another NRF24L01? iow was it a bad device?

      posted in Hardware
      FrankVK
      FrankVK
    • RE: [SOLVED] Poor battery life on door sensor

      @mfalkvidd Interesting discussion!

      I've got the same issue with a lux sensor based upon BH1750; battery life is limited to 7-10 days (3V, 9900mAh)
      I gather that it's not possible to use the interrupt method in this case?

      Do you have any suggestions how I can improve battery life?

      posted in Hardware
      FrankVK
      FrankVK
    • RE: Lux sensor (BH1750) sending battery level (V)

      Actually, I needed to change 2 things: first one was dividing by 1000.0 rather than 1000 and the other one was calling send(msgVcc.set(Vcc, 2)); rather than send(msgVcc.set(Vcc)); Now the log reads 2.95V.

      Thanks Mikael (@mfalkvidd) & everyone! Happy coding!

      posted in Development
      FrankVK
      FrankVK
    • RE: Lux sensor (BH1750) sending battery level (V)

      Hi Zboblamont,

      Thanks for your response, but the error occurs in the line, obviously because Vcc is of the type 'float'

      send(msgVcc.set(Vcc));
      
      
      posted in Development
      FrankVK
      FrankVK
    • Lux sensor (BH1750) sending battery level (V)

      Hi,

      I really enjoy using MySensors!

      Got a small general question though: I'm using a BH1750 light sensor, powered by a 3V battery and I'd like to keep an eye on the battery status.

      I have added a line to the existing BH1750 scetch:

      #define CHILD_ID_VCC = 1
      MyMessage msgVcc(CHILD_ID_VCC, V_VOLTAGE);
      .. 
      void Presentation() {
        sendSketchInfo("Light Lux Sensor", "1.1");
        present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
        present(CHILD_ID_VCC, S_MULTIMETER);
      }
      
      Loop() {
      uint16_t lux = lightSensor.readLightLevel();
      float Vcc = ReadVcc();
      
      send(msgLux.set(Lux));
      send(msgVcc.set(Vcc));
      }
      

      Domoticz recieves the data now, but the Voltage is reading 2968V because readVcc delivers mV
      If I change the code to:

      float Vcc = readVcc()/1000;
      

      I get an error message "call of overloaded 'set(float&)'is ambiguous"
      How can I send decimal values to the Domoticz controller from MySensors?

      Regards, Frank

      posted in Development
      FrankVK
      FrankVK
    • RE: Serial Gateway + MySensor working but devices not added in Domoticz

      Yes Mikael, but it suddenly hit me that you have to allow Domoticz to add new devices from the console. I can see the Temperature and the Humidity now!

      Thanks again!

      posted in Domoticz
      FrankVK
      FrankVK
    • Serial Gateway + MySensor working but devices not added in Domoticz

      Hi,

      Just got the MySensors Serial Gateway (Arduino Pro Mini (328) & NRF24L01) working with my first sensor (Arduino Pro Mini & NRF24L01 & DHT22). Running in DEBUG mode.
      When debugging the Gateway, I can see the values:

      ..
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.3.1
      0;255;3;0;9;73 MCO:BGN:STP
      0;255;3;0;9;96 MCO:BGN:INIT OK,TSP=1
      0;255;3;0;9;104 TSM:READY:NWD REQ
      0;255;3;0;9;149 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      0;255;3;0;9;8488 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.3
      1;0;1;0;1;53.3
      0;255;3;0;9;71725 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
      1;1;1;0;0;21.8
      0;255;3;0;9;71743 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.2
      1;0;1;0;1;53.2
      0;255;3;0;9;134963 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.4
      1;0;1;0;1;53.4
      0;255;3;0;9;198199 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
      
      

      From Domoticz, I can see the Gateway and the Child nodes. The values are also read.
      However, no device is added..

      ![Domoticz](0_1557768949645_81d4a1d7-4dfc-489c-b98f-a0e085c194d2-image.png image url)

      Any suggestions?

      Regards, Frank

      posted in Domoticz
      FrankVK
      FrankVK
    • RE: [SOLVED] Testing Serial Gateway?

      Recompiled & uploaded the sektch and now I see the Temperature and Humidity values allright!
      Thanks again!

      posted in Troubleshooting
      FrankVK
      FrankVK
    • RE: [SOLVED] Testing Serial Gateway?

      Now that we have communication: if I run the (standard) DhtTemparatureAnd HumiditySensor sketch, the Setup() en Loop() never seem to run.. The Serial.println commands don't make it to the Serial monitor..

      Am I missing something here?

      posted in Troubleshooting
      FrankVK
      FrankVK
    • RE: [SOLVED] Testing Serial Gateway?

      Thanks for your reply!

      It appears to be a newby mistake: I overpowered the NRF24L01 radios: the FTDI board did put out 5.0V although the output Voltage selectors witch wat at the 3.3V position..

      Another lesson learned today... always doublecheck !

      posted in Troubleshooting
      FrankVK
      FrankVK