• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoRun NFC PN 532 Shield on Arduino
Previous Next

Run NFC PN 532 Shield on Arduino

Posted by: admin , August 3, 2014

[vc_row][vc_column][vc_column_text]CAM00361NFC( Near Field Communication Technology) by RFID( Radio-frequency identification) evolved, and now this technology has been widely used in mobile devices, the mobile with NFC-enabled can act as access cards, transportation cards, credit cards and so on, this to say, it makes the mobile devices more widely.[/vc_column_text][vc_tour][vc_tab title=”Hardware Preparation” tab_id=”1407122220-1-42″][vc_column_text]

  • 1  x  Arduino UNO
  • 1  x  NFC PN532 Shield
  • 1  x  NFC label

[/vc_column_text][/vc_tab][vc_tab title=”Hardware Connect” tab_id=”1407122220-2-92″][vc_column_text]

1. Install NFC PN532 Shield to Arduino

2. Power for arduino with USB

1406858244729

[/vc_column_text][/vc_tab][vc_tab title=”Program code” tab_id=”1407122309823-2-0″][vc_column_text]Now the old version of PN532 libraries is not compatible with most of the versions of 1.5.6, but it can be used if you do a slightly modify.

Click to download PN532 libraries: PN532

1. Download the PN532 libraries then unpacked into the Arduino IDE folder corresponding libraries NFC_PN532_03

NFC_PN532_03

2. Then open Arduino IDE, and choose  File->Examples->PN532->ReadMifareTargetID in turn.

NFC_PN532_02

 3. Choose the correct board type and port number( in this case board choose Arduino UNO, port choose COM3, modify according to different situation)

4. Open the Arduino serial tool, put the cards to the sensing area of the NFC shield

1406858287420

[/vc_column_text][/vc_tab][vc_tab title=”Test result” tab_id=”1407122312322-3-0″][vc_column_text]

1. Put the NFC label close to the sensing area and you will see the return news from the serial area.

NFC_PN532_01

 If read the correct label, the serial will print out Found 1 tags

The back number of  read card # is the corresponding ID number.

NFC_PN532

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Arduino, Shields

Share!
Tweet

admin

About the author

Comments are closed.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors