NRF24L01+: bad range of few meters
-
Hi everyone,
i´m using the following setup:
Controller:
Raspberry Pi 2 B, powered with an USB- Power-Supply Max. 2ASerial Gateway (v1.5):
Arduino Nano 5V directly connected via USB,
NRF24L01+ with SMA Antenna direct soldered to the Arduino, capacitor 0,47uF between GND and VinSensor-Node (v1.5):
Arduino Pro Mini 3,3V, powered with new a battery: (one "SAFT" AA-Format cell, 3,6V 2000mAh)
NRF24L01+ without external Antenna (and also tried the mod with soldered 83,3mm wire antenna), capacitor 0,47uF between GND and VinEnvironment:
Controller and gateway indoor directly behind a window (double shielded), sensor outside:
5m away from window: connection OK.
7m away from window: connection FAIL.What can i do, for better range:?
- Is there a better way for powering the gateway or the battery sensor (but sensor needs to by battery powered, and power efficient)?
- Any other hardware mods?
- I´ve read in another post something about NRF24-library settings:
radio.setPALevel(RF24_PA_MAX); radio.setDataRate(RF24_250KBPS); radio.setPayloadSize(4); radio.setChannel(2); radio.setRetries(15, 15);Is there a way to set these parameters via MySensors Library?
-
Hi everyone,
i´m using the following setup:
Controller:
Raspberry Pi 2 B, powered with an USB- Power-Supply Max. 2ASerial Gateway (v1.5):
Arduino Nano 5V directly connected via USB,
NRF24L01+ with SMA Antenna direct soldered to the Arduino, capacitor 0,47uF between GND and VinSensor-Node (v1.5):
Arduino Pro Mini 3,3V, powered with new a battery: (one "SAFT" AA-Format cell, 3,6V 2000mAh)
NRF24L01+ without external Antenna (and also tried the mod with soldered 83,3mm wire antenna), capacitor 0,47uF between GND and VinEnvironment:
Controller and gateway indoor directly behind a window (double shielded), sensor outside:
5m away from window: connection OK.
7m away from window: connection FAIL.What can i do, for better range:?
- Is there a better way for powering the gateway or the battery sensor (but sensor needs to by battery powered, and power efficient)?
- Any other hardware mods?
- I´ve read in another post something about NRF24-library settings:
radio.setPALevel(RF24_PA_MAX); radio.setDataRate(RF24_250KBPS); radio.setPayloadSize(4); radio.setChannel(2); radio.setRetries(15, 15);Is there a way to set these parameters via MySensors Library?
-
thanks, i would take channel 76, but how can i set these parameters, also the other ones?
in MyConfig.h i see the following:
#define MY_RF24_CHANNEL 76 #define MY_RF24_DATARATE RF24_250KBPS #define MY_RF24_PA_LEVEL RF24_PA_MAX...but what about the PayloadSize? can i set this too?
-
thanks, i would take channel 76, but how can i set these parameters, also the other ones?
in MyConfig.h i see the following:
#define MY_RF24_CHANNEL 76 #define MY_RF24_DATARATE RF24_250KBPS #define MY_RF24_PA_LEVEL RF24_PA_MAX...but what about the PayloadSize? can i set this too?
-
@vga if you don't change the channel it will default to 76.
Why are you configuring the nRF directly by calling the driver methods? Are you using the mysensors library at all?@Yveaux said:
@vga if you don't change the channel it will default to 76.
Why are you configuring the nRF directly by calling the driver methods? Are you using the mysensors library at all?do you mean the radio.set lines?
this is only a quote from another post. i don't do it this way.
i´m using My Sensors library v2.0 beta.I´ve found 3 parameters in the MyConfig.h, and they all set by default, as i see.
But ni can´t find the payload size. Can i set it anywhere, or see what value it is set to? -
@Yveaux said:
@vga if you don't change the channel it will default to 76.
Why are you configuring the nRF directly by calling the driver methods? Are you using the mysensors library at all?do you mean the radio.set lines?
this is only a quote from another post. i don't do it this way.
i´m using My Sensors library v2.0 beta.I´ve found 3 parameters in the MyConfig.h, and they all set by default, as i see.
But ni can´t find the payload size. Can i set it anywhere, or see what value it is set to? -
Hi @vga!
This thread presents a lot of hardware considerations related to the nrf24l01 module.
The nrf24 should then perhaps be supplied separately instead of through a Pi or Arduino supply pin. I will go for this approach myself. Even though your USB supply provides 2A the 3V pin is of course limited to perhaps 50 mA?!
-
Ok, so you see an improvement?
In the referenced thread Korttoma actually mentioned that one could expect a lower range if you set the power to max as the Arduino is not able to supply enough power.
Good to know, learning by doing. 😊