NFC Shield - Didn't find PN53x board

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_bill »

Post photos showing your soldering on the shield.
Is there any LED activity on the shield when you run the sketch?

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

Please see photo submitted.

those pins of the pn532 rfid/nfc shield connecting to the arduino uno/r3 board are:
Analog In: 0 to 5
Rst, 3v, 5v, 2xGnd, Vin
Digital i/o: 0 to 13, gnd, ARef

The program I have tried to run from Arduino IDE is: File -> Examples -> Adafruit_NFCShield_I2C -> readMifare

Regarding the LEDs, the orange LED flash when I perform the program upload. After the upload both of the orange LEDs go off, and later 1 orange LED and 1 green LED stay always-on.

Serial port is set to: /dev/ttyACM0 (as I am running Unbuntu).
Serial Monitor: 115200 baud, Carriage return

It returns:
Hello!
Didn't find PN53x board

Nothing happens when I place my MiFare 1K Card to the rfid/nfc shield.
IMG_0491.JPG
IMG_0491.JPG (844.1 KiB) Viewed 1762 times
IMG_0487.JPG
IMG_0487.JPG (670.13 KiB) Viewed 1762 times
IMG_0487.JPG
IMG_0487.JPG (670.13 KiB) Viewed 1762 times
since I only want to test the rfic first, I have not cut the trace between IRQ and Digital i/o 2.

Does the problem relate to firmware version of my rfid/nfc board?
Attachments
IMG_0492.JPG
IMG_0492.JPG (912.92 KiB) Viewed 1762 times

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

by the way, here is the code I downloaed from github. I mentioned in the comment "This is an example sketch for the Adafruit PN532 NFC/RFID breakout boards". Does it mean I need to modify the code if I am using the NFC/RFIC Shield?

Code: Select all

/**************************************************************************/
/*! 
    @file     readMifare.pde
    @author   Adafruit Industries
	@license  BSD (see license.txt)

    This example will wait for any ISO14443A card or tag, and
    depending on the size of the UID will attempt to read from it.
   
    If the card has a 4-byte UID it is probably a Mifare
    Classic card, and the following steps are taken:
   
    - Authenticate block 4 (the first block of Sector 1) using
      the default KEYA of 0XFF 0XFF 0XFF 0XFF 0XFF 0XFF
    - If authentication succeeds, we can then read any of the
      4 blocks in that sector (though only block 4 is read here)
	 
    If the card has a 7-byte UID it is probably a Mifare
    Ultralight card, and the 4 byte pages can be read directly.
    Page 4 is read by default since this is the first 'general-
    purpose' page on the tags.


    This is an example sketch for the Adafruit PN532 NFC/RFID breakout boards
    This library works with the Adafruit NFC breakout 
      ----> https://www.adafruit.com/products/364
 
    Check out the links above for our tutorials and wiring diagrams 
    These chips use I2C to communicate

    Adafruit invests time and resources providing this open source code, 
    please support Adafruit and open-source hardware by purchasing 
    products from Adafruit!
*/http://www.ucg.org.au/?offer/is-god-a-trinity&gclid=CNGtvPqA27UCFcddpQodFSEA8Q
/**************************************************************************/
#include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>

#define IRQ   (2)
#define RESET (3)  // Not connected by default on the NFC Shield

Adafruit_NFCShield_I2C nfc(IRQ, RESET);

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);
.....
....
Last edited by adafruit_support_bill on Fri Mar 01, 2013 7:40 am, edited 1 time in total.
Reason: Please use the 'code' button when submitting code

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

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_bill »

One problem is that you have installed the headers from the wrong side. They should be inserted from the back side and soldered on the front as below.

Also, what Arduino are you using with this?
Attachments
2013_02_28_IMG_1310-1024-400.jpg
2013_02_28_IMG_1310-1024-400.jpg (14.81 KiB) Viewed 1754 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_rick »

Does the PWR LED illuminate?

No modification to the code is needed for using the shield.

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

I have now installed the headers as shown in your picture (without soldering as I would want to use stacking headers later for the wave shield since I am following the Babelfish example).

To answer your questions:
My arduino is: Adruino Uno R3
Both the BUSY and PWR LEDs are on. One is Red; the other is Green.

I get the same error message "Didn't find PN53X board" however.

