Skip to content

Development

Discuss Arduino programming, library tips, share example sketches and post your general programming questions.
1.5k Topics 13.5k Posts

Subcategories


  • 56 578
    56 Topics
    578 Posts
    HJ_SKH
    Hi2All! Surprising is here. After about 24hours I refresh HA and suddenly my motion sensor was integrated. There is also second entity > battery : 0 , have to look deeper into that for understanding. Need to change little in the sketch, because don't want every short time 'no movement' so only when there is motion and maybe once a hour indication sensor is alive. Meantime I found 3 other good threats: https://forum.mysensors.org/topic/11200/finally-progress-evidence-based-radio-testing-method-and-capacitors https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules/27 https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain Very usefull for me also finally progress because of lacking time in the past. Great jobs are done here! Thanks for this all of you guys or girls!
  • mr bart

    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • Contribution Issue with CLA and clahub.com

    10
    0 Votes
    10 Posts
    112 Views
    Michiel van der WulpM
    At "https://www.mysensors.org/download/contributing#coding-guidelines-core-library", under "Signing CLA", the link to clahub.com is since long dead. Maybe you can follow this example: https://github.com/chocolatey/choco/issues/2036 and replace with https://cla-assistant.io/ ?
  • RS485 transport ACK support

    10
    0 Votes
    10 Posts
    150 Views
    G
    I don't know how to add additional script to gateway sketch. Maybe someone else from MySensors community could help.
  • Message manipulation with set(void* payload, uint8_t length);

    5
    0 Votes
    5 Posts
    39 Views
    F
    I've asked, because I cannot test it right now and thought maybe someone has done it before. In this case I will test it myself next week. Right now I have some code that compiles, so maybe it will also work ;) Referring to multimessage feature, I don't see any application yet (maybe I need to understand it better). More important to me is auto ID assignment for RS485 which seems to be also finally merged. Great!
  • How to pass #define value to library

    10
    0 Votes
    10 Posts
    101 Views
    electrikE
    I think I understand what is happening. The compiler compiles all source files it finds in the folder. So when compiling the sketch itself everything goes fine I think. When the compiler comes across the MyTinySensors.cpp, it tries to compile that file also but can't find the define MY_NODE_ID. So I think you should move these files to subfolders (like done in the MySensors structure), so they won't be compiled individually anymore. Sounds plausible right?
  • Problem with MY_RF24_POWER_PIN

    4
    0 Votes
    4 Posts
    49 Views
    mfalkviddM
    @Takato-Umeda if the hardware reset button stops working, the only possible cause is hardware fault. No software can affect the hardware reset.
  • Discussion: Reliable delivery

    protocol
    54
    1 Votes
    54 Posts
    17k Views
    Imre TelekI
    @mfalkvidd: So you are right, requestEcho is the end-to-end echo parameter but end-to-end means something else what I thought. Meanwhile I tested the other direction: controller (node-red) ->mqtt -> gateway -> sensor_node message sending with ack turned on in mqtt message. I found that in this direction the sensor node sends back echo automatically to the controller through gateway and through mqtt. So it is real (full) end-to-end echo If the controller sending command to my-sensor node, but it is not that if the node sends data to controller (in that case gateway sends back echo to node). I haven't found a description in documentation about this behavior. Is it planned to add this feature to tell the gateway to enable pass through echo request to controller? So communication in both direction whould be symmetric. Thanks!
  • С# desktop application

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • RPi gateway options

    12
    0 Votes
    12 Posts
    68 Views
    P
    OK, now I understand what you meant. And I was talking about immediately building an all-in-one gateway with W5100, RS485, NRF24 and RFM69. That would require 2 SPIs and 2 USARTs. Taking that into account the ATmega324PB would be a perfect match. And, indeed, I wanted to build it step-by-step and only wire the according MCU pins to pinheads to extend it later. The big downside of the ATmega324PB is the 5V voltage level @ 16MHz and the limited memory. I compiled the sketch from the all-in-one gateway and came up with about 95% flash usage. So there's not much space left for the future. And I think 16MHz would make sense for the gateway and 8MHz could be a bit slow. 12MHz@5V would be in spec, but 12MHz is quite uncommon.
  • Sleep3 class to be used with many interrupts

    3
    1 Votes
    3 Posts
    35 Views
    C
    @Nigel31 Thank you, I will try to write some code and test it. It can take a few weeks as I have to do it in my spare time (like most of us).
  • HELP WITH MYSENSOR PROJECT

    7
    0 Votes
    7 Posts
    88 Views
    zboblamontZ
    @skywatch My apologies for derailing the topic, yep, got two of the boiler feed and return also, and tapped into the trigger wire to notify boiler ON/OFF so Domoticz tracks the run time per day. 12 degrees is recommended across the radiator but it's not quite so simple, it also matters WHEN you get that differential - That's where the portable node came in. Plastic pipe clips held sensors on the inlet and outlet pipes of the rad, the downstairs 6 all had a 11-12c differential at around 16/17 minutes, but no way would the upstairs 3 get there before the boiler cycle ended (room thermostat), which I put down to longer pipe runs. I increase the rate on the thermo-valve (pressure agnostic) to get the same heat on the return at ca 18 minutes. Rinse/repeat the remaining 2, eh voila. Balanced, a nice little peak on the return flow temperature at the boiler, reduced gas bills and every room +/- 0.5 of it's set point. Actual differential of these 3 upstairs radiators will be WAY under 12 for a constant feed, but for a heat cycle of 19-25 minutes depending on outside temperature it's perfectly balanced before the cycle ends.
  • Question about security signing, and when it is "applied"

    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • IEC 62056-21 Energy meter

    19
    0 Votes
    19 Posts
    7k Views
    D
    @kes Here is the schematic [image: IEC-62056-probe.png]
  • Combining a motion sensor with an led on one node

    6
    1 Votes
    6 Posts
    50 Views
    T
    @rvendrame Ah, I see. Yeah this node will be plugged in so I'm not worried there. The light still isn't working correctly yet.
  • PMS7003 peaks every 90 seconds

    2
    0 Votes
    2 Posts
    25 Views
    Nca78N
    Hello @troost, I have no time to investigate your case (and without code, it would anyway be impossible), but maybe you can try my (basic) library for PM sensors here: https://github.com/Nca78/NcaPMSensorLight to see if you have a similar result with it.
  • How ethernet gateway code can check if is connected with controller?

    3
    0 Votes
    3 Posts
    56 Views
    M
    Answering one of my own questions. On ethernet gateway send() may return true when there is no connected controller, even when there is no ethernet cable plugged in. :/
  • Detecting a sudden change

    4
    0 Votes
    4 Posts
    59 Views
    @Yveaux Thanks! Nice graph. I will do something similar in Grafana. I think my MySensors device should also report every minute, perhaps using the highest sampled value. All values are sent to MQTT by my gateway and my Home Automation will store the time value pairs in influxdb. Right now I'm waiting for the hardware to arrive... :grinning:
  • pH mètre connected to domoticz

    6
    0 Votes
    6 Posts
    46 Views
    D
    @nagelc Thank you for your example. I think that i have to customize void setup() ?
  • 0 Votes
    1 Posts
    19 Views
    No one has replied

6

Online

11.7k

Users

11.2k

Topics

113.0k

Posts