i am designing a remote antenna switch and controller that communicate by means of nRF24l01 transceivers.
Here is the problem:
If I send a byte to the remote receiver, it echos back the number just fine.
On the second transmission, whatever byte I send, it sends back the first transmitted byte.
The third transmission also sends back the original byte.
On the 4th transmission, and for ever after, it fails to send back anything until the receiver is reset. Then the same pattern repeats itself.
The setup is as follows:
Both transceivers have 10uF ceramic caps soldered directly across the power input terminals of the module. (I have four modules and they all behave exactly the same)
No line to the transceivers exceeds two inches.
I am using the 3.3v supply from a nano clone and have checked the 3.3 v line with an oscilloscope - digital noise is less than 5 mV. The voltage is 3.26V.
I have loaded the example program "pingpair-ack" from the RF24 library examples. Everything works perfectly no matter which transceiver is used as the transmitter.
I am leaving the pinpair_ack program on the remote node and I have essentially copied its transmitter code as my function. -- No Joy-- it does the same exact thing.
I am at my wits end. I hope someone can offer some guidance.
Attached is the screen capture of both transceivers state. Also my transmitting node's code with everything eliminated except the code to read two buttons and the transmitting function. The receiver node has the pingpair_ack code on it.
new 1.txt (5.91 KB)
pingpair_ack.ino (4.52 KB)