Difference between revisions of "Microduino-Module NFC"

From Microduino Wiki
Jump to: navigation, search
(Features)
(Application)
 
(3 intermediate revisions by 3 users not shown)
Line 14: Line 14:
 
*Integrate the NFCIP-1's RF interface with transmission rate up to 424kbit/s.
 
*Integrate the NFCIP-1's RF interface with transmission rate up to 424kbit/s.
  
==Specifications==
+
==Specification==
*2.7V~5.5V power;
+
*Power supply (2.7V-5.5V).
*Specific I/O port to contorl external device;
+
*With specific I/O port to control external devices.
*In reading and writing mode, the default working distance more than 50mm, actually distance depends on antenna size, tuning, and power supply;
+
*With default working distance of more than 50mm under reading & writing mode.
*In NFCIP-1 mode, the default working distance more than 50mm, actually distance depends on antenna size, tuning, and power supply;
+
*With default working distance up to 50mm under NFCIP-1 mode.
*In FeliCa mode, the default working distance more than 100mm, actually distance depends on antenna size, tuning, and external field strength;
+
* With default working distance of about 100mm under FeliCa mode.
*Reading and writing mode supports ISO/IEC 14443A/MIFARE mechanism, FeliCa mechanism and ISO/IEC 14443B mechanism;
+
*The reading & writing mode supports ISO/IEC 14443A/MIFARE, FeliCa and ISO/IEC 14443B mechanism.
*FeliCa mode supports ISO 14443A / MIFARE mechaniam、card operation mode and FeliCa mechanism;
+
* FeliCa mode supports ISO 14443A / MIFARE and FeliCa mechanism.
*Use IIC communicate method.
+
*Adopt IIC communication mode.
 
{|class="wikitable"
 
{|class="wikitable"
 
! rowspan="1" | PN532 || Microduino  
 
! rowspan="1" | PN532 || Microduino  
Line 38: Line 38:
  
 
[[File:Microduino-NFC-pin.jpg|800px|thumb|center|Microduino-NFC]]
 
[[File:Microduino-NFC-pin.jpg|800px|thumb|center|Microduino-NFC]]
 
  
 
==Document==
 
==Document==
Line 53: Line 52:
 
==Application==
 
==Application==
 
Use the test program to write data to NFC. '''Note: this program only can read ISO14443A four bytes label'''
 
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 hardware: Microduino FT232R, Microduino Core and Microduino NRF;
*Prepared software:Adafruit_NFCShield_I2C library and Arduino IDE;
+
*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;
 
*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 "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......”;
+
*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 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.
+
*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
 
*Use a mobile phone with NFC label to test
 
*There are three wrote data:
 
*There are three wrote data:

Latest revision as of 07:38, 24 August 2016

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