Navigation

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

    Woodside

    @Woodside

    Retired Electronic Engineer

    2
    Reputation
    18
    Posts
    505
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Loughborough, UK

    Woodside Follow

    Best posts made by Woodside

    • [Solved] Support for S_MULTIMETER and V_VOLTAGE in Vera

      Can anyone confirm if S_MULTIMETER and V_VOLTAGE are supported in Vera?

      L_Arduino.lua indicates it is supported

      Whereas Selecting a Controller, indicates it is not supported

      Using

      MyMessage msgVolt(CHILD_ID_VOLTAGE, V_VOLTAGE);
      

      and

      present(CHILD_ID_VOLTAGE, S_MULTIMETER);
      

      The Multimeter device is created
      0_1497189592394_Multimeter blank.JPG
      but the values are blank.

      The Vera log shows the 'Voltage' value is being sent with the correct value

      50      06/11/17 14:25:48.875   luup_log:78: Arduino: Set variable: 1;0;1;0;38;4.79 <0x2ebbe680>
      50      06/11/17 14:25:48.876   luup_log:78: Arduino: Setting variable 'Voltage' to value '4.79' <0x2ebbe680>
      50      06/11/17 14:25:48.876   luup_log:78: Arduino: urn:micasaverde-com:serviceId:EnergyMetering1,Voltage, 4.79, 87 <0x2ebbe680>
      

      Is it possible to get this to appear in the Multimeter device?

      posted in Vera
      Woodside
      Woodside
    • RE: Water flow meter for hozelock hose pipe.

      I came across this recently that may be suitable, with appropriate hozelock adapters?

      posted in General Discussion
      Woodside
      Woodside

    Latest posts made by Woodside

    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 Thankyou

      posted in OpenHardware.io
      Woodside
      Woodside
    • RE: 💬 Easy/Newbie PCB for MySensors

      @sundberg84 The only file type I can find on openhardware.io for the schematic is a pdf. DIPTrace is a schematic and PCB layout tool and uses .sch format for the schematic files. It cannot import a schematic layout from a pdf.

      I was hoping to use DIPTrace to update the schematic for my projects using the EasyPCB and then transfer the result onto the board.

      posted in OpenHardware.io
      Woodside
      Woodside
    • RE: 💬 Easy/Newbie PCB for MySensors

      Is there a .sch version of the schematic that I can import into Diptrace? I can only find a .pdf

      posted in OpenHardware.io
      Woodside
      Woodside
    • Nano losing program code

      I have an irrigation system with an arduino nano (clone) driving 4 relays that control the irrigation valves. This has been working the vast majority of the time for 2 years.

      However once every few weeks, the nano loses its program code.

      The nano and relays are mounted outside in a waterproof box. They are mains powered and turned on at the same time as the water butt pump. If I initiate a valve opening within sight of the gateway (indoors) I can tell the relay node is not working as there is no initial handshake visible on the gateway leds.

      When I go to reload the program into the relay node, the red onboard led is flashing every second as if it is running the 'blink' code. There is nothing being output from the serial monitor.

      Controller: Vera 3
      MySensors Lib version: 2.3.0

      *******************************
       *
       * REVISION HISTORY
       * Version 1.0 - Henrik Ekblad Relays remembered previous state at start up
       * Version 1.2 - M Young Relays reset to off at startup
       * Update latest version of software in variale 'VERSION' below
       *
       * DESCRIPTION
       * Example sketch showing how to control physical relays.
       * http://www.mysensors.org/build/relay
       */
      
      //Set node id manually out of the range of the soil moisture sensors
      #define MY_NODE_ID 100
      
      // Enable debug prints to serial monitor
      //#define MY_DEBUG
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Enable repeater functionality for this node
      #define MY_REPEATER_FEATURE
      
      #include <MySensors.h>
      
      #define RELAY_1  3  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
      #define NUMBER_OF_RELAYS 4 // Total number of attached relays
      #define RELAY_ON 0  // GPIO value to write to turn on attached relay
      #define RELAY_OFF 1 // GPIO value to write to turn off attached relay
      #define VERSION "V1.3"
      
      
      void before()
      {
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Then set relay pins in output mode
          pinMode(pin, OUTPUT);
          // Set relay to last known state (using eeprom storage)
          //digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF);
          //Set relay to always be off at startup
          digitalWrite(pin, RELAY_OFF);
          }
        Serial.println(F("Relay Actuator - "VERSION));//F means use program memory, dont copy to RAM  
      }
      
      void setup()
      {
      
      }
      
      void presentation()
      {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Relay Actuator", VERSION);
      
        for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) {
          // Register all sensors to gw (they will be created as child devices)
          present(sensor, S_BINARY);
        }
      }
      
      
      void loop()
      {
      
      }
      
      void receive(const MyMessage &message)
      {
        // We only expect one type of message from controller. But we better check anyway.
        if (message.type==V_STATUS) {
          // Change relay state
          digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
          // Store state in eeprom
          saveState(message.sensor, message.getBool());
          // Write some debug info
          Serial.print("Incoming change for sensor:");
          Serial.print(message.sensor);
          Serial.print(", New status: ");
          Serial.println(message.getBool());
        }
      }
      
      

      Inside Relay enclosure

      Why would the nano lose its code?

      Is there any method of diagnosing the cause?

      posted in Troubleshooting
      Woodside
      Woodside
    • RE: Water flow meter for hozelock hose pipe.

      I came across this recently that may be suitable, with appropriate hozelock adapters?

      posted in General Discussion
      Woodside
      Woodside
    • RE: Child X not present in node X

      I had exactly the same issue on Vera after upgrading my Gateway to 2.3.0.

      After upgrading the Gateway I had to add each node back individually. Four of my nodes had manual Node_IDs assigned and one had auto Node_ID. As it happened I added Nodes 1 and 2 first which were manual and then added the auto node. It automatically assigned node 3 as the next available node.

      I then added node 4 (manual) successfully but Node 3 would only add one of its child nodes.

      The problem was that the auto node had added Child ids of 1 to 4. When I added the manual node 3, it correctly added child id 0 but could not add the second child as child 1 had already been allocated by the auto node.

      I couldn't find any error messages to indicate the problem.

      I eventually found this LUA code which showed all the devices with the node and child ids that had been assigned.

      I deleted the auto node, changed the sketch to set the node manually and re-added it. Deleted node 3 and re-added and everything was fine.

      I realise this was for a Vera system, but the real problem was the order of adding nodes and probably more importantly mixing nodes with manual and auto node assignments in the same mesh.

      I will be using manual node assignment for all nodes going forward!

      posted in OpenHAB
      Woodside
      Woodside
    • RE: What do the Error led flashes mean?

      Thanks both.

      I will try the gateway with version 2.2.0 first.

      posted in Hardware
      Woodside
      Woodside
    • RE: What do the Error led flashes mean?

      @Yveaux That is useful information, thank you.

      Rather than trying to count the flashes to work out what is going on, can I output the error message(s) to the serial monitor?

      @gohan Attached is the serial log from startup and some successful commands from Vera to turn the relays on and off. I cannot see any errors? When the Gateway starts up there are about 29 flashes of the error led (difficult to count exactly).

      For a successful relay on or off there are two error flashes. According to the MyIndication.h extract from @Yveaux, corresponds to 'Failed to transmit message'. But the relay switches correctly and there are no transmit errors in the serial log.😕

      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSF:WUR:MS=0
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
      IP: 192.168.0.40
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
      0;255;3;0;9;TSF:MSG:READ,3-3-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:BC
      0;255;3;0;9;TSF:MSG:FPAR REQ,ID=3
      0;255;3;0;9;TSF:CKU:OK,FCTRL
      0;255;3;0;9;TSF:MSG:GWL OK
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:PINGED,ID=3,HP=1
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=0,t=18,pt=0,l=5,sg=0:2.1.1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=11,pt=0,l=5,sg=0:Relay
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.1
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=1,c=0,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=0,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=0,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=0,t=3,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;Eth: connect
      0;255;3;0;9;Eth: 3;4;1;1;2;1
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:ACK
      0;255;3;0;9;Eth: 3;4;1;1;2;0
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=4,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=4,c=1,t=2,pt=0,l=1,sg=0:0
      0;255;3;0;9;TSF:MSG:ACK
      0;255;3;0;9;Eth: 3;3;1;1;2;1
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:ACK
      0;255;3;0;9;Eth: 3;3;1;1;2;0
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=3,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=3,c=1,t=2,pt=0,l=1,sg=0:0
      0;255;3;0;9;TSF:MSG:ACK
      0;255;3;0;9;Eth: 3;2;1;1;2;1
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:ACK
      0;255;3;0;9;Eth: 3;2;1;1;2;0
      0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;Eth: 
      0;255;3;0;9;TSF:MSG:READ,3-3-0,s=2,c=1,t=2,pt=0,l=1,sg=0:0
      0;255;3;0;9;TSF:MSG:ACK```
      posted in Hardware
      Woodside
      Woodside
    • RE: What do the Error led flashes mean?

      Has nobody implemented the error LED and wondered what the flashes mean?😟

      posted in Hardware
      Woodside
      Woodside
    • What do the Error led flashes mean?

      I have a gateway talking successfully to a four relay board and a soil moisture sensor. The gateway is connected to a Vera controller via ethernet.

      Everything is working. I get voltage levels and moisture percentage from the moisture sensor displayed on the Vera dashboard. I can also switch the relays on and off from the Vera dashboard.

      I have connected the status leds to the gateway. The transmit and receive seem to flash at the appropriate time.

      However the error led also flashes each time there is a transmit/receive. The number of flashes varies depending on the activity from a couple of flashes to what seems about 20. It flashes too quickly to accurately count.

      There are no error message in the gateway serial monitor.

      Is this normal behavior?
      Do the number of flashes mean anything
      If everything is working what is the worth of the error led?

      posted in Hardware
      Woodside
      Woodside