hei, i'm trying to use 2 devices NFC Shield v2, and SD shield V2 at the same time using arduino Uno board. Both modules uses SPI communication, i'm change the ss pin of SD shield to pin7 and the NFC shield still at pin10. i'm combine the NDEF library for NFC shield and SD library, but the result is the NFC shield didn't found. Can anyone help me?
You should disable all other SPI devices before starting any of them. The code below disables the SD card SPI before starting the NDEF reader so the SD card won't corrupt the SPI bus during the startup.
i'm trying to disable other SPI devices by put the SS pin to HIGH, but it didn't even work.
The connection is Arduino->NFC->SD.
i try to disconnect the MISO of the SD Shield from the board, and the NFC did work well, but when the MISO pin connected to the board. NFC didn't found.
and now i'm found that the problem is the NDEF library, when i'm combining with NDEF library it does error. but i try to combining SD library with NFC PN532 original library, it work fine.
But what i want is using NDEF library, and i don't know where's the problem in NDEF library.
I would change the SD shield slave select instead. Install the SD card on top of the NFC shield, first bending D10 just enough on the SD shield so it doesn't insert into the NFC shield, then install a jumper wire from D10 to D4.