Navigation

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

    engy

    @engy

    2
    Reputation
    12
    Posts
    565
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    engy Follow

    Best posts made by engy

    • RE: Low Power: How much current? [Solved]

      My problem was defected NRF24 radios. Had to order 3rd batch from ebay, and even though it contained a few defected modules.

      posted in Hardware
      engy
      engy
    • RE: Sleep mode/Read Vcc issue

      The problem was faulty NRF24... another batch 😞
      Just powered sensor in sleep mode is consuming as expected - a few uA.
      But later, after while, power consumption is increasing.
      Commenting Vcc was just coincidence.

      Received new NRFs batch from mysensors shop, and all the problems gone.
      Thanks!

      posted in Troubleshooting
      engy
      engy

    Latest posts made by engy

    • RE: Sonoff + MySensors mqtt gateway + Home-Assistant

      Might be helpful for somebody... Things configuration for OpenHab2:

      Bridge mysensors:bridge-eth:gateway_2 [ ipAddress="192.168.178.50", tcpPort=5003, sendDelay=200, enableNetworkSanCheck=true ] {
              /** define things connected to that bridge here */
              light sonoff01 [ nodeId="0", childId="0", requestAck=true ]
      }
      
      posted in My Project
      engy
      engy
    • RE: JULA motion LED hack

      Cool! What is the consumption of the node and how long batteries last?

      posted in My Project
      engy
      engy
    • RE: 💬 Building a Raspberry Pi Gateway

      Thank you guys for prompt reaction. Indeed, Ethernet GW works flawlessly!

      posted in Announcements
      engy
      engy
    • RE: 💬 Building a Raspberry Pi Gateway

      @gohan I'm sorry, MQTT is not supported by OpenHab MySensors binding. Ethernet Gateway is not supported on Raspberry PI.

      posted in Announcements
      engy
      engy
    • RE: 💬 Building a Raspberry Pi Gateway

      @gohan Etherner Gareway is not supported by OpenHab MySensors binding.

      posted in Announcements
      engy
      engy
    • RE: 💬 Building a Raspberry Pi Gateway

      Hello Masters,

      Could you please help me with setting up virtual serial port?

      I can't see the interface created under /dev.
      I'm using the instructions and finish with the setup with the following command:

      pi@raspberrypi:/tmp/MySensors $ ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
      [SECTION] Detecting target machine.
        [OK] machine detected: SoC=BCM2836, Type=Rpi2, CPU=armv7l.
      [SECTION] Detecting SPI driver.
        [OK] SPI driver detected:BCM.
      [SECTION] Detecting init system.
        [OK] init system detected: systemd.
      [SECTION] Saving configuration.
      [SECTION] Cleaning previous builds.
      [OK] Finished.
      
      pi@raspberrypi:/ $ sudo /usr/local/bin/mysgw -d
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
      mysgw: TSF:LRT:OK
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: TSM:INIT:TSP OK
      mysgw: TSM:INIT:GW MODE
      mysgw: TSM:READY:ID=0,PAR=0,DIS=0
      mysgw: MCO:REG:NOT NEEDED
      mysgw: Listening for connections on 0.0.0.0:5003
      mysgw: MCO:BGN:STP
      mysgw: MCO:BGN:INIT OK,TSP=1
      
      

      Everything seems to be OK. However, when I check /dev directory, the interface is not created.

      What could be an issue?
      Thank you in advacne!

      posted in Announcements
      engy
      engy
    • RE: Sleep mode/Read Vcc issue

      The problem was faulty NRF24... another batch 😞
      Just powered sensor in sleep mode is consuming as expected - a few uA.
      But later, after while, power consumption is increasing.
      Commenting Vcc was just coincidence.

      Received new NRFs batch from mysensors shop, and all the problems gone.
      Thanks!

      posted in Troubleshooting
      engy
      engy
    • RE: Sleep mode/Read Vcc issue

      I'm not sure if it's related to DHT22, because sleep mode works fine when Vcc function is commented in the sketch.

      posted in Troubleshooting
      engy
      engy
    • Sleep mode/Read Vcc issue

      Hello,

      I'm made temp/hum sensor with slim node and DHT22.
      When Mysensors/HumiditySensor sketch is loaded, the sensor in sleep mode consumes 25uA.

      I also would like to report battery level.
      But when read vcc function is included in the sketch, the power consumtions after transmission remains ~ 0.1 - 0.2mA.

      Any ideas why sleep mode is not functioning correctly with sendBatteryReport()?
      Thank you in advance.

      Please see my updated sketch:

      #include <SPI.h>
      #include <MySensor.h>  
      #include <DHT.h>
      #include <Vcc.h>
      
      #define VCC_MIN 2.8
      #define VCC_MAX 3.3
      Vcc vcc;
      #define NODE_ID 2
      
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      #define HUMIDITY_SENSOR_DIGITAL_PIN 3
      unsigned long SLEEP_TIME = 120000; // Sleep time between reads (in milliseconds)
      
      MySensor gw;
      DHT dht;
      float lastTemp;
      float lastHum;
      boolean metric = true; 
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      
      
      void setup()  
      { 
        gw.begin(NULL, NODE_ID);
        dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
      
        // Send the Sketch Version Information to the Gateway
        gw.sendSketchInfo("Humidity", "1.0");
      
        // Register all sensors to gw (they will be created as child devices)
        gw.present(CHILD_ID_HUM, S_HUM);
        gw.present(CHILD_ID_TEMP, S_TEMP);
        
        metric = gw.getConfig().isMetric;
      }
      
      void loop()      
      {  
        sendBatteryReport();
        delay(dht.getMinimumSamplingPeriod());
      
        float temperature = dht.getTemperature();
        if (isnan(temperature)) {
            Serial.println("Failed reading temperature from DHT");
        } else if (temperature != lastTemp) {
          lastTemp = temperature;
          if (!metric) {
            temperature = dht.toFahrenheit(temperature);
          }
          gw.send(msgTemp.set(temperature, 1));
          Serial.print("T: ");
          Serial.println(temperature);
        }
        
        float humidity = dht.getHumidity();
        if (isnan(humidity)) {
            Serial.println("Failed reading humidity from DHT");
        } else if (humidity != lastHum) {
            lastHum = humidity;
            gw.send(msgHum.set(humidity, 1));
      
            Serial.print("H: ");
            Serial.println(humidity);
        }
      
        gw.sleep(SLEEP_TIME); //sleep a bit
      }
      
      void sendBatteryReport() {
                float p = vcc.Read_Perc(VCC_MIN, VCC_MAX, true);
                int batteryPcnt = static_cast<int>(p);
                gw.sendBatteryLevel(batteryPcnt);
      }
      
      
      posted in Troubleshooting
      engy
      engy
    • RE: Low Power: How much current? [Solved]

      My problem was defected NRF24 radios. Had to order 3rd batch from ebay, and even though it contained a few defected modules.

      posted in Hardware
      engy
      engy