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
M

MarkV

@MarkV
About
Posts
51
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Home Gas measuring..
    M MarkV

    Hello,

    I've made a circuit to readout my home gas usage.
    I took the water usage sketch from the mysensors site and changed S_WATER into S_GAS.

    The readout on my serial port of the arduino is good, i also see this in Domoticz, but some parts don't look fermiliar or in good order, and i like to add something but don't know how..

    This is the code:

    
    /**
     * 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-2015 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.
     *
     *******************************
     *
     * REVISION HISTORY
     * Version 1.0 - Mark Verstappen
     * 
     * DESCRIPTION
     * Use this sensor to measure volume and flow of your house gasmeter.
     * You need to set the correct pulsefactor of your meter (pulses per m3).
     * The sensor starts by fetching current volume reading from gateway (VAR 1).
     * Reports both volume and flow back to gateway.
     *
     * Unfortunately millis() won't increment when the Arduino is in 
     * sleepmode. So we cannot make this sensor sleep if we also want  
     * to calculate/report flow.
     * http://www.mysensors.org/build/pulse_water
     */
    
    // Enable debug prints to serial monitor
    #define MY_DEBUG 
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    
    #include <Time.h>
    #include <TimeLib.h>
    
    #include <SPI.h>
    #include <MySensor.h>  
    
    #define DIGITAL_INPUT_SENSOR 3                  // The digital input you attached your sensor.  (Only 2 and 3 generates interrupt!)
    #define SENSOR_INTERRUPT DIGITAL_INPUT_SENSOR-2        // Usually the interrupt = pin -2 (on uno/nano anyway)
    
    #define PULSE_FACTOR 100                       // Nummber of blinks per m3 of your meter (One rotation/liter)
    
    #define SLEEP_MODE false                        // flowvalue can only be reported when sleep mode is false.
    
    #define MAX_FLOW 0,1                             // Max flow (l/min) value to report. This filters outliers.
    
    #define CHILD_ID 1                              // Id of the sensor child
    
    unsigned long SEND_FREQUENCY = 30000;           // Minimum time between send (in milliseconds). We don't want to spam the gateway.
    
    MyMessage flowMsg(CHILD_ID,V_FLOW);
    MyMessage volumeMsg(CHILD_ID,V_VOLUME);
    MyMessage lastCounterMsg(CHILD_ID,V_VAR1);
    
    double ppl = ((double)PULSE_FACTOR)/1000;        // Pulses per liter
    
    volatile unsigned long pulseCount = 0;   
    volatile unsigned long lastBlink = 0;
    volatile double flow = 0;  
    boolean pcReceived = false;
    unsigned long oldPulseCount = 0;                 
    unsigned long newBlink = 0;   
    double oldflow = 0;
    double volume =0;                     
    double oldvolume =3987.67;                              // Oude meterstand
    unsigned long lastSend =0;
    unsigned long lastPulse =0;
    
    void setup()  
    {  
      // initialize our digital pins internal pullup resistor so one pulse switches from high to low (less distortion) 
      pinMode(DIGITAL_INPUT_SENSOR, INPUT_PULLUP);
      
      pulseCount = oldPulseCount = 0;
    
      // Fetch last known pulse count value from gw
      request(CHILD_ID, V_VAR1);
    
      lastSend = lastPulse = millis();
    
      attachInterrupt(SENSOR_INTERRUPT, onPulse, FALLING);
    }
    
    void presentation()  {
      // Send the sketch version information to the gateway and Controller
      sendSketchInfo("Gas Meter", "1.0");
    
      // Register this device as Gasflow sensor
      present(CHILD_ID, S_GAS);       
    }
    
    void loop()     
    { 
      unsigned long currentTime = millis();
          
      // Only send values at a maximum frequency or woken up from sleep
      if (SLEEP_MODE || (currentTime - lastSend > SEND_FREQUENCY))
      {
        lastSend=currentTime;
        
        Serial.println("--------- Debug void loop ------------");
        
        if (!pcReceived) {
          //Last Pulsecount not yet received from controller, request it again
          request(CHILD_ID, V_VAR1);
          return;
        }
    
        if (!SLEEP_MODE && flow != oldflow) {
          oldflow = flow;
    
          Serial.print("m3/min:");
          Serial.println(flow);
    
          // Check that we dont get unresonable large flow value. 
          // could hapen when long wraps or false interrupt triggered
          if (flow<((unsigned long)MAX_FLOW)) {
            send(flowMsg.set(flow, 2));                   // Send flow value to gw
          }  
        }
      
        // No Pulse count received in 2min 
        if(currentTime - lastPulse > 120000){
          flow = 0;
        } 
    
        // Pulse count has changed
        if ((pulseCount != oldPulseCount)||(!SLEEP_MODE)) {
          oldPulseCount = pulseCount;
          
          Serial.println("flow:   ");
          Serial.print(flow);
          
    //      Serial.println(Time.now()); 
          Serial.print("pulsecount:   ");
          Serial.println(pulseCount);
    
          send(lastCounterMsg.set(pulseCount));                  // Send  pulsecount value to gw in VAR1
    
          double volume = ((double)pulseCount/((double)PULSE_FACTOR));     
          if ((volume != oldvolume)||(!SLEEP_MODE)) {
            oldvolume = volume;
    
            Serial.print("volume:   ");
            Serial.println(volume, 3);
            Serial.println("---------------------------------------------------");
            
            send(volumeMsg.set(volume, 3));               // Send volume value to gw
          } 
        }
      }
      if (SLEEP_MODE) {
        sleep(SEND_FREQUENCY);
      }
    }
    
    void receive(const MyMessage &message) {
      if (message.type==V_VAR1) {
        unsigned long gwPulseCount=message.getULong();
        pulseCount += gwPulseCount;
        flow=oldflow=0;
        Serial.println("--------------- Debug void receive ---------------"); 
        Serial.print("Received last pulse count from gw:   ");
        Serial.println(pulseCount);
        Serial.println("---------------------------------------------------");
        pcReceived = true;
      }
    }
    
    void onPulse()     
    {
      if (!SLEEP_MODE)
      {
        unsigned long newBlink = micros();   
        unsigned long interval = newBlink-lastBlink;
        
        Serial.println("--------------- Debug void onPulse ---------------"); 
    //    Serial.println("newblink:   "); 
    //    Serial.print(newBlink);
    //    Serial.println("interval:   "); 
    //    Serial.print(interval);
    //    Serial.println();  
        
        if (interval!=0)
        {
          lastPulse = millis();
          if (interval<500000L) {         
            // Sometimes we get interrupt on RISING,  500000 = 0.5sek debounce ( max 120 l/min)
            return;   
          }
          flow = (60000000.0 /interval) / ppl;
          Serial.println("flow = (60000000.0 /interval) / ppl");
          Serial.println(flow);
          Serial.println("---------------------------------------------------");
        }
        lastBlink = newBlink;
      }
      pulseCount++; 
    }
    

    Domoticz shows this:

    0_1467033253720_upload-2b3c3885-4357-4dce-8133-6d11a40cbc64

    The sensor registers each cycle.

    • Pulse counts are 134 wich corrosponds to the 1.340 volume.
      1m3 = 100 counts. (1 count is 0.01m3 )

    • What does the 0.230 value represent ??

    • The real count is more, is there a way to incorporate a option, to send a
      command through the serial console, wich updates the counter?
      For example when in a couple of months something goes wrong, you could update
      the counter with the correct value without, changing the compleet sketch, and there
      bij stopping the arduino etc.
      So some kind of counter update (Adjust) command through the serial console.

    • The flow isn't updated instantly, but each five minuts?
      I want it to be triggerd when the flow starts, measure, remind all data and when the
      flow stops report al the data at once.

    • Mysensors uses V_VOLUME and V_FLOW just as bij S_WATER therefore it says
      waterflow. So how could you change the type of the sensor (both aren't correct)?

    The update (adjust) option would be nice not only for gas measuring but als for water and electricity. (If you want to do it now, you have to dive into the db of domoticz)

    Development

  • Local sensor (no radio)
    M MarkV

    @hek
    And what or how do you register this sensor in domoticz?

    Development

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    @AWI
    Goodevening
    Oh better, we definitie have to de that. When does it suit you?

    Grtz

    My Project

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    @AWI
    It the serial output from the gateway arduino, wich i've got connected through usb.
    I don't have a rotaryswitch connected and yesterday evening i connected a I2c Display just to see if something changes on that.

    I noticed one thin, when i check the serial output, the timer on the display is reset. Further more when i stop the serial readout, the counter also stops, like if the hole thing go's into a idle or stop.

    I've uncommented the debug informatie wich i could find:

    // Handle incoming messages from the MySensors Gateway
    void receive(const MyMessage &message) {  // Expect few types of messages from controller, V_VAR1 for messages
      if (message.type==V_TEXT) {
        // if message comes in, update the kWH reading for meter with value since last update
        // Write some debug info
        Serial.print("Last reading for sensor: ");
        Serial.print(message.sensor);                
        Serial.print(", Message: ");
        Serial.println(message.getString());
        if (message.sensor == LCD1_CHILD ) {
          strcpy(lastLCD1, message.getString());  // read payload in LCD string
        }
      }
    }
    

    Were could i read this debug information?
    At this moment i got my arduino hooked up through usb to my rasberry to see if it keeps sending information.

    I also changed all the cables to the meters.

    This is how one meter looks like:
    0_1462289685255_upload-a785d675-02ea-45c7-9888-2616d6a5c4f4

    And a other one:
    0_1462289751196_upload-ac4e8673-e392-43ac-aeea-1be31416479a

    All the meters are showing also strange values on the axis.

    Sorry for being such a noob at this.. :-S

    My Project

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    @AWI
    How is it that i get the readings like above? And after a while the sensor also stops with sending data, last connection stays on that time and date.

    I've uploaded your github sketch and done a serial readout of the measuring arduino and that one functions proberbly. No faulty low voltage errors etc.

    My Project

  • bootloader
    M MarkV

    I've got it duss far.. Stupid me, i've forgot to change the reset pin from 10 to 53.
    After that it says ready with uploading the bootloader..
    Now i'm going to test it to see if it worked...

    Development bootloader firmware otg

  • bootloader
    M MarkV

    @dynamite
    tryed it and got a other error report:

    avrdude: Expected signature for ATmega328P is 1E 95 0F
             Double check chip, or use -F to override this check.
    Verkeerde microcontroller gevonden. Hebt u het correcte board geselecteerd in het menu Hulpmiddelen > Board?
    

    What now?

    Development bootloader firmware otg

  • bootloader
    M MarkV

    @dynamite
    Oh thanks, will do that. .
    But why does it giveel this message.. i wouldn't link this message to a failty powernapp supply..

    Development bootloader firmware otg

  • bootloader
    M MarkV

    @tekka
    Thanks for the replay.
    I ment i trying to load the boatloader into a arduino pro mini (clone) through a Arduino (as ISP) Mega 2560.
    When i try to upload the boatloader i'm getting this error:

    avrdude: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.
    
    Fout bij het branden van de bootloader.
    

    What's wrong and what should i change?

    Development bootloader firmware otg

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    Super.
    I've updated everything and it's up and running.
    But my Master arduino (UNO clone) gives this readout on the USB port:

    0;255;3;0;14;Gateway startup complete.
    0;255;3;0;11;AWI-12ChannelPulse
    0;255;3;0;12;2.0
    0;0;0;0;13;Groep 1
    0;1;0;0;13;Groep 2
    0;2;0;0;13;Groep 3
    0;3;0;0;13;Groep 4
    0;4;0;0;13;Groep 5
    0;5;0;0;13;Groep 6
    0;20;0;0;36;Usage meter LCD
    0;20;1;0;47;-
    0;255;3;0;1;
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    0;255;3;0;1;
    0;1;1;0;17;0
    0;1;1;0;18;-0.001
    0;255;3;0;1;
    0;2;1;0;17;0
    0;2;1;0;18;-0.001
    0;255;3;0;1;
    0;3;1;0;17;0
    0;3;1;0;18;-0.001
    0;255;3;0;1;
    0;4;1;0;17;0
    0;4;1;0;18;-0.001
    0;20;2;0;47;
    0;255;3;0;1;
    0;5;1;0;17;0
    0;5;1;0;18;-0.001
    0;255;3;0;1;
    0;0;1;0;17;0
    0;0;1;0;18;-0.001
    

    Is this correct?
    Because Domoticz doesn't change the values.
    Also this is not the format, wich is past through in the JSON code from the slave to master duino??

    My Project

  • bootloader
    M MarkV

    @tekka
    Goodmorning i've got a question:
    Isn't it possible to write a Boards.txt for al boards? or does someone have this allready.
    I tried to load the bootloader in a Arduino Uno (CH340 interface) but this didn't function.
    It would be nice to load it in:
    Arduino Mega 2560
    Arduino Uno (official)
    Arduino Uno (CH340) chinees clone
    Arduino mini
    Arduino nano
    Arduino micro
    etc.

    Development bootloader firmware otg

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    @AWI
    Goodmorning,
    I've got a question, are you planning to re-write the script for the main and slave Arduino to the new MySensors 2.0 structuur?

    I've also tryed to look on github if there's a page from you, but didn't find it...

    My Project

  • Windows GUI/Controller for MySensors
    M MarkV

    @tekka

    I'Ve done the steps witch you describe but it doesn't show up in the ArduinoIDE.
    Step 1, added the lines to boards.txt
    Step 2, made a directory \MySensors under
    D:\Program Files\Arduino\hardware\arduino\avr\bootloaders
    Step 3, copied the .hex file into D:\Program Files\Arduino\hardware\arduino\avr\bootloaders\MySensors

    What did i do wrong???

    Controllers myscontroller mysbootloader

  • only one arduino to domoticz without radio
    M MarkV

    @Roland
    And does it work?

    Development

  • The use of local sensor on a arduino board directly connected through usb without RF, but light up as mysensors??
    M MarkV

    Yep except the rf24 part.
    I''m looking for a way to connect the sensor's to the arduino and directly connect it through usb to my rasberrypi.

    Feature Requests

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    Last weeks i'm trying to get it to work but without luck. Could you give a manual on how to get it working with json? What should we do? And how? On my rasberry, on the arduino and in domoticz??

    My Project

  • RS485/RS232/Serial transport class for mysensors.org
    M MarkV

    @LeoDesigner

    I'm searching for a usb transport class, could i use this??

    I'd like to connect my arduino (with sensors/actuators connected to it) to my rasberrypi through usb, without the wireless part, but still see them as mysensors sensors.

    Is this possible or could someone make a transport class for it???

    Development rs485 serial rs485

  • The use of local sensor on a arduino board directly connected through usb without RF, but light up as mysensors??
    M MarkV

    Integration of a direct connected (through usb) arduino board without RF, only use the i/o ports.
    But they should light up in the mysensor network.

    Feature Requests

  • Power/ Usage sensor - multi channel - local display
    M MarkV

    I meen the master sketch like written above.

    I'd want to build a gateway but without the wireless RF part, just connect the master arduino directly through usb to the RasberryPi and readout the measurements.

    So in general:

    Kwh Meters -- cable --> Slave arduino <-- serial --> Master arduino <-- USB --> RasberryPi

    My Project

  • How can i connect a arduino with sensors, but without the rf receiver, but still see the sensors as MySensors????
    M MarkV

    My sensor board is near my rasberryPi, so i want to connect it directly through usb on my Pi and readout the sensors.
    How can i do that and what should i change in the sketch???

    Hardware
  • Login

  • Don't have an account? Register

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