NRF modules for TX and RX

Hello everyone,

I have setup two nano boards with NRF modules. I am using TMRh20 library for communication. I uploaded the given example in library (File>Examples>RF24>Transfer) to both the boards and it gives me message as follows:

*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Initiating Basic Data Transfer
Transfer complete at 24.55 KB/s
0 of 10000 Packets Failed to Send
Initiating Basic Data Transfer
Transfer complete at 24.76 KB/s
0 of 10000 Packets Failed to Send
Initiating Basic Data Transfer
Transfer complete at 24.56 KB/s
0 of 10000 Packets Failed to Send

Then I setup TX and RX (for RC Plane) using this webpage

I uploaded the code and connected joysticks etc.

It does not work. Can someone please help me out with this?

swapnil_nimbalkar:
It does not work. Can someone please help me out with this?

The words "it does not work" provide no useful information with which to help you. Tell us in as much detail as possible what happens when you run the programs.

Have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

There is also a connection test program to check that the Arduino can talk to the nRF24 it is connected to. If the first example does not work be sure to try the connection test for both of your Arduinos. Nothing will work if the connection test fails.

A common problem with nRF24 modules is insufficient 3.3v current from the Arduino 3.3v pin. This seems to be a particular problem with the nano. The high-power nRF24s (with the external antenna) will definitely need an external power supply. At least for testing try powering the nRF24 with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.

If you are using the high-power nRF24s (with the external antenna) it may help to have a distance of about 3 metres between the two nRF24s so that the signal does not overwhelm the receiver. However someone on the Forum has had them working without that separation - I don't have any personal experience with them. If you are new to nRF24s it may be better to start with a pair of low power modules with the pcb antenna.

...R

Thank you for the reply.

I changed the CE pins to 7 & 8 (instead of 9,10) it is working now.

However, It works only when radio.setPALevel(RF24_PA_LOW ); if I set it to HIGH, it wont work.

What could be the issue?

Swapnil

swapnil_nimbalkar:
However, It works only when radio.setPALevel(RF24_PA_LOW ); if I set it to HIGH, it wont work.

You have two nRF24s and you have not told us which of them that applies to.

Neither have you told us what the "it" is that won't work.

You must always keep in mind that all we know about your project is what you tell us. You, on the other hand, have the whole project on the workbench in front of you and in your head.

Did you read what I said in Reply #1 about the distance between the wireless devices?

...R