PN532 NFC Shield using SPI

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ian70
 
Posts: 9
Joined: Wed Jan 07, 2015 4:47 am

PN532 NFC Shield using SPI

Post by ian70 »

I have a NFC PN532 Shield with an Arduino Uno R3. It works fine using I2C and the associated Adafruit Github library. However I want to communicate with the shield using SPI. I saw from an old post you simply solder closed the two sets of pads, SEL0 and SEL1 to get SPI to work. I have done this on a DuinoFun shield (I guess and Adafruit look alike) and loaded the Adafruit Github PN532 breakout library. However it does not see the PN532. ("Hello, Cannot see PN5xx"). My question is: Are the same Arduino pins used as in the breakout board sketch? (SCK = 4, MOSI = 7, SS = 6, MISO = 5)? Or do I have to change pins to use SPI?
Thx

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: PN532 NFC Shield using SPI

Post by adafruit_support_rick »

We don't recommend using SPI with the shield. The SPI signals are not all brought out to digital pins. However, you can jumper from MOSI to pin 7,SS to pin 6, MISO to pin 5, SCK to pin 4, and RST to pin 3. IRQ is already connected to pin 2.

Then use those pin assignments in the sketch.

User avatar
ian70
 
Posts: 9
Joined: Wed Jan 07, 2015 4:47 am

Re: PN532 NFC Shield using SPI

Post by ian70 »

Thx for your advice. I have Arduino S/W that reads FeliCa (Sony) cards but it has been set up for SPI. I want to put it all onto a shield. Regards, Ian

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”