NFC Shield for Arduino - PN532 & LibNFC

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

Moderators: adafruit_support_bill, adafruit

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby amlll » Mon Nov 26, 2012 8:24 am

I already posted this in the PN542 NFC Shield + FTDI forum:
I found out that SEL0 maps to PN532 pin 17 which is I1 and SEL1 maps to pin 16 that is I0.
That seems like a little error in the silk screen???
So I will try to leave SEL0 and put a solder blob on SEL1 when using the high speed uart connection.
For me it works but don't forget to send 0x55 and 30x 0x00 to get past the PN532 wake-up.
Hope this is of any use.
amlll
 
Posts: 2
Joined: Fri Nov 16, 2012 5:38 am

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby adafruit_support_rick » Mon Nov 26, 2012 1:12 pm

amlll wrote:Hope this is of any use.

Absolutely! Good find - thank you very much.

The board designer has verified this, and the silkscreen will be corrected on the next release of the board. Meanwhile, we are updating the product pages with notes about this.

@Mimi_Salade -
@satspace -

Please give this a try and report back.

Sorry for the problems! :oops:
User avatar
adafruit_support_rick
 
Posts: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby satspace » Wed Nov 28, 2012 11:34 am

driverblock wrote:
amlll wrote:Hope this is of any use.

Absolutely! Good find - thank you very much.

The board designer has verified this, and the silkscreen will be corrected on the next release of the board. Meanwhile, we are updating the product pages with notes about this.

@Mimi_Salade -
@satspace -

Please give this a try and report back.

Sorry for the problems! :oops:



Ok, now it "works"

At least now "nfc-list" gives me something. (not always....but this I suspect is another issue)
Anyway it's a mess to build the environment of libnfcx.x.x and various auditing tools like mfoc or rfidiot or similar: when I find a working libnfc version, I'm not able to compile the tools because some incompatibility ... now I have to dig in this direction.

Thanks
satspace
 
Posts: 4
Joined: Wed Nov 21, 2012 9:47 am

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby Mimi_Salade » Fri Nov 30, 2012 8:43 am

I had already tried every selector combination (none - 0 - 1 - 0+1) but it didn't work.
I'll try again to see if I had forgotten something and I'll tell you if it works.
Thanks for your help.

Edit : It's a fail... :(
Mimi_Salade
 
Posts: 11
Joined: Sun Aug 12, 2012 2:24 pm

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby adafruit_support_rick » Mon Dec 03, 2012 10:41 am

@Mimi_Salade-
I'm sorry you are unable to make it work. I don't know what your problem could be.

The designer says that you really should be using the breakout board instead of the shield for serial communication. Contact support@adafruit.com if you'd like to arrange for an exchange. Include a link to this thread and your original order number.
User avatar
adafruit_support_rick
 
Posts: 2892
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby Mimi_Salade » Tue Dec 04, 2012 10:27 am

Thank you very much for your kindness.
I'll give it a new try (just to check) before bothering you.
If different versions of LibNFC, selectors, wiring etc... don't make it work, i'll think about it, even if it was nice to have an Arduino shield.
I thought I could use it for both Arduino and PC.
Nevermind, thanks a lot for your help, and here I go for the last try... :)
Mimi_Salade
 
Posts: 11
Joined: Sun Aug 12, 2012 2:24 pm

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby anoxy78 » Sun Feb 10, 2013 8:29 am

@Mimi_Salade : We just had the same problem over here. So to sum up :
The silk screen on "old boards", i.e. previous to the correction mentioned in this topic (nov 12 ?), is wrong, so to use UART SEL0 should be OPEN, and SEL1 CLOSED.
Second, as amlll said, it is important to wait a time long enough to pass the pn532 wake up sequence, so do send a 0x55 followed by some 30 0x00. To do so, edit libnfc/drivers/pn532_uart.c line 275 and change the pn5328wakeup_preamble[] by adding several 0x00.

Good luck !
anoxy78
 
Posts: 1
Joined: Fri Sep 28, 2012 12:37 pm

Re: NFC Shield for Arduino - PN532 & LibNFC

Postby jeje » Tue Apr 16, 2013 9:08 am

As I went through many of the issues explained in previous posts and as it was a PITA to get it working, I've written some notes on a blog post, if that helps:
http://www.jerome-bernard.com/blog/2013 ... ia-libnfc/

IHTH
jeje
 
Posts: 1
Joined: Tue Apr 16, 2013 9:02 am
Location: Paris, France

Previous

Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: kjones.unltd, mibignistinly and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]