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!
  • Node to node comunication with optional controller

    node controller
    12
    0 Votes
    12 Posts
    3k Views
    DoomicD
    i think i finally get it. It is impossible... well the only way to let nodes communicate with each other is when a gateway is available (directly or trough other nodes) when the node is starting up. This forum discussion is explaining me the most.. a solution may be.. transform the node that is always on to an gateway. And use antoher channel.. Sidenode; then you can't tell the controller what the status is. Is there realy no way that this can supported? Node to node comunication without the need of an gateway inside the network? Skipping the registration and just send the message around. perhaps i will dive into the source one day and change the registration behavior. Thanks anyway for the help and the very fast responding.
  • Home Automation Using PC+Arduino+ESP8266+RF69+possibly NFR24L01

    7
    0 Votes
    7 Posts
    2k Views
    mfalkviddM
    @zamorae great to see that MySensors seems to be a good fit. Welcome to the community :) MySensors is available with two licenses: GPLv2 and commercial. GPLv2 basically means you can use it for free as long as any code you develop is also made available for free. This means everyone benefits from improvements made by everyone. If you want to keep a commercial solution "secret" you can buy the commercial license. Some details are available at https://www.mysensors.org/about/mysensors#copyright
  • Sending an integer >32767

    7
    0 Votes
    7 Posts
    2k Views
    mfalkviddM
    @Anduril great that you found the problem. Thanks for sharing the solution, it might help someone else in the future.
  • how to ask a node to re-send presentation info

    9
    0 Votes
    9 Posts
    3k Views
    jjkJ
    thanks, it works - in principle! I'm using smartSleep in my sketches and that causes the nodes to send heartbeat signals, which is o.k. But can it be, that the request for presentation is only received and responded to by the nodes when the node has sent a heartbeat? When I receive a regular sensor reading and fire back a presentation request, the node doesn't seem to care...?!
  • MYSBootloader - different pin for CE (nrf24)

    2
    0 Votes
    2 Posts
    824 Views
    msmacsM
    Hi, I haven't found any specific documentation but looking in the MYSBootloader's code I found this two checks in HW.h (https://github.com/mysensors/MySensorsBootloaderRF24/blob/development/HW.h) #if defined(SPI_PINS_CE9_CSN10) .. #elif defined(SPI_PINS_CSN7_CE8) .. #endif does it mean that those PINs (9+10 or 7+8) are the only options to have MYSBootloader on Arduino boards? (obviously without modifying the code and recompiling..) thanks Max
  • Convert roller blinds to motorised

    2
    0 Votes
    2 Posts
    1k Views
    korttomaK
    Search is your friend -> https://forum.mysensors.org/topic/157/diy-blind-control-motor
  • MQ135 AirQuality Sensor migrate sketch to MySensors 2.0

    3
    0 Votes
    3 Posts
    2k Views
    ?
    thank you. it works:)
  • RFM69 433Mhz ISM band

    12
    2 Votes
    12 Posts
    4k Views
    F
    Thank you all. I changed the register values directly in the RFM69 driver and it all seems to work. Hopefully a new release will soon include this (as well as the ATC feature). Also, local legislation specifies maximum transmission power as 10mW for the 433 band, so I included the code below in my sketch. It would be good to be able to configure this in the future as well. #ifdef MY_IS_RFM69HW _radio.setPowerLevel(16); // 10dBm for RFM69HW #else _radio.setPowerLevel(28); // 10dBm for RFM69W #endif
  • [SOLVED] strange problem with millis()

    5
    0 Votes
    5 Posts
    2k Views
    Moshe LivneM
    @AWI Darn you are right!!!!! Thanks! Have been dealing with rpi and upwards lately so assumed it has some kind of internal clock. Thanks again!
  • Low power battery Door/Window sketch nrf24l01

    21
    0 Votes
    21 Posts
    10k Views
    warmaniacW
    @mortommy YES !!! That's it !!! But it is fatal error , because i use step up booster and when battery goes down , It caused that arduino start / shutdown quickly , it spams my Gateway I must disconnect it .
  • JSON payload in MQTT message

    9
    0 Votes
    9 Posts
    3k Views
    jjkJ
    I have not, but will now ;) thanks!
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    47 Views
    No one has replied
  • RS485 Gateway with Nano and ENC28J60

    8
    0 Votes
    8 Posts
    3k Views
    AndrewZA
    I'm also interested in Ethernet Gateway with RS485 transport. At the moment I have successfully tested this on Arduino UNO with 2 different Ethernet modules, W5100 and ENC28J60. In both cases I'm using hardware serial port on Arduino, not AltSoftSerial. // Enable this if RS485 is connected to a hardware serial port #define MY_RS485_HWSERIAL Serial
  • By uploading the DHT 22 sketch, I get an error each time.

    6
    0 Votes
    6 Posts
    2k Views
    BrydenB
    @alowhum They seem to be not quite as easy for copy paste programming. I have had to do a heap of reading and learning to get it all down. Any the other one is you search the forums for soloutions before posting and half the solutions are pre 2.x and dont work either, I don't like noob posting basic stuff due to my lack of programming skill, but people here seem quite nice and willing to help :) Wait for my debouncing post later tonight if I cant work it out hahaha
  • Which Arduino IDE version?

    31
    0 Votes
    31 Posts
    12k Views
    H
    I completely agree. I am having a hell of a time getting mine to work at its to the point where I'm searching for an alternative to mysensors. This post should be in the main page regarding setup. I have wasted hours trying to figure this out.
  • Several networks working along side each other

    signing arduino pairing
    2
    0 Votes
    2 Posts
    1k Views
    mfalkviddM
    @Søren-Heide-Larsen different networks can be achieved by setting different channels / network ID. See here for NRF24 and here for RFM69. There is no pairing function in MySensors.
  • Real Time Clock with Display Example

    display rtc
    12
    0 Votes
    12 Posts
    6k Views
    cadetC
    @hek said in Real Time Clock with Display Example: http://www.mysensors.org/build/display Hi Can you modify code for adding temp sensor to GW. And may be display day of week. Thank you.
  • EEPROM wearing

    6
    0 Votes
    6 Posts
    2k Views
    N
    Great ! Now I have to implement a circular buffer and the solution will be perfect ! Edit : This reading is interresting : http://hackaday.com/2011/05/16/destroying-an-arduinos-eeprom/ The user did a test to wear out EEPROM, and did managed to get more than 1M writes before it started to fail !
  • I need help with an ESP8266 and Servo.H

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Sensor IDs, best practices?

    9
    0 Votes
    9 Posts
    2k Views
    marceltrapmanM
    @napo7 said in Sensor IDs, best practices?: This way, I can keep AUTO ID feature, the controller always give me new ID when needed, and I can easily replace a failing node with the same board, just changing his ID after uploading his firmware ! But when your controller/plugin/binding 'remembers' the id's it assigned you will end up with id's assigned without a sensor attached.

11

Online

11.7k

Users

11.2k

Topics

113.1k

Posts