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!
  • relay actuator ...

    relay
    3
    0 Votes
    3 Posts
    2k Views
    D
    I have it ,look to my project.. project from example directory working .. but if power on node then register to gateway but not send actual state of relay .. I do it ..
  • Capacitive sensor w/ transceiver

    arduino capacitive touc nrf24l01+
    4
    0 Votes
    4 Posts
    2k Views
    C
    @BulldogLowell I just realized you hyperlinked the command. Disregard my previous message.
  • PIR motion sensor that sends cloud notifications via wifi

    wifi arduino motion
    3
    0 Votes
    3 Posts
    3k Views
    epierreE
    a spark core wouldnbe the best in this case
  • Combine Gateway and Sensor

    3
    0 Votes
    3 Posts
    2k Views
    O
    Thanks but that thread ended on the difficult part: "please, help to send the presentation string when inclusion mode has been triggered" Anyone have a idea about this? It would be easier to include one more Arduino and a radio but the hardware and programming is one of the fun part with MySensors Regards
  • help to manual sed sensor ID ..

    serialgateway serial protocol
    14
    0 Votes
    14 Posts
    9k Views
    D
    Hi all... This is important for all ... Hek I find problem with manual node ID setting .. Your code is optimized for ATmega328P 16Mhz - 115200 serial speed .. and here is problem ... big problem !! 16MHz -115200 is in normal speed : 3.549% ERROR , and in double speed : 2.124% ERROR with no calibrated 8Mhz internal RC oscilator is normal speed : 8.507% ERROR and in double speed : 3.549% then in fact .. no problem to send data from MCU to PC .. problem send data from PC to MCU .. solution : for sensor node or repeater .. we don't need received data from UART .. then can use 115200 with internal RC oscilator .. for serial gateway is need to send and received data from to MCU with controller .. then use scrystal 16Mhz (as orginal code ) or use better crystall : 7.3728Mhz , 11.0592Mhz , 14.7456Mhz ... with this crystall is ERROR 0% ... or use lower speed for serial gateway for example 38400bps ... sorry for all .. but I'm not thinking about it .. and problem was all time in hardware .. interesting is that if generate own bootloader for my node then first time I set 115200 bps speed and my software show error more then 8.5% ERROR ..and I must change speed to 38400 ... now it's working .. if node send request for new ID then I send it regards.
  • Detect who wake up sensor .. INT0,INT1 or timeout..

    4
    0 Votes
    4 Posts
    2k Views
    hekH
    yep! :thumbsup:
  • Serial Gateway halt!

    12
    0 Votes
    12 Posts
    3k Views
    D
    Hi. I do same what you ... but still not working ... BUt then I use different gateway PCB board .. and right now working .. may be hardware problem.. OK.. I will test it .. and will see.. best regards..
  • adding to actuators

    2
    0 Votes
    2 Posts
    1k Views
    freerpgF
    http://www.hobbytronics.co.uk/arduino-tutorial6-rotary-encoder Want to rip this project apart and add to the led dimmer. Programming is just not my forte
  • Binary / Temp sensor help - sleep time

    temperature sleep time binary
    3
    0 Votes
    3 Posts
    3k Views
    N
    @BulldogLowell thank you, I uploaded it and so far it works fine.
  • My Sensors Test environments

    1
    0 Votes
    1 Posts
    824 Views
    No one has replied
  • Create multiple instance in a for() loop: a C++ question

    10
    0 Votes
    10 Posts
    6k Views
    BulldogLowellB
    thanks @hek lemme work with that for a while
  • MySensors support for Arduino Due?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Serial protocol..

    serialgateway serial protocol
    6
    0 Votes
    6 Posts
    3k Views
    D
    Hi. I do it .. change configuration in MyCOnfig.h (disable debug) and now gateway not send encoded message . But right now I test my serial board and have problem .. If send fast many packet from my sensor (INT0 and INT1) then serial gateway halt .. and no more data received from sensor and output string to uart .. I must reset MCU and all work again.. what is problem ?? Problem is in serial gateway .. after reset all work good .. any idea?? regards.
  • Help with Sketch

    1
    0 Votes
    1 Posts
    633 Views
    No one has replied
  • New sketches: UV, WaterMeter for Reed sensors, Air quality ...

    3
    3 Votes
    3 Posts
    3k Views
    epierreE
    Hello, first the pot is only for the digital output, it has no effect on the analog one. second, check your wiring, the analog should always report something, make sure the analog you use in the sketch is the one wired ... basic mistake... same for the 5V and ground. there is also a led on the board, if the board is correctly powered at some moment the led should turn up.
  • Send library version in setup

    5
    0 Votes
    5 Posts
    1k Views
    L
    Yes, I get it from presentation messages, but like you say a little redundant :) So, if I can send it once in setup, like this it's better for the controller, not too much work for nothing, just take care of the message send by setup and it's done.
  • Improved Ethernet-gateway

    2
    2 Votes
    2 Posts
    2k Views
    pgoP
    @ntruchsess Good job, I had to do this to WIZ5200 too, although it has bigger buffers/supports more client connections. Same situation for Iboard PRO (with onboard NET, I think 5100)
  • Implementing sensor on the gateway?

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    No, it is not possible nor recommended. The gateway probably need all processing power it has to handle incoming messages and routing to/from serial interface.
  • Unload/Load EEPROM

    9
    0 Votes
    9 Posts
    4k Views
    m26872M
    @hek said: It won't work if you previously had AUTO enabled and have received an id. This id will be written to eeprom. But If you always had a static id for a node this means no id has been written to eeprom and you can still go back to AUTO to fetch a new id. For a node that HAS received an id and you want to receive a new id for some reason, you have to use the clear eeprom example which writes 0xFF to the id-position of eeprom again. This allows node to fetch a new fresh id from controller in AUTO mode. I always use nothing but static node-ids and I'm unable to re-include working nodes to my Vera without first erasing the eeprom. The sensors "new parent"-debug message isn't showed until after this either. Is this correct?
  • About the architecture: thin vs thick gateways

    architecture
    7
    0 Votes
    7 Posts
    2k Views
    hekH
    @ntruchsess Yes, know there is a bit of lacking documentation :flushed: Inclusion mode is optional for controller to make use of. Presentation messages is always passed to controller. If controller wants it can choose to only allow adding device while inclusion is running. If gateway should handle id-handout by itself we would also need some kind of reset/clear functionality in the serial protocol to free up ids etc. The id statuses must be stored in gateway eeprom. Handling multiple parallell retransmits automatically by gateway (and nodes) could make it impossible to run it on a ATMega329 [speculation]. But if you got some neat ideas I'm open for suggestions (or pull requests) . If you decide to help out with something please use the development-branch.

21

Online

11.7k

Users

11.2k

Topics

113.0k

Posts