Thanks for this cool project, wishing all a good 2018!
cdr
@cdr
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
Latest posts made by cdr
-
Need help with NODEMANAGER_CONDITIONAL_REPORT
Hi all,
Is there anyone that can post an example on how to use the conditional report function in Nodemanager (1.8)?
I want to create a sht21 temperature sensor that reports only when the temperature is changed by 1.5 degrees.
Any help welcome
-
RE: MYSBootloader 1.3.0-beta.3
@tsjoender said in MYSBootloader 1.3.0-beta.3:
@cdr @Henry I ran into the same issue. Turned out to be a syntax issue in the boards.txt file. If you change:
MYSBL.menu.frequency.MYSBL16.f_cpu=16000000L
into
MYSBL.menu.frequency.MYSBL16.build.f_cpu=16000000L
Then it works again. Adding build. needs to be done for the other menu entries as well.
thanks a lot!
-
RE: MYSBootloader 1.3.0-beta.3
Hi,
Anyone seen this error on latest 1.3 release? It seems a define is not done for F_CPU, what am I missing here?
Generating function prototypes... In file included from C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors/MySensors.h:371:0, from C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors\examples\GatewayW5100MQTTClient\GatewayW5100MQTTClient.ino:138: C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors/core/MyTransport.cpp:777:42: error: operator '>' has no left operand #if defined(MY_GATEWAY_FEATURE) && (F_CPU>16000000) ^ In file included from C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors/MySensors.h:396:0, from C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors\examples\GatewayW5100MQTTClient\GatewayW5100MQTTClient.ino:138: C:\Program Files (x86)\Arduino\portable\sketchbook\libraries\MySensors/core/MySensorsCore.cpp:479:11: error: operator '>' has no left operand #if (F_CPU>16000000) ^ exit status 1 Error compiling for board ATmega328 with MYSBootloader 1.3.0.
Regards
-
RE: Merry X-mas and Happy New 2018
Thanks for this cool project, wishing all a good 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?
-
Measure a node's NRF signal or distance value
Hi All,
I was wondering if there is an easy way to ask for the distance or signal level of an NRF node.
I know there is I_DEBUG, but it seems rather new and I haven't found any docs on that topic.
Anyone?
Regards,
-
RE: 💬 FOTA (Wireless Programming)
Thanks for the explanation, first try didn't work so I suspected the fuses, but turned out to be a voltage issue.
-
RE: 💬 FOTA (Wireless Programming)
For some reason I can't set the extended fuse to 0x06, it always reverts to 0xFE;
avrdude.exe: verifying ...
avrdude.exe: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xfe instead of 0x06 (double check with your datasheet first).
avrdude.exe: 1 bytes of efuse verifiedAnyone knows why?
-
RE: Windows GUI/Controller for MySensors
@MarkV you might want to check your "AppData" folder, I noticed the same behaviour and had to change boards.txt in this location.
C:\Users{{user}}\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10
GL