I have a pair of NRF24L01+ radios connected to two Mega boards using cables I built. I loaded the getting_started sketch and RF24 library from GitHub - maniacbug/RF24: Arduino driver for nRF24L01
Pinout of Cable
Mega Radio
GND <---> GND 1
3.3v <---> 3.3 2
DIO 9 <---> CE 3
DIO 10 <--> CS 4
SCK 52 <--> SCK 5
MOSI 51 <--> MOSI 6
MISO 50 <--> MISO 7
There appears to be a bit of timing problem. Here's the output I am seeing from the two radios. From the output below it looks like the receiver is getting the all the transmissions but the sender is timing out from time to time due to not receiving the response back. Looks like a 250ms delay before timing out according to the code.
The radios are about 1 foot apart.
Any ideas on what the problem may be?
Transmitter on Restart
RF24/examples/GettingStarted/
ROLE: Pong back
*** PRESS 'T' to begin transmitting to the other node
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0d2 0xf0f0f0f0d2
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0d2
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x0f
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_HIGH
Reciever on Restart
RF24/examples/GettingStarted/
ROLE: Pong back
*** PRESS 'T' to begin transmitting to the other node
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xf0f0f0f0e1 0xf0f0f0f0d2
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0xf0f0f0f0e1
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x03
RF_CH = 0x4c
RF_SETUP = 0x07
CONFIG = 0x0f
DYNPD/FEATURE = 0x00 0x00
Data Rate = 1MBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_HIGH
Transmitter
Now sending 73069...ok...Got response 73069, round-trip delay: 29
Now sending 74098...ok...Failed, response timed out.
Now sending 75407...ok...Got response 75407, round-trip delay: 53
Now sending 76462...ok...Got response 76462, round-trip delay: 67
Now sending 77530...ok...Failed, response timed out.
Now sending 78842...ok...Failed, response timed out.
Now sending 80146...ok...Failed, response timed out.
Now sending 81454...ok...Failed, response timed out.
Now sending 82761...ok...Failed, response timed out.
Now sending 84065...ok...Failed, response timed out.
Now sending 85372...ok...Got response 85372, round-trip delay: 45
Now sending 86418...ok...Failed, response timed out.
Now sending 87731...ok...Failed, response timed out.
Now sending 89038...ok...Got response 89038, round-trip delay: 32
Now sending 90071...ok...Got response 90071, round-trip delay: 45
Now sending 91117...ok...Got response 91117, round-trip delay: 27
Now sending 92145...ok...Failed, response timed out.
Reciever
Got payload 73069...Sent response.
Got payload 74098...Sent response.
Got payload 75407...Sent response.
Got payload 76462...Sent response.
Got payload 77530...Sent response.
Got payload 78842...Sent response.
Got payload 80146...Sent response.
Got payload 81454...Sent response.
Got payload 82761...Sent response.
Got payload 84065...Sent response.
Got payload 85372...Sent response.
Got payload 86418...Sent response.
Got payload 87731...Sent response.
Got payload 89038...Sent response.
Got payload 90071...Sent response.
Got payload 91117...Sent response.
Got payload 92145...Sent response.