So I've been trying to diagnose a problem I'm having with these modules.
I have followed Robin2's tutorial, but unfortunately it's a no-go.
The SimpleRx & SimpleTx have been loaded in a Nano and an GSM MKR 1400.
The Tx is spamming
17:20:10.112 -> Data Sent Message 0 Tx failed
17:20:11.149 -> Data Sent Message 0 Tx failed
17:20:12.152 -> Data Sent Message 0 Tx failed
17:20:13.165 -> Data Sent Message 0 Tx failed
17:20:14.171 -> Data Sent Message 0 Tx failed
17:20:15.178 -> Data Sent Message 0 Tx failed
17:20:16.218 -> Data Sent Message 0 Tx failed
17:20:17.227 -> Data Sent Message 0 Tx failed
17:20:18.235 -> Data Sent Message 0 Tx failed
17:20:19.240 -> Data Sent Message 0 Tx failed
and the RX is rapidly spamming "Data received" eventhough there is obviously not data coming through.
In Robin2's topic there is a CheckConnection.ino.
But unfortunately even this one is not returning anything useful.
It hangs at
17:19:56.485 -> CheckConnection Starting
17:20:03.418 ->
17:20:03.418 -> FIRST WITH THE DEFAULT ADDRESSES after power on
17:20:03.418 -> Note that RF24 does NOT reset when Arduino resets - only when power is removed
17:20:03.418 -> If the numbers are mostly 0x00 or 0xff it means that the Arduino is not
17:20:03.418 -> communicating with the nRF24
17:20:03.418 ->
17:20:03.418 ->
17:20:03.418 ->
17:20:03.418 -> AND NOW WITH ADDRESS AAAxR 0x41 41 41 78 52 ON P1
17:20:03.418 -> and 250KBPS data rate
17:20:03.418 ->
17:20:03.418 ->
17:20:03.418 ->
And that's all I'm getting.
My guess is there is something wrong with the cabling, but I double, triple, quadruple checked everything. Even the CE/CSN pins, everthing is cabled as it should.
Could it be the board is defective? I don't know.
I'm out of ideas.
Did you run the CheckConnection.ino program from post #30 of the tutorial. It will test the physical connection between the rf24 module and the processor (not wireless)?
Some other things to look at:
Make sure the rf24 power supply can provide enough current. This is especially true for the high power (external antenna) modules. I use homemade adapters like these. They are powered by 5V and have a 3.3V regulator on the board. Robin2 also has suggested trying with a 2 AA cell battery pack.
If using the high powered radios make sure to separate them by a few meters. They may not work too close together. Try the lower power settings.
Reset the radios by cycling power to them after uploading new code. I have found that to help. They do not reset with the Arduino.
Switch to 1MB data rate to catch the not so cloned clones.
'radio.setDataRate( RF24_1MBPS );'
Also for some clones, change TMRh20's RF24.cpp line 44
_SPI.setClockDivider(SPI_CLOCK_DIV2);
Into
_SPI.setClockDivider(SPI_CLOCK_DIV4);
Yes, I ran the CheckConnection.ino.
But as I said it hangs...I'm not getting the 'details' through.
I am not using the high powered one. I use the one with the built in antenna.
For power I have a lab power supply and connected both to it and gave them 3.4v.
I also put a 10uF capacitor between GND and VCC.
Also, they are at a 2 meter distance.
I have power cycled them aswell.
None of the above worked.
You are using both an 8bit Nano and a Arm 32bit device. You have to be careful about your use of data types which don't nicely translate between the platforms.
You have shown an "empty" connection check. Have you attempted this on both platforms with the same result ?
Oh sorry I forgot to say, on the Nano, the connection check is OK. When I swap modules from the MKR to the Nano, it also works fine and connection check is saying everything is fine.
I don't know the MKR GSM 1400 but I've just looked at a pinout diagram here: https://docs.arduino.cc/hardware/mkr-gsm-1400 . The SPI pins, which are required for the NRF24L01, do not appear to match the same pinout as found on say the Nano. For example, the SPI clock SCK appears to be on pin D9 whereas on the Nano it is pin D13.
Try to find some information about using SPI with that MKR board.