Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. [Solved] Arduino Nanos don't work as nodes

[Solved] Arduino Nanos don't work as nodes

Scheduled Pinned Locked Moved Hardware
37 Posts 6 Posters 181 Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • electrikE electrik

    In your first sketch the baud rate was 2mbps. How is your existing network configured?
    If you take an example sketch and an example gateway sketch, does it work then. So don't change channels and so on

    A Offline
    A Offline
    Avamander
    wrote on last edited by
    #28

    In your first sketch the baud rate was 2mbps. How is your existing network configured?

    That's exactly the same across all my sketches.

    If you take an example sketch and an example gateway sketch, does it work then. So don't change channels and so on

    Yeah, I did that and wrote about it above, took RepeaterNode and just defined CE/CSN on GW and the node.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Avamander
      wrote on last edited by Avamander
      #29

      I've determined that it doesn't matter which:

      • Radio
      • Radio's power supply/source
      • Nano
      • Bootloader
      • Arduino IDE (tried 1.8.2 and latest nightly)
      • 2.x.x MySensors
      • Example, or custom sketch
      • Channel, data rate, power level or node ID
      • Repeater or not
      • WAIT_READY_MS or not
      • Predefined master or not
      • SPI bus speed, 0.5*default SPI speed didn't help

      I just can't make a Nano act as a regular node.

      Maybe a MySensors dev has an idea what I could try.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Avamander
        wrote on last edited by
        #30

        I'm going to finish my Arduino Uno node and if that too doesn't work getting MyController to work must take some goat sacrifice because I can't do it.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Avamander
          wrote on last edited by Avamander
          #31

          I just discovered that on the Arduino Uno RF24_250KBPS works, but RF24_2MBPS doesn't. On the Nanos, neither work.

          I used RF24 and tested the boards for a while, I've determined that 2MBPS on that specific channel works great, I've sent at least 100 000 packets and lost only two. Auto-ack and dynamic payloads also work.

          I am 99.99% certain this is a bug in MySensors. @mfalkvidd maybe you have some ideas where to look next?

          YveauxY 1 Reply Last reply
          0
          • A Avamander

            I just discovered that on the Arduino Uno RF24_250KBPS works, but RF24_2MBPS doesn't. On the Nanos, neither work.

            I used RF24 and tested the boards for a while, I've determined that 2MBPS on that specific channel works great, I've sent at least 100 000 packets and lost only two. Auto-ack and dynamic payloads also work.

            I am 99.99% certain this is a bug in MySensors. @mfalkvidd maybe you have some ideas where to look next?

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #32

            @Avamander nano's are basically just regular atmega328 boards, running off 5v at 16MHz. The MySensors stack doesn't know if it is running on a nano, uno or pro mini, so why are you so certain this is a bug in the stack?
            What I do know is that a lot of low quality nanos are available from Chinese sources, with bad ground planes or crappy power regulators.
            What nano boards do you use? Could you try a different atmega328 based arduino?

            http://yveaux.blogspot.nl

            A 1 Reply Last reply
            0
            • YveauxY Yveaux

              @Avamander nano's are basically just regular atmega328 boards, running off 5v at 16MHz. The MySensors stack doesn't know if it is running on a nano, uno or pro mini, so why are you so certain this is a bug in the stack?
              What I do know is that a lot of low quality nanos are available from Chinese sources, with bad ground planes or crappy power regulators.
              What nano boards do you use? Could you try a different atmega328 based arduino?

              A Offline
              A Offline
              Avamander
              wrote on last edited by Avamander
              #33

              @Yveaux said in Arduino Nanos don't work as nodes:

              The MySensors stack doesn't know if it is running on a nano, uno or pro mini, so why are you so certain this is a bug in the stack?
              What I do know is that a lot of low quality nanos are available from Chinese sources, with bad ground planes or crappy power regulators.

              Because I'm really rather certain it isn't the hardware. You can read what I've replaced, swapped and tried. The radios have been decoupled, the power has been decoupled. The setup works in all possible ways when using RF24.

              What nano boards do you use? Could you try a different atmega328 based arduino?

              Yeah, I said I tried an Uno and it exhibited pretty much the same symptoms when acting as a regular node.

              tekkaT 1 Reply Last reply
              0
              • A Avamander

                @Yveaux said in Arduino Nanos don't work as nodes:

                The MySensors stack doesn't know if it is running on a nano, uno or pro mini, so why are you so certain this is a bug in the stack?
                What I do know is that a lot of low quality nanos are available from Chinese sources, with bad ground planes or crappy power regulators.

                Because I'm really rather certain it isn't the hardware. You can read what I've replaced, swapped and tried. The radios have been decoupled, the power has been decoupled. The setup works in all possible ways when using RF24.

                What nano boards do you use? Could you try a different atmega328 based arduino?

                Yeah, I said I tried an Uno and it exhibited pretty much the same symptoms when acting as a regular node.

                tekkaT Offline
                tekkaT Offline
                tekka
                Admin
                wrote on last edited by tekka
                #34

                @Avamander Can you upload both, the GW and node sketches from the working pair nanoGW/megaNode? Also, it would be helpful to see the full GW log from the non-working combination (nanoNode/megaGW) with MY_DEBUG_VERBOSE_RF24 enabled. If time allows, I'd like to reproduce and test your setup.

                A 1 Reply Last reply
                1
                • tekkaT tekka

                  @Avamander Can you upload both, the GW and node sketches from the working pair nanoGW/megaNode? Also, it would be helpful to see the full GW log from the non-working combination (nanoNode/megaGW) with MY_DEBUG_VERBOSE_RF24 enabled. If time allows, I'd like to reproduce and test your setup.

                  A Offline
                  A Offline
                  Avamander
                  wrote on last edited by Avamander
                  #35

                  @tekka

                  Just to be clear, the Arduino Mega node (megaNode) can talk to the Arduino Nano gateway (nanoGW), but no Arduino Nano node (nanoNode) can talk to the Arduino Nano gateway.

                  I'll post the sketches and logs.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Avamander
                    wrote on last edited by
                    #36

                    Ah, I think cussing is warranted here, I copied the radio configuration from my old sketch to the new ones, the node had:

                    #define RF24_DATARATE RF24_2MBPS
                    

                    The GW has:

                    #define MY_RF24_DATARATE RF24_2MBPS
                    

                    Lesson learned: Never copy configuration from an existing older sketch, you never know what has been deprecated without a warning. MY_RADIO_NRF24 threw a warning and I fixed that, had no idea about RF24_DATARATE and I didn't notice it. :sweat_smile:

                    1 Reply Last reply
                    1
                    • alowhumA Offline
                      alowhumA Offline
                      alowhum
                      Plugin Developer
                      wrote on last edited by
                      #37

                      This thread reads like an Agathie Christie novel. Well done on finding it!

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      19

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular