Navigation

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

    RPunkt

    @RPunkt

    2
    Reputation
    16
    Posts
    385
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    RPunkt Follow

    Best posts made by RPunkt

    • RE: 💬 NodeManager

      @user2684 Thanks for the advice. Now I got it running.😋🙏

      posted in OpenHardware.io
      RPunkt
      RPunkt
    • RE: NodeManager: hookon example needed

      @zboblamont My question is related to:
      https://github.com/mysensors/NodeManager
      This should be an easy way to get sensors running. It should be nice, if You have a battery- powered node as well.
      But for me it is not clear what to to, if You want some extra information to be transmitted.
      So I thought, that would be as easy as setting up a node.

      Only playing a little with:
      "NODEMANAGER_HOOKING OFF allow custom code to be hooked in the out of the box sensors"

      As far as I understand, Your way is the conventional approach.
      That will work for sure, but than power saving is an issue.
      I want that stuff be powered by solar or battery. So it should be very power efficient. That is the reason to try the NodeManager.

      posted in NodeManager
      RPunkt
      RPunkt

    Latest posts made by RPunkt

    • RE: 💬 NodeManager

      @user2684 Thanks a lot

      posted in OpenHardware.io
      RPunkt
      RPunkt
    • RE: 💬 NodeManager

      @user2684
      Hello, it is me again. Going the next steps.
      Now I want to operate another sensor (SensorVL53L0X).
      this sensor should transmit the distance and the battery voltage every hour. in between it should sleep.
      The normal reporting interval of the battery is once every hour
      I set setReportIntervalHours(1); to report the sensor value.
      But how do I set the node to sleep in between?
      setSleepOrWait(True); and sleepBetweenSend(); ?
      or
      setSleepOrWait(True); and setSleepMinutes(60); ?
      And is the NodeManager so clever that all the transmits are at the same time,
      meaning once every hour the sensor value and the battery voltage is transmitted.

      posted in OpenHardware.io
      RPunkt
      RPunkt
    • RE: 💬 NodeManager

      @user2684 Thanks for the advice. Now I got it running.😋🙏

      posted in OpenHardware.io
      RPunkt
      RPunkt
    • RE: 💬 NodeManager

      Question about PowerManger:
      I am a bit confused or I can't find the right information.
      I have an Ultrasonic sensor (SensorHCSR04) that needs to be only powered in case of measuring, due to power consumption.
      An the sensor needs to be switched on a time before the actual measuring starts.
      So my first approach was to switch the
      #define NODEMANAGER_POWER_MANAGER ON
      Then I set

       nodeManager.setPowerPins(5,6,500)
      

      Where I a a bit surprised, why I need two pins (for vcc and ground)?
      At what logic level are the when the PowerManager switches to ON or OFF?
      Do I need to connect both pins, or is the vcc- connection enough?
      Anyway, somehow it did not work with me. It seemed, that the pins are not switched in that way, that pin5 goes to ground and pin 6 goes to 3,3 volt.
      So I found that thing :

      // power all the nodes through dedicated pins
      nodeManager.setPowerManager(power);
      

      But here is no timing possible.
      Am I missing something?

      posted in OpenHardware.io
      RPunkt
      RPunkt
    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      @user2684 Seems to be to difficult for a rookie 😭
      On the conventional MySensors library it is possible with my abilities, but then the power management is a issue.
      For me the NodeManager was the choice, because it saves so much battery energy.
      Other way of solution:
      A friend of mine, convinced me off doing all the calculations in the home- automation (in my case FHEM).
      Now I only use the node transmitting the distance and calculating the "volume of water" and "percentage of water" as a "user reading".

      posted in NodeManager
      RPunkt
      RPunkt
    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      Hello all of You,
      if have a flight time sensor VL53L0X, that is running so far.
      It should measure the water level in a rain tank.
      But now i want to customize my sensornode in that way, that two other values will be transmitted.
      It should be
      V_level, that represents the percentage of my water tank
      and
      V_volume, that represents the available volume of water
      V_level and V_volume could be calculated from the sensor value of the distance sensor (VL53L0X).
      But somehow I could not manage to to get this running. I don't know where to insert what.
      Cant someone point me to the right direction, help appreciated

      /*
      * 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-2017 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.
      */
      
      /**************************
      Template
      
      This sketch can be used as a template since containing the most relevant MySensors library configuration settings, 
      NodeManager's settings, all its the supported sensors commented out and a sketch structure fully functional to operate with
      NodeManager. Just uncomment the settings you need and the sensors you want to add and configure the sensors in before()
      */
      
      /**********************************
       * MySensors node configuration
       */
      
      // General settings
      #define SKETCH_NAME "NodeManager"
      #define SKETCH_VERSION "1.0"
      //#define MY_DEBUG
      #define MY_NODE_ID 8
      
      // NRF24 radio settings
      #define MY_RADIO_NRF24
      #define MY_RF24_CE_PIN 7
      #define MY_RF24_CS_PIN 10
      #define MY_SOFT_SPI_SCK_PIN 11
      #define MY_SOFT_SPI_MOSI_PIN 12
      #define MY_SOFT_SPI_MISO_PIN 13
      
      // Advanced settings
      #define MY_BAUD_RATE 9600
      #define MY_SPLASH_SCREEN_DISABLED
      
      /**********************************
       * MySensors gateway configuration
       */
       
      // Common gateway settings
      //#define MY_REPEATER_FEATURE
      
      /***********************************
       * NodeManager configuration
       */
      
      #define NODEMANAGER_DEBUG ON
      #define NODEMANAGER_INTERRUPTS ON
      #define NODEMANAGER_SLEEP ON
      #define NODEMANAGER_RECEIVE OFF
      #define NODEMANAGER_DEBUG_VERBOSE OFF
      #define NODEMANAGER_POWER_MANAGER ON
      #define NODEMANAGER_CONDITIONAL_REPORT OFF
      #define NODEMANAGER_EEPROM OFF
      #define NODEMANAGER_TIME OFF
      #define NODEMANAGER_RTC OFF
      #define NODEMANAGER_SD OFF
      #define NODEMANAGER_HOOKING OFF
      #define NODEMANAGER_OTA_CONFIGURATION OFF
      #define NODEMANAGER_SERIAL_INPUT OFF
      
      // import NodeManager library (a nodeManager object will be then made available)
      #include <MySensors_NodeManager.h>
      
      /***********************************
       * Add your sensors
       */
      
      //PowerManager power(5,6);
       
      #include <sensors/SensorBattery.h>
      SensorBattery battery;
      
      //#include <sensors/SensorConfiguration.h>
      //SensorConfiguration configuration;
      
      #include <sensors/SensorSignal.h>
      SensorSignal signal;
      
      #include <sensors/SensorVL53L0X.h>
      SensorVL53L0X vl53l0x(9);
      
      /***********************************
       * Main Sketch
       */
      
      // before
      void before() {
      	
        /***********************************
         * Configure your sensors
         */
        // 
        // EXAMPLES:
        // report measures of every attached sensors every 10 seconds
        nodeManager.setReportIntervalSeconds(10);
        void setADCOff();
        nodeManager.setSleepSeconds(10);
        // call NodeManager before routine
        nodeManager.before();
        }
      
      // presentation
      void presentation() {
        // call NodeManager presentation routine
        nodeManager.presentation();
      }
      
      // setup
      void setup() {
        // call NodeManager setup routine
        nodeManager.setup();
      }
      
      // loop
      void loop() {
        // call NodeManager loop routine
        nodeManager.loop();
      }
      
      #if NODEMANAGER_RECEIVE == ON
      // receive
      void receive(const MyMessage &message) {
        // call NodeManager receive routine
        nodeManager.receive(message);
      }
      #endif
      
      #if NODEMANAGER_TIME == ON
      // receiveTime
      void receiveTime(unsigned long ts) {
        // call NodeManager receiveTime routine
        nodeManager.receiveTime(ts);
      }
      #endif```
      posted in NodeManager
      RPunkt
      RPunkt
    • RE: NodeManager: hookon example needed

      @zboblamont My question is related to:
      https://github.com/mysensors/NodeManager
      This should be an easy way to get sensors running. It should be nice, if You have a battery- powered node as well.
      But for me it is not clear what to to, if You want some extra information to be transmitted.
      So I thought, that would be as easy as setting up a node.

      Only playing a little with:
      "NODEMANAGER_HOOKING OFF allow custom code to be hooked in the out of the box sensors"

      As far as I understand, Your way is the conventional approach.
      That will work for sure, but than power saving is an issue.
      I want that stuff be powered by solar or battery. So it should be very power efficient. That is the reason to try the NodeManager.

      posted in NodeManager
      RPunkt
      RPunkt
    • RE: NodeManager: hookon example needed

      @zboblamont Maybe I expressed myself not clearly. I want to make the calculations on the node (the arduino). The distance, that the sensor is measuring should be transmitted, the fill rate in percent should be transmitted as well and the "liter available" should be transmitted also.

      MyMessage msgdistance(CHILD_ID_DISTANCE, V_DISTANCE); //distance from sensor to watersurface
      MyMessage msgVolume(CHILD_ID_WATER, V_LEVEL); //water availble in liters
      MyMessage msgPercent(CHILD_ID_PERCENT, V_LEVEL); // water percentsge available

      Sorry, but I am just learning 😉

      posted in NodeManager
      RPunkt
      RPunkt
    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      @user2684 Thanks a lot. I should have tried this, before to post a question, but sometimes the brain is sticky.

      posted in NodeManager
      RPunkt
      RPunkt
    • NodeManager: hookon example needed

      Hi, I am just making my first steps with the NodeManager. To get a simple sensor running is very easy, but how do I get custom code on the sketch?
      I have a distance sensor, that is monitoring the water level in a water tank.
      But I want the node also to present the level in percent and volume in liter. The should be done by hookon- code and be presented as well.
      Can someone give me some hints or give an example?

      posted in NodeManager
      RPunkt
      RPunkt