A side question: In your picture, the way you install the breakout headers will create an extra "spacer" between the top and the bottom cards. If I use stacking headers, there won't be any "spacer" created between my rfid on the top and the bottom arduino card. Would this create contact (or short-circuit) problem? I can see a six jumpers easily touch the top card if there is no spacer.

Many thanks!!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_rick »

If you want to use stacking headers, you're going to have to install them now. The shield simply will not work unless you solder the pins.

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

Please bear with me. I currently don't have the the stacking headers in hand. I will update you of my test result in the next couple days after I have got the headers and done the soldering.

I suppose the stacking headers that I need to buy for the babelfish project (and for this initial rfid testing) are:
1 x 6-pin
3 x 8-pin

And I will leave SCL and SDA open when connecting the stacking headers.

Is this correct? Thanks a lot!! Talk to you later.

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

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_bill »

For new builds we recommend the R3 compatible stacking headers: http://www.adafruit.com/products/85
These cover the full R3 header, including the new SDA/SCL pins. This will ensure compatibility with Megas, Leonardos, Dues etc.

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

I have soldered the headers. Very poor workmanship though. As you can see in the pictures, both the red and green light are on. I only have the 8-pin and te 6-pin headers. Therefore, I didn't fill the SDA and SCL. I have watched the adafruit Babelfish video many times. If I have watched the Babelfish video correct, the two holes are not filled as well in the video. Since my project is to repeat the Babelfish, would I be ok not to fill SDA and SCL? The problem is I could not find any 10-in header.

My the other problem is my poor workmanship with my soldering. After my soldering, the pins could not be inserted all the way in to the sockets on the Arduino Uno/R3 board. I can see red/green lights, however (as shown in the pictures).

Unfortunately, I still see the same "didn't find PN53x board" despite there are red/green lights, and the attachment between the rfid and the arduino boards feel firm for me (except that, the pins could not be inserted all the way in as mentioned).

Do you need me to desolder and do the soldering again :(

This does not look promising. Is there anything wrong with my boards? Would you insist that I look for a 10-pin header to fill up SCL and SDA as well?

Many thanks!!
Attachments
IMG_0499.JPG
IMG_0499.JPG (625.47 KiB) Viewed 1677 times
IMG_0513.JPG
IMG_0513.JPG (448.7 KiB) Viewed 1677 times

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

Good news!! Although I don't have a 10-pin stacking header to connect to SDA and SCL, I have temporarily used 2 breakout pin to connect the SDA and SCL of the rfid card to the arduino underneath. It nows work!!! I can now "Found chip PN532".

Question: in the Babelfish video, the SDA and SCL pins are not used. 8-pin stacking header (not 10-pin stacking header) is used. Do I not need SDA and SCL if I am doing the Babelfish project?

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

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_bill »

the pins could not be inserted all the way in as mentioned
The stacking headers have extra-long pins, so this is normal.
in the Babelfish video, the SDA and SCL pins are not used. 8-pin stacking header (not 10-pin stacking header) is used. Do I not need SDA and SCL if I am doing the Babelfish project?
In theory, with an UNO, you do not need them, since these are the same signals as on pins A4 and A5. I suspect there is a problem with the solder joint on pins A4 and/or A5 and connecting SDL/SCA give you a redundant connection that fixes the problem.

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

assuming a4 and a5 have problem, what shall I do to continue my Babelfish project? Simply leave the connection to SDA and SCL on? How about the connection from the wave shield. If a4 and a5 is not available, how should I connect to the wave shield?

Thanks!!

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

Re: NFC Shield - Didn't find PN53x board

Post by adafruit_support_bill »

If you leave SDA/SCL connected, they should cross/connect to A4/A5 on the stacking headers for the wave shield too.

But if you post a photo clearly showing the soldering on A4/A5 we can check that too.

mko2013
 
Posts: 12
Joined: Thu Feb 28, 2013 8:33 am

Re: NFC Shield - Didn't find PN53x board

Post by mko2013 »

Please see the photo attached.
2 photo for the A4 and A5 soldering.

I wish I could take better shots but my camera just could not do a good for for close-up shots.
Attachments
IMG_20130305_205114.jpg
IMG_20130305_205114.jpg (937.93 KiB) Viewed 2612 times
IMG_20130305_204641.jpg
IMG_20130305_204641.jpg (889.99 KiB) Viewed 2612 times

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

Return to “Arduino Shields from Adafruit”