Thanks for this cool project, wishing all a good 2018!
Best posts made by cdr
-
RE: Merry X-mas and Happy New 2018
-
RE: MYSBootloader 1.3.0-beta.3
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?
-
Request for help building a 433Mhz sender node
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); } }
-
RE: MyController - 0.0.3-Alpha2 pre-release - volunteers required to test
great to hear! Please let me test