Microduino-Module NFC

From Microduino Wiki
Revision as of 02:47, 22 August 2014 by Pkj (talk) (Features)
Jump to: navigation, search
Language: English  • 中文
Microduino-NFC

Microduino NFC is a two-way connection and identification module for close range wireless communication, work at 13.56MHz frequency, about 10cm working distance and realize the data exchange and service.

Features

  • Use PN532 highly integrated contactless reading and writing chip, contains a 80C51 microcontroller core with 40kB ROM and 1 kB RAM;
  • Integrate the RF field detector;
  • Integrate the data mode detector;
  • Low power consumption mode, hardware power lost mode and software power lost mode;
  • In reading and writing mode, support Mifare Classic encryption, which can support 212kbit/s and 424 kbit/s two kinds of higher data transfer rate;
  • In FeliCa mode,support 106kbit/s, 212kbit/s and 424kbit/s communication rate;
  • Integrate the NFCIP-1's RF interface, transfer rate up to 424kbit/s.

Specifications

  • 2.7V~5.5V power;
  • Specific I/O port to contorl external device;
  • In reading and writing mode, the default working distance more than 50mm, actually distance depends on antenna size, tuning, and power supply;
  • In NFCIP-1 mode, the default working distance more than 50mm, actually distance depends on antenna size, tuning, and power supply;
  • In FeliCa mode, the default working distance more than 100mm, actually distance depends on antenna size, tuning, and external field strength;
  • Reading and writing mode supports ISO/IEC 14443A/MIFARE mechanism, FeliCa mechanism and ISO/IEC 14443B mechanism;
  • FeliCa mode supports ISO 14443A / MIFARE mechaniam、card operation mode and FeliCa mechanism;
  • Use IIC communicate method.
PN532 Microduino
GND GND
VCC 3V3
SDA SDA
SCL SCL


Microduino-NFC


Document

Development

Library: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_03_Microduino_NFC_PN532

Test program: https://github.com/Microduino/Microduino_Tutorials/commit/f642ac523261cc08f58d9c521f5806b19c02ce15

Application

Use the test program to write data to NFC. Note: this program only can read ISO14443A four bytes label

  • Prepared hardware:Microduino FT232R, Microduino Core and Microduino NRF
  • Prepared software:Adafruit_NFCShield_I2C library and Arduino IDE;
  • Download the library and test program, uncompress the library and copy to libraries folder of Arduino IDE;
  • Open the ”Microduino_Write_cards” test program, compile it and select the "Microduino Core (Atmega328P@16M,5V)" to download;
  • Open the serial monitor, select the baud rate, if successed, serial will retuen some data and print “Please press 'f' to format.....”、“Please press 'r' to Rewrite data......”;
  • Step 1:Input ’f’ to format the label, you can see the format progress;
  • Step 2:Input ’r’ to rewrite new data, if successed, then return ”Writing URI to sector 1 as an NDEF Message”. If failed, repeat from step 1 until data was wrote successfully.
  • Use a mobile phone with NFC label to test
  • There are three wrote data:
    • Network address
      • const char * url = "microduino.cc";
      • uint8_t ndefprefix = NDEF_URIPREFIX_HTTP_WWWDOT;
    • Mail
      • const char * url = "mail@example.com";
      • uint8_t ndefprefix = NDEF_URIPREFIX_MAILTO;
    • Phone number
      • const char * url = "51508987";
      • uint8_t ndefprefix = NDEF_URIPREFIX_TEL;

User can choose in the program, the annotation of "//" can be deleted, and can define your own content.

Buy

History

Picture

Front

Microduino-NRF Front

Back

Microduino-NRF Back

Video