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. NRF24L01+ range of only few meters

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.
  • epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by epierre
    #11

    @sven I did ad a home made half wave on a 433Mhz device (Imagitronix), and also added a quater wave on the RFXTRX to improve the range.

    Frequency = 868 MHz
    Quarter Wavelength: 82.2 mm = 3.235 inch
    Half Wavelength: 164.3 mm = 6.470 inch

    so it is a quarter Wave as the amplified version propose

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

    S 1 Reply Last reply
    0
    • epierreE epierre

      @sven I did ad a home made half wave on a 433Mhz device (Imagitronix), and also added a quater wave on the RFXTRX to improve the range.

      Frequency = 868 MHz
      Quarter Wavelength: 82.2 mm = 3.235 inch
      Half Wavelength: 164.3 mm = 6.470 inch

      so it is a quarter Wave as the amplified version propose

      S Offline
      S Offline
      sven
      wrote on last edited by
      #12

      @epierre
      The NRF24L01+ is working on an other frequency, it is 2400 MHz and not 868 MHz. I think to post http://forum.mysensors.org/topic/775/8-lamp-outlet-smart-plug-module/67 might be correct.

      1 Reply Last reply
      0
      • epierreE Offline
        epierreE Offline
        epierre
        Hero Member
        wrote on last edited by epierre
        #13

        @sven on the video he shows 83.38 ?? you are right, it is 2.4GHz

        1/4 wave antenna is 31.25 mm long
        1/2 wavelength is 62.5mm.

        so why did he mesured 83.38 ? was it inches ? (imperial non universal?)

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

        mfalkviddM ร 2 Replies Last reply
        0
        • HenryWhiteH HenryWhite

          @ericvdb said:

          the 3.3V on the arduino boards suck. Do not use that, instead use the 5V with your own 3.3V regulator.

          I'm using 7 nodes with nRF directly connected to my 3.3v pro mini's vcc. Never had any problems with range, since I'm using the nRF Version with antenna on my gateway.

          @Anduril are you using capacitors? Try exchanging the nRF which is attached to your gateway.

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

          @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.

          HenryWhiteH 1 Reply Last reply
          0
          • epierreE epierre

            @sven on the video he shows 83.38 ?? you are right, it is 2.4GHz

            1/4 wave antenna is 31.25 mm long
            1/2 wavelength is 62.5mm.

            so why did he mesured 83.38 ? was it inches ? (imperial non universal?)

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

            @epierre said:

            @sven on the video he shows 83.38 ?? you are right, it is 2.4GHz

            1/4 wave antenna is 31.25 mm long
            1/2 wavelength is 62.5mm.

            so why did he mesured 83.38 ? was it inches ? (imperial non universal?)

            As Pete explains in the video, you need to add 83.38mm to the pcb antenna to get a full wavelength.

            epierreE 1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              @epierre said:

              @sven on the video he shows 83.38 ?? you are right, it is 2.4GHz

              1/4 wave antenna is 31.25 mm long
              1/2 wavelength is 62.5mm.

              so why did he mesured 83.38 ? was it inches ? (imperial non universal?)

              As Pete explains in the video, you need to add 83.38mm to the pcb antenna to get a full wavelength.

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

              @mfalkvidd said:

              83.38mm to the

              I'd like to understand @petewill

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

              1 Reply Last reply
              0
              • AndurilA Anduril

                @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.

                HenryWhiteH Offline
                HenryWhiteH Offline
                HenryWhite
                wrote on last edited by
                #17

                @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 1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nunver
                  wrote on last edited by
                  #18

                  Basically, from what I understand, a few meters of range is abnormal, and there is something I am doing wrong (a lot of which you outlined above and elsewhere). I understand that if powered correctly and fitted with capacitors and, if need be, some home made antennas, they should communicate through concrete walls up to 10-20 meters.

                  Do you confirm? Only then I will have the stamina to go back and spend another weekend crouched on that desk. :wink:

                  1 Reply Last reply
                  0
                  • mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by mfalkvidd
                    #19

                    The nrf should have about the same range as regular wifi. So if regular wifi works in that room, you should be able to get the nrf working. If wifi doesn't work, you are not likely to get the nrf working either. In that case you'll probably be better off using ethernet (place an ethernet gateway in that room, with wired access to your home network) or use rs485.

                    10-20m solid concrete is going to be tough (for almost any type of radio signal), but with regular walls you should get at least 10m, probably 20-50.

                    1 Reply Last reply
                    1
                    • petewillP Offline
                      petewillP Offline
                      petewill
                      Admin
                      wrote on last edited by
                      #20

                      @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?

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

                      epierreE N 2 Replies Last reply
                      1
                      • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          9

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