[SOLVED] Issues with nRF24L01p and Arduino Nano

boshkash1151:
Settings before:
radio.setPALevel(RF24_PA_MIN);
radio.setAddressWidth(4);
radio.setDataRate(RF24_256);
radio.setCRCLength(RF24_CRC_8);
radio.setAutoAck(false); // this was the my issue and so to make things work i had to change to autoack.

Settings after
radio.setPALevel(RF24_PA_MAX);
radio.setAddressWidth(5);
radio.setDataRate(RF24_2MBPS);
radio.setCRCLength(RF24_CRC_16 );
radio.setAutoAck(true);

Sorry if I am being very dense ...

Did you have the same settings on both Arduinos before and after?

In Reply #12 you said

I tried your code and it works only when i disable the autoack

which implies that you had setAutoAck(true) and changed it to false. So how come you are now saying it was false and needed to be true?

...R

Robin2:
Sorry if I am being very dense ...

Did you have the same settings on both Arduinos before and after?

Not at all thanks for help me :slight_smile:

Yes exactly the same before and after on both modules. Even afterwards i tried to ensure that those changes really fixed the issue, I left on the built-in antenna node the old settings and added the new settings on the external antenna node and they did not work. In short both nodes have the exact same code:

radio.setPALevel(RF24_PA_MAX);         
radio.setAddressWidth(5);                 
radio.setDataRate(RF24_2MBPS);       
radio.setCRCLength(RF24_CRC_16 );             
radio.setAutoAck(true);

Robin2:
In Reply #12 you said

I tried your code and it works only when i disable the autoack

which implies that you had setAutoAck(true) and changed it to false. So how come you are now saying it was false and needed to be true?

...R

Sorry this was my mistake as I thought it was enabled by default. I thought that explicitly setAutoAck with false would change the already existing state of true.

What I did exactly is that I took your code for the receiver and transmitter and copied each to their respective node and then added radio.setAutoAck(false)

Thanks.

It would be interesting to know which of those settings is the critical one whose absence prevents the thing working.

Sorry this was my mistake as I thought it was enabled by default.

It is in my examples.

...R