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!
  • Max. number of modules without repeaters (NRF24)?

    2
    0 Votes
    2 Posts
    816 Views
    AWIA
    @darkhorse Don't worry.. the number of nrf24 pipes has nothing to do with the number of modules. These all use the same channel. You are limted only by the max number of nodes 256 -2 = 254 (0 and 255 are reserved)
  • Wait command explain

    3
    0 Votes
    3 Posts
    2k Views
    dpressleD
    Thanks, its clear now.
  • Sketch problem

    9
    0 Votes
    9 Posts
    2k Views
    raptorjrR
    @AWI This is what I get with debug turned on: Temperature=25.10, LastTemp=25.10 Flow rate: 0.0L/min Output Liquid Quantity: 0.00L Temperature=25.00, LastTemp=25.10 TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=OK:25.0 Flow rate: 0.0L/min Output Liquid Quantity: 0.00L TSF:MSG:READ,0-0-1,s=2,c=1,t=2,pt=0,l=1,sg=0:0 TSF:MSG:ACK REQ TSF:MSG:SEND,1-1-0-0,s=2,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0 Incoming change for sensor:2, New status: 0 Temperature=25.10, LastTemp=25.00 !TSF:MSG:SEND,1-1-0-0,s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=NACK:25.1 Flow rate: 0.0L/min Output Liquid Quantity: 0.00L Temperature=25.10, LastTemp=25.10 Flow rate: 0.0L/min Output Liquid Quantity: 0.00L
  • Using nrf24l01 with other devices on one SPI bus

    7
    0 Votes
    7 Posts
    2k Views
    foad62F
    @mfalkvidd Yes you are right, Thank you.
  • SOFT-SPI on Arduino Nano

    7
    0 Votes
    7 Posts
    6k Views
    foad62F
    @tbowmo Thank you. I'll give it a try.
  • upgrading to 2.0

    7
    0 Votes
    7 Posts
    2k Views
    TheoLT
    @parachutesj I'm running a 2.0 gateway a couple of weeks now. It's stable and all 1.5 nodes still work flawless. Of course no guaranty that the all 1.5 nodes will keep working for others as well, once they've updated the gateway to 2.0. So I bumped one of my 1.5 nodes to 2.0 tonight. Will continue to do so with the others. First the easy ones (like temp and humidity sensors) then the others. Also great possibility to refactor the older ones to my current insights ;-) Already started some interesting projects with the new 2.0 features. Did I already mentioned that I love 2.0?
  • How to find out if message was successfully delivered?

    13
    0 Votes
    13 Posts
    4k Views
    A
    @Mark-Swift In the sensebender sketch I replaced gw.send(msgTemp.set(temperature,1)); with if(gw.send(msgTemp.set(temperature,1))) { digitalWrite(LED_PIN,LOW); } else { digitalWrite(LED_PIN,HIGH); } LED is OFF if meassages are successfully delivered. LED turns ON if meassage delivery fails and stays ON until a new meassage is successfully delivered. Note that I use mysensors 1.5 as I did not yet update to mysensors 2.0. In 2.0 gw. is not needed
  • Sending Byte Array in messages

    7
    0 Votes
    7 Posts
    3k Views
    YveauxY
    @polite-vusi-Kubayi said: sending-image-data-over-the-mysensors-network https://www.google.nl/search?q=sending-image-data-over-the-mysensors-network+site%3Amysensors.org
  • Problems with V_TEXT in MySensors 2.0.0

    4
    0 Votes
    4 Posts
    1k Views
    AWIA
    @MikeF Good to hear that it worked for you. Possible just coincidence that it worked in V1.5. Reception of information on battery powered nodes is always an issue. The radio consumes a lot of energy while listening. There are a few new options in V2 to get around that. Take a look at the "Sleeping" section of the API Description
  • Unreliable node-to-node communication

    1
    0 Votes
    1 Posts
    750 Views
    No one has replied
  • How do I recognise ack-messages?

    2
    0 Votes
    2 Posts
    809 Views
    hekH
    @darkhorse Yes, your assumption is correct.
  • Missing Bracket in DallasTemperatureSensor Sketch

    5
    0 Votes
    5 Posts
    1k Views
    foad62F
    @hek But when I add the missing closing bracket I get the following error: DallasTemperatureSensor:123: error: expected declaration before '}' token } ^ exit status 1 expected declaration before '}' token
  • Adding MySensors to existing arduino project? Minimal code needed?

    3
    0 Votes
    3 Posts
    1k Views
    172pilot1
    Thanks for the reply.. It seems that if you can do what you did with the sensor code, presumably it should work with the gateway code, so I guess I just need to make some time to try some more.. Otherwise I think i'm just going to have to move back to a bigger arduino and just use an NRF and forget about the wifi on the new version.. Thanks!
  • Compile error #include <avr/dtostrf.h>

    3
    0 Votes
    3 Posts
    3k Views
    R
    Thanks for the reply but I'm not much of a modern day programmer Most of my programming was done writing drivers for I/O cards in assembly in the before time.
  • Mysensors for pur avr

    8
    0 Votes
    8 Posts
    2k Views
    yogui79Y
    Hy, I solved my problem an do a mysensors bridge for somfy rts. I post the lib and the sample on the jeedom forum : https://www.jeedom.com/forum/viewtopic.php?f=35&t=21456 its in french but I can translate if needed All the code and description inside the sample is in english
  • send(msg(double)); gives an error

    3
    0 Votes
    3 Posts
    2k Views
    Martin TellblomM
    Thank you @AWI , I missed that one.
  • request sketch for relay with button up/down (no push button)

    2
    0 Votes
    2 Posts
    847 Views
    BartEB
    @rayan said: If i do understand you correctly you want to toggle the relay when the switch is toggled regardless which state it is in? If so just remove the && state == LOW and the relay whill be toggled each time stateChagened toggles if ( stateChanged ) { if ( ledState == LOW ) { ledState = HIGH; } else { ledState = LOW; }
  • Serial API 2.0 question for custom code

    1
    0 Votes
    1 Posts
    622 Views
    No one has replied
  • MySensors Raspberry port suggestions

    Locked
    96
    3 Votes
    96 Posts
    42k Views
    M
    The RPi port was merged into mysensors official repository :tada: (thank you to everyone who helped with this process :clap: ). For future discussion, please use this this topic.
  • Get version response

    3
    0 Votes
    3 Posts
    852 Views
    franzelareF
    nobody knows how to catch the get version message?

12

Online

11.7k

Users

11.2k

Topics

113.1k

Posts