Can you monitor the output of the Arduino with the other nRF24 in parallel with the Arduino with the SD Card so that you can see what the Arduino with the SD Card should be receiving.
Sorry, but I don't understand...
Also, pay attention that when the Arduino nano display something on the serial monitor is because the SD card slot is detached, so I suppose that the "initialization failed" is referred to trying to open a connection to the Sd card reader
What I mean by "in parallel" is to have two Serial screens on your PC with the two Arduinos connected to 2 different USB ports so you can see at the same time what both Arduinos are doing.
I haven't investigated the SD Card library code. It seems to be a bit of a labyrinth. My feeling is that some parts of it try to initialize when it is not actually necessary.
What I mean by "in parallel" is to have two Serial screens on your PC with the two Arduinos connected to 2 different USB ports so you can see at the same time what both Arduinos are doing.
What I mean by "in parallel" is to have two Serial screens on your PC with the two Arduinos connected to 2 different USB ports so you can see at the same time what both Arduinos are doing.
How can I do it?
What is it about my suggestion that you don't understand?
I think you need to start two instances of the Arduino IDE so that the Serial Monitor in each of them can connect to a different Arduino. Or you could use another terminal program such as PuTTY
Just do what you says. With your sketch and the SD card reader in the circuit the only messages are there:
"SimpleRxAckPayload Starting" for the receiver and
"Source File /mnt/sdb1/SGT-Prog/Arduino/SDandNRF/testSDnRF24.ino
testSDnRF24 Starting" for the transmitter.
Simply the transmission doesn't work with the sd card reader, why?
Does the wireless part work if you comment out the calls to setupSD() and listFiles() on lines 55 and 56 (i.e. in loop() )?
Nothing has changed. But I definitely think that is a sd card module problem, see this thread. But I don't have the skill to do such as a small solder. I search online but the only board I see is the one I have...
If it still does not work with the calls for the SD Card commented out (but with the SD Card module connected) it would seem that there is some electrical feature of the module causing the problem. I don't have one of those modules so I can't suggest a solution. It seems like whoever designed the module did not consider that it would be expected to work with other SPI devices.
Another test is whether the code works with the calls to the SD Card included but with the module disconnected?
The newer versions of the Catalex modules have corrected the problem with releasing MISO. It now ties MISO to CS instead of ground. Verify the schematic on an replacement you order.
Hi I was having the same problem it took me smtime before I solved it so inorder to get the two modules working together use the sdfat library and inside it go for examples it will be somthng calld software spi here u can change the moso miso sck pins to any other pins you like another thing to be noted is that you have to edit a file in the sdfat lib folder in c drive directly editing may be denied so copy the folder and make the change and edit it and then replace the folder the file which has to edited will be specified in the softwarespi program itself I am actually posting this because I have read almost all links related to this topic and never got a correct replay I hope this would be helpful