Professional Documents
Culture Documents
Using Signal Strength Feature of nRF24L01 Module
Using Signal Strength Feature of nRF24L01 Module
module
Ask Question
Viewed 4k times
This is a walkie-talkie project and this circuit really worked, voice can be transmitted from one
nRF module to another nRF. Additionally, I want to observe how well the signal strength is, by
lighting up an LED.
They talked about a test.RPD function here in order to do that. But it is said that we can't use this
with nRF24L01, but can use only with nRF24L01P (I don't know what is the difference).
Test whether a signal (carrier or otherwise) greater than or equal to -64dBm is present on the
channel. Valid only on nRF24L01P (+) hardware. On nRF24L01, use testCarrier(). Useful to
check for interference on the current channel and channel hopping strategies. @return true if
signal => -64dBm, false if not */
while (radio.available()) {
signalStrength = rpd + 1;
radio.read, etc...
}
Should we write the above code in the RF24.h file or should we write it directly into the
Arduino's main sketch?
arduino-uno nrf24l01+
Share
Follow
edited Dec 18 '17 at 4:56
dda
user175079
Add a comment
1 Answer
Active OldestVotes
To get the signal strength just send 100 packets with no retries and see how many times the
packet arrives.
radio.begin();
radio.setRetries(0,0); // by default nrf tries 15 times. Change to no retries to measure strength
char buffer[32];
int counter = 0;
// etc