Microduino-Module NFC

From Microduino Wiki
(Redirected from Microduino-NFC)
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

  • Adopt highly integrated contactless reading and writing PN532 chip with a 80C51 microcontroller core of 40kB ROM and 1 KB RAM.
  • Integrate the RF field detector and data mode detector.
  • With low-power mode, hardware power-down mode and software power-down mode.
  • Support Mifare Classic encryption in reading and writing mode, offering 212kbit/s and 424 kbit/s two kinds of higher data transmission rates.
  • Support 106kbit/s, 212kbit/s and 424kbit/s communication rate in FeliCa mode.
  • Integrate the NFCIP-1's RF interface with transmission rate up to 424kbit/s.

Specification

  • Power supply (2.7V-5.5V).
  • With specific I/O port to control external devices.
  • With default working distance of more than 50mm under reading & writing mode.
  • With default working distance up to 50mm under NFCIP-1 mode.
  • With default working distance of about 100mm under FeliCa mode.
  • The reading & writing mode supports ISO/IEC 14443A/MIFARE, FeliCa and ISO/IEC 14443B mechanism.
  • FeliCa mode supports ISO 14443A / MIFARE and FeliCa mechanism.
  • Adopt IIC communication mode.
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 succeeding, serial will return 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 succeeding, 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