NEED help - PN532 NFC RFID module V3 kit

hello, i just purchased of these NFC module (PN532 NFC RFID module V3 kits – NFC with Android phone) and i am trying to get it to work and it looks like the sketch provided has problems.

this is the product:
http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=90_93&products_id=2242

im using arduino uno.

and this is the error that im getting from arduino software:

In file included from iso14443a_uid.cpp:34:
C:\Users\ROG\Desktop\Arduino\libraries\PN532_SPI/PN532.h:48: error: ‘boolean’ does not name a type
C:\Users\ROG\Desktop\Arduino\libraries\PN532_SPI/PN532.h:60: error: ‘boolean’ does not name a type
C:\Users\ROG\Desktop\Arduino\libraries\PN532_SPI/PN532.h:67: error: ‘boolean’ does not name a type
iso14443a_uid.pde:-1: error: ‘PN532_I2C’ does not name a type
iso14443a_uid.pde:-1: error: ‘pn532i2c’ was not declared in this scope
iso14443a_uid.cpp: In function ‘void setup()’:
iso14443a_uid.pde:-1: error: ‘Serial’ was not declared in this scope
iso14443a_uid.pde:-1: error: ‘class PN532’ has no member named ‘setPassiveActivationRetries’
iso14443a_uid.pde:-1: error: ‘class PN532’ has no member named ‘SAMConfig’
iso14443a_uid.cpp: In function ‘void loop()’:
iso14443a_uid.pde:-1: error: ‘boolean’ was not declared in this scope
iso14443a_uid.pde:-1: error: expected `;’ before ‘success’
iso14443a_uid.pde:-1: error: ‘success’ was not declared in this scope
iso14443a_uid.pde:-1: error: no matching function for call to ‘PN532::readPassiveTargetID(int, uint8_t*, uint8_t*)’
C:\Users\ROG\Desktop\Arduino\libraries\PN532_SPI/PN532.h:50: note: candidates are: uint32_t PN532::readPassiveTargetID(uint8_t)
iso14443a_uid.pde:-1: error: ‘Serial’ was not declared in this scope
iso14443a_uid.pde:-1: error: ‘delay’ was not declared in this scope
iso14443a_uid.pde:-1: error: ‘Serial’ was not declared in this scope

i did download the libraries that you guys provided in the manual and this is one of the codes that i tried:

/**************************************************************************/
/*!
This example will attempt to connect to an ISO14443A
card or tag and retrieve some basic information about it
that can be used to determine what type of card it is.

Note that you need the baud rate to be 115200 because we need to print
out the data and read from the card at the same time!

*/
/**************************************************************************/

// choose to SPI or I2C or HSU
#if 0
#include <SPI.h>
#include <PN532_SPI.h>
#include “PN532.h”

PN532_SPI pn532spi(SPI, 10);
PN532 nfc(pn532spi);
#elif 0
#include <PN532_HSU.h>
#include <PN532.h>

PN532_HSU pn532hsu(Serial1);
PN532 nfc(pn532hsu);
#else
#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>

PN532_I2C pn532i2c(Wire);
PN532 nfc(pn532i2c);
#endif

void setup(void) {
Serial.begin(115200);
Serial.println(“Hello!”);

nfc.begin();

uint32_t versiondata = nfc.getFirmwareVersion();
if (! versiondata) {
Serial.print(“Didn’t find PN53x board”);
while (1); // halt
}

// Got ok data, print it out!
Serial.print(“Found chip PN5”); Serial.println((versiondata>>24) & 0xFF, HEX);
Serial.print("Firmware ver. "); Serial.print((versiondata>>16) & 0xFF, DEC);
Serial.print(’.’); Serial.println((versiondata>>8) & 0xFF, DEC);

// Set the max number of retry attempts to read from a card
// This prevents us from waiting forever for a card, which is
// the default behaviour of the PN532.
nfc.setPassiveActivationRetries(0xFF);

// configure board to read RFID tags
nfc.SAMConfig();

Serial.println(“Waiting for an ISO14443A card”);
}

void loop(void) {
boolean success;
uint8_t uid = { 0, 0, 0, 0, 0, 0, 0 }; // Buffer to store the returned UID
uint8_t uidLength; // Length of the UID (4 or 7 bytes depending on ISO14443A card type)

// Wait for an ISO14443A type cards (Mifare, etc.). When one is found
// ‘uid’ will be populated with the UID, and uidLength will indicate
// if the uid is 4 bytes (Mifare Classic) or 7 bytes (Mifare Ultralight)
success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);

if (success) {
Serial.println(“Found a card!”);
Serial.print(“UID Length: “);Serial.print(uidLength, DEC);Serial.println(” bytes”);
Serial.print(“UID Value: “);
for (uint8_t i=0; i < uidLength; i++)
{
Serial.print(” 0x”);Serial.print(uid*, HEX);*

  • }*
  • Serial.println("");*
  • // Wait 1 second before continuing*
  • delay(1000);*
  • }*
  • else*
  • {*
  • // PN532 probably timed out waiting for a card*
  • Serial.println(“Timed out waiting for a card”);*
  • }*
    }

i did download the libraries that you guys provided in the manual

I think you are confused as to who you are writing to. You need to post a link to where you got the library you are using.

I finally got it working but in a different wa, with a different library.
I have it connected to arduino uno like this:
SCk → 13
MOSI → 11
SS → 10
MISO → 12

NFC shield: http://www.elecfreaks.com/store/rfidnfc-shield-shdnfc-p-479.html

What library did you use, please send the link.

i have the same issue with my Elechouse NFC V3 shield.

thx

Have you interacted with Mobile. Can u share sample code how u interacted with Mobile