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
PN532 NFC Shield using SPI
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: PN532 NFC Shield using SPI
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.
Then use those pin assignments in the sketch.
- ian70
- Posts: 9
- Joined: Wed Jan 07, 2015 4:47 am
Re: PN532 NFC Shield using SPI
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
Please be positive and constructive with your questions and comments.