Need help with NFC shield

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
kevinljxljx
 
Posts: 10
Joined: Mon Feb 04, 2013 1:44 am

Need help with NFC shield

Post by kevinljxljx »

Hi guys. So I just got a Adafruit NFC shield today. I downloaded the library and burned the example program to my arduino Mega 1280. But it didn't work......... I connected VCC and GND (of course...), SDA and SCL to 20 and 21 port, analog 4,5 to analog 4,5 on Arduino board, Digital 2 to PWM 2 on Arduino board and RSt to RST. However, when I try to run the program, the Serial Monitor show "Hello, Didn't find PN53X board." Did I use the wrong library and wrong program or what? Can someone helps me out? Thanks!

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Need help with NFC shield

Post by adafruit_support_bill »

SDA and SCL to 20 and 21 port, analog 4,5 to analog 4,5 on Arduino board
Analog 4,5 are SDA and SCL on an UNO. On the Mega, you should only connect SDA, SCL to pins 20, 21.

User avatar
kevinljxljx
 
Posts: 10
Joined: Mon Feb 04, 2013 1:44 am

Re: Need help with NFC shield

Post by kevinljxljx »

Thanks, I finally figure out that I connect the wrong port. :shock:
I have some more questions that I am trying to write something to my card, but the example programs seems doesn't like to work. Can you help me out?
Finally, I am confused about NDEF cards and mifare classic cards. What's the difference between these two types of card?
Thanks!
Attachments
QQ20130207-3.png
QQ20130207-3.png (38.93 KiB) Viewed 570 times
QQ20130207-1.png
QQ20130207-1.png (37.87 KiB) Viewed 570 times

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Need help with NFC shield

Post by adafruit_support_bill »

the example programs seems doesn't like to work. Can you help me out?
Can you be more specific about the problem?
Finally, I am confused about NDEF cards and mifare classic cards. What's the difference between these two types of card?
NDEF support is limited at this point. There are a few threads on the forum related to this topic:

http://forums.adafruit.com/viewtopic.ph ... 9&p=175664
http://forums.adafruit.com/viewtopic.ph ... ef#p167479

The detailed description of the differences is here:
http://www.nxp.com/documents/applicatio ... AN1304.pdf

User avatar
kevinljxljx
 
Posts: 10
Joined: Mon Feb 04, 2013 1:44 am

Re: Need help with NFC shield

Post by kevinljxljx »

yeah... so I was trying to use the example program to write my email address to the card, but when I try to upload the program, the software tells me error, like what the screenshot shows.
BTW, do you have a list of what command I can use with the library? Thanks!

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Need help with NFC shield

Post by adafruit_support_bill »

There are three definitions of "url" in that example. You can only use one of the three, you have to comment out the other two.

User avatar
kevinljxljx
 
Posts: 10
Joined: Mon Feb 04, 2013 1:44 am

Re: Need help with NFC shield

Post by kevinljxljx »

ok I get it now...I can only use one out of three....
and how about this ? I don't know where the error come from....
Attachments
QQ20130207-2.png
QQ20130207-2.png (56.2 KiB) Viewed 530 times

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Need help with NFC shield

Post by adafruit_support_bill »

Move the array assignment up to the declaration line for data.

Code: Select all

uint8_t data[16] = {'a', 'd', 'a',     ... etc...

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

Return to “Arduino Shields from Adafruit”