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
C

cdr

@cdr
About
Posts
30
Topics
3
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • Merry X-mas and Happy New 2018
    C cdr

    Thanks for this cool project, wishing all a good 2018!

    Announcements

  • MYSBootloader 1.3.0-beta.3
    C cdr

    Hi Tekka,

    Happy 2017! Thanks for the update, can you upload a 8Mhz precompiled bootloader? (and update boards.txt) :)

    I'm curious is there a changelog since last version?

    Development

  • Request for help building a 433Mhz sender node
    C cdr

    Hi all,

    First of all my compliments for this fantastic framework, I'm new here and I was trying to improve the wheel many times but using "mysensors" feels like the right way to do things (tm).

    I like to connect different things to my domotica system, this time I'm trying to create a 433Mhz sender. I know there are some examples but they don't seem to fit my needs.

    What I like to do is create a general 433Mhz sender based on the NewRemoteTransmitter library, the parameters to the sendUnit function should come from the controller (mind the 24byte limit, parameters should include: address,unit and payload all encoded in a single VAR1 payload)

    I have some questions, perhaps one of you can help me?

    • Is VAR1 for the payload a good choice?
    • What is the best way to tranport a multi value payload? (address,unit,payload)
    • 433Mhz also supports DIM levels, ranged from 0 to 15, is there an easy method to scale this from 0 to 100?

    Many questions for a new user I know, hope to see some feedback :)

    current example code

    // 433Mhz transmitter for mysensors.org
    
    #include <MySensor.h>
    #include <SPI.h>
    #include <NewRemoteTransmitter.h>
    
    #define SN "RF433Sender"
    #define SV "1.0.2"
    #define TRANSMITTER_PIN 8
    #define RF433_CHILD_ID 1
    
    MySensor gw;
    MyMessage msg(RF433_CHILD_ID, V_VAR1);
    
    void setup()
    {
      // Attach method for incoming messages
      gw.begin(incomingMessage, AUTO, true);
    
      // Send the sketch version information to the gateway and Controller
      gw.sendSketchInfo(SN, SV);
    
      // Register all sensors to gw (they will be created as child devices)
      gw.present(RF433_CHILD_ID, S_IR);
    }
    
    void loop()
    {
      gw.process();
    }
    
    void incomingMessage(const MyMessage &message) {
      if (message.type == V_VAR1 ) {
        unsigned long address = 231337; // TODO hardcoded
        int unit = 0; // TODO hardcoded
        bool payload = message.getBool();
    
        /*
        Serial.println(address);
        Serial.println(unit);
        Serial.println(payload);
        */
    
        NewRemoteTransmitter transmitter(address, TRANSMITTER_PIN, 260, 3);
        transmitter.sendUnit(unit, payload ? 1 : 0);
      }
    }
    
    Troubleshooting

  • MyController - 0.0.3-Alpha2 pre-release - volunteers required to test
    C cdr

    great to hear! Please let me test :)

    MyController.org alpha pre-release mycontroller.org
  • Login

  • Don't have an account? Register

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