Loading...
Pages: [1]   Go Down
Author Topic: NRF24L01 failing. Placing finger on aerial fixes it!  (Read 398 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am new to this and am trying to use NFRT4L01 units to communicate.

I have built two boards and am using simple ping code to bounce a message between two units. I have found it is unreliable. However I can normally get it to work by placing my finger on the end of the antenna (the antennae is internal to the Printed Circuit Board). It seems to be the transmit that is failing (i.e. placing my finger on unit A causes Unit B to start receiving)

It seems that different combinations of chips work better than others, even though they are all supposed to be the same.

Units fail whether they are 2 cms or 10 metres apart, so I am presuming it is not signal strength.

Is there something I am missing? Would I be better using a units with aerials?



 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am new to this game and tried posting this 15 minutes ago, but can't find it. Apologies if it is a duplicate.

I am trying to set up comms between two Arduinos using NRF24L01 chips.

I found some testing code and wired up two units. One sends a message, the other receives it and sends it back.

I have found it is unreliable. However I can normally get it to work by placing my finger on the end of the antenna (they are on the surface of the printed circuit board). It seems to be the transmit that is failing (i.e. placing my finger on unit A causes Unit B to start receiving)

It seems that different combinations of chips work better than others, even though they are all supposed to be the same.

Units fail whether they are 2 cms or 10 metres apart, so I am presuming it is not signal strength.

Am I missing something? Would I be better using a units with aerials?

Logged

the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2144
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Failing = NOT. What you have sounds about right. I just went through this a week ago.
These units have only 1 mW transmit power, and 10m will be about the outer limits in
usable range. And at 2 cm, the receiver is probably being overloaded.

http://arduino.cc/forum/index.php/topic,151145.msg1139300.html#msg1139300

Ways to get better range are: get 50 mW units [eg, XBee Pros], get something with a
1/4 wave whip or 1/2 wave dipole antenna, go to a lower frequency band, such as 433 Mhz.
Logged

Something different - Kitchen-Sink Arduino-compatible boards

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 120
Posts: 10201
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Please do not cross-post.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25577
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Units fail whether they are 2 cms or 10 metres apart, so I am presuming it is not signal strength.
Yes it is signal strength.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, Thanks for the quick response.
The comments suggest that at 2 cms it fails because it is overloaded and it fails at 10 metres because it is too weak. This would suggest that it should work at some distance in between. However at every distance I try it only works if I have my finger on the aerial.

Alan C
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25577
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The comments suggest that at 2 cms it fails because it is overloaded and it fails at 10 metres because it is too weak. This would suggest that it should work at some distance in between.
Yes but if it is not the case that the receiver is overloading, then it is a simple case of just not enough signal. Which is what it sounds like to me.
What about your ground levels? Have you tried putting it on a ground plane.
Logged

Dee Why NSW
Offline Offline
God Member
*****
Karma: 11
Posts: 523
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There has been recent discussion about this around here. It appears that the range can be substantially increased by reducing the data rate. 256k I think.
Logged

the land of sun+snow
Offline Offline
Edison Member
*
Karma: 81
Posts: 2144
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, it fails at every distance. That means either: (a) the modules are bad, (b) the Vcc
power is bad, (c) the wiring is incorrect, (d) the signal levels are incorrect, or (d) the
software is incorrect.

First, check (b), better be 3.3V only. Then check (c), wIth 8 wires, it's a good chance
something is miswired. Then check (d), better be 3.3V only. One can only guess at what
hardware and interfaces are being used.

Then verify the pin callouts in the s.w. being used match the wiring, and and one can only
guess what s.w. is being used.

A lot of guessing here, not much information.
 
Logged

Something different - Kitchen-Sink Arduino-compatible boards

Anaheim CA.
Offline Offline
Edison Member
*
Karma: 31
Posts: 2314
Experienced old Whitebeard with a Full head of Hair...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a 47 uF and a .1 uF capacitor right on the 3V3 Vcc connections at the radio board. Should fix some of your problems, likely something is oscillating in the receiver... and the effects of your finger change enough of the receiver to cause it to work... It's very possible that that issue is due to no/faulty power supply by-passing.

Bob
Logged

“The solution of every problem is another problem.” -Johann Wolfgang von Goethe

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25577
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Decoupling, why did I not think of that?  smiley-wink
Logged

Colorado
Offline Offline
Edison Member
*
Karma: 41
Posts: 1263
Reviving dead brain cells with Arduinos.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note that Nordic Semi does not suggest using the nRF24L01 anymore, instead use the nRF24L01+ ...  Having said that, I did a project two years ago with some nRF24L01+ using stub antennas and I was able to get 30-50+ meter distance between modules (at 512 kbps).  Near clear line of sight.  The modules were attached on people's shoulders with the stub antenna sticking up.  In a group of 20, I didn't have any problems communicating in a single master, multiple slaves setup.
Logged

Pages: [1]   Go Up
Print
 
Jump to: