pert
I read that page about SPI and plunged deeper into despair
. Like many technical documents, not just in electronics, it appears to be written for people with a basic understanding of the subject and an easy familiarity with the jargon. To be honest, it was not much use to me ... but ... with that, the comments from OldSteve, and the Wikipedia page I get the impression that I can forget about pin 10, forget about SS altogether, just don't use pin 10 as an INPUT while using SPI.
That leaves two small mysteries for my starting post on this thread.
- The IRQ pin, number 8, on the NRF24L01 PCB. I am assuming that that is an Interrupt Request pin and of no significance in a program as simple as GettingStarted.
- Is there anything to be gained or lost using the MOSI, MISO, and SCK pins in the ISCP set as against using pins 11, 12, an 13?
FTR: while setting up again this afternoon I put my meter across the Gnd and Vcc pins on one of the UNOs while it was running the Blink program. There is a substantial fluctuation in voltage with the blinking of the on-board LED, which explains Terry's concern about power supply to the NRF24L01. In my setup, my NRF24L01s have independent, stabilized power.
Despite that, when the GettingStarted hardware is set up and the Arduino software is compiled and uploaded (see photo too big to attach) starting serial monitor for radioNumber = 0 outputs
RF24/examples/GettingStarted
*** PRESS 'T' to begin transmitting to the other node
Sent response 1953518614
Sent response 4096
Sent response 269488144
Sent response 353834516
Sent response 1461000021
Sent response 0
Sent response 0
Sent response 0
Sent response 269484032
Sent response 0
Sent response 0
Sent response 8192
Sent response 0
Sent response 672141332
Sent response 0
Sent response 0
Sent response 0
Sent response 269484032
Sent response 269484032
Sent response 268435456
Sent response 1342308629
Sent response 1316117
Sent response 1316117
Sent response 336925973
Sent response 4
Sent response 0
Sent response 0
Sent response 268435968
Sent response 1410662656
Sent response 268435456
Sent response 0
Sent response 0
Sent response 0
Sent response 269751552
Sent response 337137749
Sent response 0
Sent response 269504530
Sent response 16
Sent response 5246976
Sent response 0
Sent response 1427116032
Sent response 1343225856
Sent response 0
Sent response 134217744
Sent response 0
Sent response 0
Sent response 0
Sent response 0
(note that this is without radioNumber = 1 even being powered up). When radioNumber = 1 is powered up (radioNumber = 0 continues on its merry way) it reports
RF24/examples/GettingStarted
*** PRESS 'T' to begin transmitting to the other node
.
Then, entering 'T' in the monitor for radioNumber = 0 I get
Sent response 3147008
Sent response 0
Sent response 50331648
Sent response 0
Sent response 0
Sent response 0
Sent response 0
Sent response 0
Sent response 335544320
Sent response 48
*** CHANGING TO TRANSMIT ROLE -- PRESS 'R' TO SWITCH BACK
Now sending
failed
Sent 22250916, Got response 0, Round-trip delay 10156 microseconds
Now sending
Sent 23262528, Got response 0, Round-trip delay 17724 microseconds
Now sending
Sent 24281700, Got response 268435456, Round-trip delay 18320 microseconds
Now sending
Sent 25301860, Got response 0, Round-trip delay 17888 microseconds
Now sending
Sent 26321204, Got response 0, Round-trip delay 18380 microseconds
Now sending
Sent 27341036, Got response 0, Round-trip delay 18272 microseconds
Now sending
Sent 28360764, Got response 0, Round-trip delay 18340 microseconds
Now sending
Sent 29380556, Got response 66304, Round-trip delay 18196 microseconds
Now sending
Sent 30400400, Got response 16, Round-trip delay 18132 microseconds
Now sending
Sent 31420020, Got response 0, Round-trip delay 18384 microseconds
Now sending
Sent 32439852, Got response 0, Round-trip delay 18208 microseconds
Now sending
Sent 33459512, Got response 0, Round-trip delay 18240 microseconds
Now sending
Here's the rub:
This is not my code! Apart from the change in radioNumber in one of the code instances it is just as loaded out of the Arduino IDE. I have, to the best of available equipment, dealt with the issue of power supply to the NRF24L01s. I have, once again, carefully complied with Terry's instructions on how to run GettingStarted, and it still refuses to run.
I am forced to the conclusion that this is another instance of what I remember Terry describing as something like "Works today, but not tomorrow!" How can we find out if it is, indeed, a problem on the Arduino side, and if it is then how does it get fixed?