Loading...
Pages: [1]   Go Down
Author Topic: Can't get PN532 to work  (Read 299 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I'm new on this forum so I will introduce myself for a bit.
I'm Justin, 16 years old and from Holland. I have been busy with Arduino a few months now and because I'm in my last year of secondary school, I have to write a
Final Assignment.

For this, I have choosen the subject 'NFC and RFID'. I did this because this technology really grabs my interests.
As an addition to my text-based Final Assignment, I would like to make an NFC-device. Here starts the trouble.

I bought an NFC shield for my Arduino, some tags and started building. Clicking the shield on top of the arduino, download the PN532-library and loaded
an example project (readMifareTargetID.PDE).
After this, I clickec on the upload button inside the Arduino software. I got the following error - even though I installed the library correctly:

 

I don't understand what's going wrong.

I use an Arduino Uno R3 with  this shield: http://www.seeedstudio.com/wiki/NFC_Shield
I really hope someone can help me, I don't know what to do right know and I'm really stuck with my whole project.

Thank you!
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 31
Posts: 1733
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, for some reason I am unable to see your error picture, can you copy and paste the error message or type it out.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah I see what you mean.

« Last Edit: November 19, 2012, 02:41:58 pm by jdkroos » Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 31
Posts: 1733
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You installed the files in the wrong folder, where did you put them, in the Arduino folder OR the Arduino 1.0.1 (your version) folder?

Try swapping the files to the other folder and upload again.
« Last Edit: November 19, 2012, 03:10:18 pm by HazardsMind » Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I installed them in Arduino-1.0.2. After your message, I tried to install in My documents/Arduino/Libraries but got the same error.
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 31
Posts: 1733
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post your main code and your .h and .cpp files.
Better yet give me a link to where you downloaded your code and I'll try to compile it.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the link for the PN532 library:
http://garden.seeedstudio.com/images/8/84/PN532_SPI.zip

My example file can be found in de "examples".
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 31
Posts: 1733
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I figured out the problem.
First, put the folders in the Arduino 1.0.2 folder under library.

Second, open both PN532.h and PN532.cpp and change #include <Wprogram.h> TO #include <Arduino.h> for both.
Third, save the newly edited files and close them and the arduino program.

Reopen Arduino and enjoy your working program.

Sorry I took so long to respond, I was busy with other things, anyway, I had that problem myself and yours took less than ten seconds to fix.
Your one of the lucky ones, others...not so fast.
« Last Edit: November 19, 2012, 09:33:26 pm by HazardsMind » Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you very much. I'm not at home right now, but when I am, I will definetly try it!
Logged

Pages: [1]   Go Up
Print
 
Jump to: