Hi,
I have two NRF24L01 modules with soldered 63V47uF capacitors. They worked fine someday with exact same configuration - Uno and Nano.
So, I connected them like this
This is Nano, but I connected NRF to Uno same as to Nano.
I'm using GettingStarted example from the newest RF24 library. I'm using also newest Arduino IDE version.
I was strugling with them for a few days.
Yesterday I thought that NRF modules may be not working properly.
So I found somewhere way to test them.
/**
* First test
*
*/
#include <SPI.h>
#include <RF24.h>
#include "printf.h"
//
// Hardware configuration
//
// Configure nRF24L01 radio module on SPI bus plus pins 8 for CE & 9 for CS
// arguments are (ce, cs)
RF24 radio(9,10);
//
// Set transmit and receive addresses
//
const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };
void setup(void)
{
Serial.begin(9600);
printf_begin();
printf("\n\rTest connection to modules\n\r");
//
// Setup and configure rf radio
//
radio.begin();
// Set the TX and RX addreses in the module
radio.openWritingPipe(pipes[0]);
radio.openReadingPipe(1,pipes[1]);
// radio.setDataRate( RF24_2MBPS ) ;
// radio.setPALevel( RF24_PA_MAX ) ;
radio.enableDynamicPayloads() ;
radio.setAutoAck( true ) ;
radio.powerUp() ;
radio.startListening();
//
// Print out the configuration of the rf unit for debugging
//
radio.printDetails();
}
void loop(void)
{
}
From the first NRF I have this result (Nano)
Test connection to modules
STATUS = 0xff RX_DR=1 TX_DS=1 MAX_RT=1 RX_P_NO=7 TX_FULL=1
RX_ADDR_P0-1 = 0xe7e7e7e7e7 0xffffffffff
RX_ADDR_P2-5 = 0x00 0xff 0x00 0xc6
TX_ADDR = 0xe7e7e7e7e7
RX_PW_P0-6 = 0xff 0x7f 0x00 0x00 0xff 0x00
EN_AA = 0xff
EN_RXADDR = 0xff
RF_CH = 0xff
RF_SETUP = 0x00
CONFIG = 0x02
DYNPD/FEATURE = 0x7f 0xff
Data Rate = 2MBPS
Model = nRF24L01
CRC Length = 8 bits
PA Power = PA_MAX
and from the second one... (Uno)
Test connection to modules
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xffffffffff 0xceccceccce
RX_ADDR_P2-5 = 0x00 0xc4 0x00 0xff
TX_ADDR = 0x0000000000
RX_PW_P0-6 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA = 0x3f
EN_RXADDR = 0x03
RF_CH = 0x00
RF_SETUP = 0x00
CONFIG = 0x00
DYNPD/FEATURE = 0x3f 0x3f
Data Rate = 1MBPS
Model = nRF24L01
CRC Length = 16 bits
PA Power = PA_MIN
So for start, could you tell me if this results are properly?
I think not so what should I change?
Thanks for answers and sorry for my english.