Skip to content
  • 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. NRF24L01+ range of only few meters
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

NRF24L01+ range of only few meters

Scheduled Pinned Locked Moved Hardware
81 Posts 21 Posters 39.7k Views 25 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.
  • VooDooXV Offline
    VooDooXV Offline
    VooDooX
    wrote on last edited by
    #21

    Have you tried changing #define RF24_DATARATE in MyConfig.h from RF24_250KBPS to RF24_1MBPS or RF24_2MBPS?

    That helped in my case. But you have to recompile gateway and node(s).

    1 Reply Last reply
    0
    • HenryWhiteH HenryWhite

      @Anduril said:

      @HenryWhite yeah I have caps at all my nrfs. Will try with a different power source, as mine is attached to my pc usb as well. At least for testing it should work on batteries.

      If that doesn't help try exchanging the Gateway Radio module.

      AndurilA Offline
      AndurilA Offline
      Anduril
      wrote on last edited by
      #22

      @HenryWhite I tried with my ESP on battery and only get few meters range, too.
      Also changing radio did not change anything. But my radios are from the same seller, even if my second batch was ordered months after the first. So maybe still same typ of radios.
      I will check for @VooDooX hint and change datarates. I will report back...

      1 Reply Last reply
      0
      • petewillP petewill

        @epierre my notes are in inches so forgive me not converting it here. My thinking was to make a full wavelength antenna using the existing pcb antenna. A full wavelength antenna for 2.4GHz is 4.92 in. I measured the existing pcb antenna on the nRF and it was 1.64 in. So, 4.92 - 1.64 = 3.28 in. (or 8.3312 cm). I'm not claiming to be an expert at all (an other people have said this shouldn't work) but it has worked well for me so I keep doing it. :) Others have reported success too so hopefully it will help you.

        (thanks for your help @mfalkvidd)

        @nunver Have you changed the PA level to MAX in myconfig.h?

        epierreE Offline
        epierreE Offline
        epierre
        Hero Member
        wrote on last edited by epierre
        #23

        @petewill when you solder you are at the end of the existing antenna, so you should add both length right ? and yes using imperial unit is well... non international ;-)

        z-wave - Vera -> Domoticz
        rfx - Domoticz <- MyDomoAtHome <- Imperihome
        mysensors -> mysensors-gw -> Domoticz

        petewillP 1 Reply Last reply
        0
        • epierreE epierre

          @petewill when you solder you are at the end of the existing antenna, so you should add both length right ? and yes using imperial unit is well... non international ;-)

          petewillP Offline
          petewillP Offline
          petewill
          Admin
          wrote on last edited by
          #24

          @epierre Yep, 1.64 + 3.28 = 4.92in is that what you're referring to?

          My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

          1 Reply Last reply
          0
          • Igor KatkovI Offline
            Igor KatkovI Offline
            Igor Katkov
            wrote on last edited by
            #25

            I also have a poor range. With all the tricks:

            • pairs of electrolytic+ceramic capacitors

            • short leads

            • max out emittance power

            • lowered KBS to 250

            • increased retries and delays

            • free of wifi interference freq

            • lowered payload to 4 bytes

            • powered usb hub for gateway

            • laptop USB powered arduino for sensor

            • what I did not try - is separate step down regulator for radio

            I got 10m at most through couple of walls. These are plain wood frame + drywall + insulation walls.
            Even that was only possible with max power output on both sides and 250KB/s speed + 4bytes payload. I'm not sure if mysensor serial protocol allow to change payload size. I had to go down to roots of nrf24 programming to debug my poor reception.
            Payload size was the greatest impactor by the way I had to make my own test hardware+software to do these range tests (simple echo server, sending time back, thus 4 bytes payload)

            I've almost give up on nrf24 and ordered 4 hopeRF 483MHz transceivers for testing.

            mfalkviddM 1 Reply Last reply
            0
            • Igor KatkovI Igor Katkov

              I also have a poor range. With all the tricks:

              • pairs of electrolytic+ceramic capacitors

              • short leads

              • max out emittance power

              • lowered KBS to 250

              • increased retries and delays

              • free of wifi interference freq

              • lowered payload to 4 bytes

              • powered usb hub for gateway

              • laptop USB powered arduino for sensor

              • what I did not try - is separate step down regulator for radio

              I got 10m at most through couple of walls. These are plain wood frame + drywall + insulation walls.
              Even that was only possible with max power output on both sides and 250KB/s speed + 4bytes payload. I'm not sure if mysensor serial protocol allow to change payload size. I had to go down to roots of nrf24 programming to debug my poor reception.
              Payload size was the greatest impactor by the way I had to make my own test hardware+software to do these range tests (simple echo server, sending time back, thus 4 bytes payload)

              I've almost give up on nrf24 and ordered 4 hopeRF 483MHz transceivers for testing.

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #26

              @Igor-Katkov did you get better results with higher output power? I am no radio expert, but most stuff I have read says that higher output often results in worse signal to noise ratio.

              Igor KatkovI 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @Igor-Katkov did you get better results with higher output power? I am no radio expert, but most stuff I have read says that higher output often results in worse signal to noise ratio.

                Igor KatkovI Offline
                Igor KatkovI Offline
                Igor Katkov
                wrote on last edited by
                #27

                @mfalkvidd Yes, a few more meters with PA_MAX.
                Here is my best performing code

                  radio.setPALevel(RF24_PA_MAX);
                  radio.setDataRate(RF24_250KBPS);
                  radio.setPayloadSize(4);
                  radio.setChannel(2);
                  radio.setRetries(15, 15);
                

                Full code https://gist.github.com/ikatkov/6df540838bd4d3ea8b57

                mfalkviddM vgaV 2 Replies Last reply
                0
                • Igor KatkovI Igor Katkov

                  @mfalkvidd Yes, a few more meters with PA_MAX.
                  Here is my best performing code

                    radio.setPALevel(RF24_PA_MAX);
                    radio.setDataRate(RF24_250KBPS);
                    radio.setPayloadSize(4);
                    radio.setChannel(2);
                    radio.setRetries(15, 15);
                  

                  Full code https://gist.github.com/ikatkov/6df540838bd4d3ea8b57

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #28

                  @Igor-Katkov interesting. Thanks for sharing!

                  1 Reply Last reply
                  0
                  • Igor KatkovI Offline
                    Igor KatkovI Offline
                    Igor Katkov
                    wrote on last edited by
                    #29

                    It appears that I was quite foolish expecting FTDI adapter board to power my nrf24 :-(
                    datasheet says it can provide at most 50mA.

                    I'll try 2AA batteries and a step up regulator

                    AWIA YveauxY 2 Replies Last reply
                    0
                    • petewillP petewill

                      @epierre my notes are in inches so forgive me not converting it here. My thinking was to make a full wavelength antenna using the existing pcb antenna. A full wavelength antenna for 2.4GHz is 4.92 in. I measured the existing pcb antenna on the nRF and it was 1.64 in. So, 4.92 - 1.64 = 3.28 in. (or 8.3312 cm). I'm not claiming to be an expert at all (an other people have said this shouldn't work) but it has worked well for me so I keep doing it. :) Others have reported success too so hopefully it will help you.

                      (thanks for your help @mfalkvidd)

                      @nunver Have you changed the PA level to MAX in myconfig.h?

                      N Offline
                      N Offline
                      nunver
                      wrote on last edited by
                      #30

                      @petewill Yes, I did increase PA level to Max. I don't understand how I could change the payload size, though. Mysensors have a certain format.

                      1 Reply Last reply
                      0
                      • Igor KatkovI Igor Katkov

                        It appears that I was quite foolish expecting FTDI adapter board to power my nrf24 :-(
                        datasheet says it can provide at most 50mA.

                        I'll try 2AA batteries and a step up regulator

                        AWIA Offline
                        AWIA Offline
                        AWI
                        Hero Member
                        wrote on last edited by
                        #31

                        @Igor-Katkov powering the radio from a switching regulator is no guarantee for radio performance. Most of these (small) regulators have a high voltage ripple around their switching frequency.
                        You have no need for it either... The radio should work perfectly when powered by two cells.

                        N 1 Reply Last reply
                        0
                        • AWIA AWI

                          @Igor-Katkov powering the radio from a switching regulator is no guarantee for radio performance. Most of these (small) regulators have a high voltage ripple around their switching frequency.
                          You have no need for it either... The radio should work perfectly when powered by two cells.

                          N Offline
                          N Offline
                          nunver
                          wrote on last edited by
                          #32

                          @AWI It does not sound right to me having to use battery power where there is AC. There should be a way to get clean enough power for these little devices?

                          AWIA 1 Reply Last reply
                          0
                          • N nunver

                            @AWI It does not sound right to me having to use battery power where there is AC. There should be a way to get clean enough power for these little devices?

                            AWIA Offline
                            AWIA Offline
                            AWI
                            Hero Member
                            wrote on last edited by
                            #33

                            @nunver sure, use a standard regulated power supply (phone charger) of 5v for the Arduino and make sure the radio gets a stable supply from a regulator. What always works is using one of those nrf24 adapter plates (look in the shop) for a stable radio.

                            1 Reply Last reply
                            0
                            • Igor KatkovI Offline
                              Igor KatkovI Offline
                              Igor Katkov
                              wrote on last edited by
                              #34

                              I was/am trying to make a battery powered wireless sensor so there would be no AC if I can avoid it.

                              I intended to use the step up regulator to 3v3 to extend sensor life on a pair of AA batteries. I think voltage would drop fairly quickly below nrf24 lower limit.

                              AWIA 1 Reply Last reply
                              0
                              • Igor KatkovI Igor Katkov

                                It appears that I was quite foolish expecting FTDI adapter board to power my nrf24 :-(
                                datasheet says it can provide at most 50mA.

                                I'll try 2AA batteries and a step up regulator

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

                                @Igor-Katkov said:

                                datasheet says it can provide at most 50mA

                                Don't count on that ftdi chip being genuine for only a few $$. I doubt if that data sheet applies to your unit...

                                http://yveaux.blogspot.nl

                                1 Reply Last reply
                                0
                                • Igor KatkovI Igor Katkov

                                  I was/am trying to make a battery powered wireless sensor so there would be no AC if I can avoid it.

                                  I intended to use the step up regulator to 3v3 to extend sensor life on a pair of AA batteries. I think voltage would drop fairly quickly below nrf24 lower limit.

                                  AWIA Offline
                                  AWIA Offline
                                  AWI
                                  Hero Member
                                  wrote on last edited by AWI
                                  #36

                                  @Igor-Katkov Your AA batteries will be as good as dead before these drop below the nrf24 minimum voltage (1.9V). See below the graph for one cell. If the arduino survives depends on hardware/ fuse-settings.

                                  0_1455694674730_upload-9c67f65a-394a-4e60-a5fb-e25d0d8d2ba3

                                  1 Reply Last reply
                                  0
                                  • Igor KatkovI Offline
                                    Igor KatkovI Offline
                                    Igor Katkov
                                    wrote on last edited by Igor Katkov
                                    #37

                                    OK, so I tried with AA cells, no regulators.
                                    Plain and simple. TMRh20 lib.
                                    Not any better.
                                    I then tried with a chunk of bare copper wire 83mm long, soldered to the end of that curly PCB antenna - not any better either.
                                    Not sure what might I've done wrong. Layout is pretty simple
                                    image of nrf24 transmitter
                                    Voltage with load is 3.1V, current never goes above 19.2mA
                                    image of multimeter

                                    I tried with direct line of sight, range has doubled to say 20m, but again - nothing to write home about.

                                    1 Reply Last reply
                                    0
                                    • Igor KatkovI Offline
                                      Igor KatkovI Offline
                                      Igor Katkov
                                      wrote on last edited by
                                      #38

                                      [Update for future generation]
                                      I think I found my issue. It was the large transceiver see image below, with power amplifier and external antenna.
                                      Once I replaced both receiver and transmitter with identical units, range got significantly better.
                                      60m clear sight and almost whole house through multiple walls.

                                      For whatever reason small unit can't hear ACK from the PA unit. I tried to reduce power on the PA end to

                                       radio.setPALevel(RF24_PA_MIN); 
                                      

                                      but it did not seem to have any effect. My best guess now is that oscillator on the PA unit is slightly off. PCB antenna unit is battery powered.
                                      Power source to arduino UNO that drives PA unit is good, 5V less that 2mV ripple. The transceiver is powered via 3V3 output (onboard regulator) of UNO though, could it be the problem?

                                      petewillP 1 Reply Last reply
                                      1
                                      • OitzuO Offline
                                        OitzuO Offline
                                        Oitzu
                                        wrote on last edited by
                                        #39

                                        @Igor-Katkov said:
                                        The transceiver is powered via 3V3 output (onboard regulator) of UNO though, could it be the problem?

                                        Yes. But depends on which onboard regulator is used on your UNO.
                                        Also have an look here: http://forum.mysensors.org/topic/3168/long-range-transmission/27

                                        1 Reply Last reply
                                        0
                                        • Igor KatkovI Igor Katkov

                                          [Update for future generation]
                                          I think I found my issue. It was the large transceiver see image below, with power amplifier and external antenna.
                                          Once I replaced both receiver and transmitter with identical units, range got significantly better.
                                          60m clear sight and almost whole house through multiple walls.

                                          For whatever reason small unit can't hear ACK from the PA unit. I tried to reduce power on the PA end to

                                           radio.setPALevel(RF24_PA_MIN); 
                                          

                                          but it did not seem to have any effect. My best guess now is that oscillator on the PA unit is slightly off. PCB antenna unit is battery powered.
                                          Power source to arduino UNO that drives PA unit is good, 5V less that 2mV ripple. The transceiver is powered via 3V3 output (onboard regulator) of UNO though, could it be the problem?

                                          petewillP Offline
                                          petewillP Offline
                                          petewill
                                          Admin
                                          wrote on last edited by
                                          #40

                                          @Igor-Katkov said:

                                          I think I found my issue. It was the large transceiver see image below, with power amplifier and external antenna.

                                          I have had issues with my NRF radio like the one you mention here. I'm not sure about range issues but it totally stopped my Z-Wave network from communicating. It was easier for me to just use one of the smaller radios instead of doing further troubleshooting. I know there are some other threads (that I can't think of off the top of my head) where users have found that shielding it has helped. Also, as @Oitzu said, try powering it from a separate 3.3v source instead of from the Uno.

                                          My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

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


                                          17

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular