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
R

Robert77

@Robert77
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Jeedom and RGB control
    R Robert77

    Hello to all,

    I'm building an actuator with the RGB type to control the color of my RGB dot in the garden.
    Hardware is not a big trouble, I work with an ARDUINO MEGA2560 and the communication is good
    between MySensors and Jeedom.

    The question is about the software, for the first step, i just want to send color from Jeedom to my node
    and do some debug via the Serial Monitor. This part is working from Jeedom to the Node, i can see the payload
    in String format #FFFFFF (for white), then the sensor is sending back the info because ack is asked by jeedom, the payload has the good value #FFFFFF (or any other values) but Jeedom is not reconising the #FFFFFF value.

    Now if I send manualy info in V_RVB format, i need to send it without # to allow jeedom to understand.

    Here is my simple code:

    #define MY_DEBUG
    #define MY_RADIO_RFM69
    #define MY_RFM69_NEW_DRIVER 
    
    #define MY_RFM69_CS_PIN   53//10 // NSS. Use MY_RFM69_CS_PIN for the development branch.
    #define MY_RFM69_IRQ_PIN  21
    #define MY_RFM69_IRQ_NUM  2
    
    #define MY_NODE_ID  101
    
    #include <MySensors.h>
    
    
    #define CHILD_SET_RGB_COLOR   0
    
    
    ///////////////////////
    void setup() 
    {
      pinMode(LED_BUILTIN, OUTPUT);
    }
    ///////////////////////
    void presentation()
    {
        present( CHILD_SET_RGB_COLOR , S_RGB_LIGHT  , "Set color"       );
        sendSketchInfo("Light Actuator", "1.0");
    }
    ////////////////////////
    void loop() 
    {
      digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));    // turn the LED off by making the voltage LOW
      delay(500);  
      
    }
    /////////////////////////
    void receive(const MyMessage &message)
    {
      Serial.print("  Reception message ID : ");
      Serial.print(message.sensor);
      Serial.print("  type : ");
      Serial.print(message.type);
      Serial.print("  paylod : ");
      Serial.println(message.getString());
    }
    
    

    If someone has any kind of idea, it would be super, thanks for your help

    Jeedom

  • Integration of pinChange INT
    R Robert77

    ok, thanks for the idea, i will proceed as it.

    Development

  • Integration of pinChange INT
    R Robert77

    Hello all,

    first of all, I just want thank you about this great job, I use MySensor library for around 1 year for my homeautomation sensor and i never get trouble.

    Now i'm building a door/window opening sensor and for some routing reason i need to use the pinChange interrupt to wakeup the library. I have succeed to do this by modifying a bit MyHwAVR.cpp file but why not including this possibilities inside the project ?

    Best regards

    Development
  • Login

  • Don't have an account? Register

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