Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: March 10, 2013, 07:27:41 pm » |
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
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #1 on: March 10, 2013, 07:39:07 pm » |
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
Edison Member
Karma: 81
Posts: 2144
|
 |
« Reply #2 on: March 10, 2013, 09:10:24 pm » |
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#msg1139300Ways 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
Shannon Member
Karma: 120
Posts: 10201
|
 |
« Reply #3 on: March 11, 2013, 02:30:34 am » |
Please do not cross-post.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #4 on: March 11, 2013, 02:48:54 am » |
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
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #5 on: March 11, 2013, 04:32:05 pm » |
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
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #6 on: March 11, 2013, 04:44:01 pm » |
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
God Member
Karma: 11
Posts: 523
|
 |
« Reply #7 on: March 11, 2013, 06:47:54 pm » |
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
Edison Member
Karma: 81
Posts: 2144
|
 |
« Reply #8 on: March 11, 2013, 08:21:21 pm » |
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
Edison Member
Karma: 31
Posts: 2314
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #9 on: March 12, 2013, 01:23:17 pm » |
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
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #10 on: March 12, 2013, 01:25:36 pm » |
Decoupling, why did I not think of that? 
|
|
|
|
|
Logged
|
|
|
|
|
Colorado
Offline
Edison Member
Karma: 41
Posts: 1263
Reviving dead brain cells with Arduinos.
|
 |
« Reply #11 on: March 12, 2013, 03:27:21 pm » |
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
|
|
|
|
|
|