VMA211 NFC/RFID SHIELD FOR ARDUINO ® USER MANUAL
VMA211 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
VMA211 5. Overview This NFC/RFID controller shield is based on the PN532 chip and can be used for field communication close to 13.56 MHz. This shield comes with an on-board antenna. It is compatible with SPI, IIC, UART interface to communicate and needs to be stacked directly onto the VMA100 UNO control board. chip ............................................................................................................... NXP PN532 working voltage ....................................................
VMA211 6. Connections The VMA211 RFID/NFC reader contains an on-board antenna, but for easy mounting reasons, an additional antenna is included in the VMA211 set. The used antenna can be selected by two jumpers on the VMA211 board. ATTENTION! Do not operate the VMA211 without these jumpers. 1. Antenna selection 2. Additional antenna 7. Switch Settings The two switches on the VMA211 allow you to change the communication mode. By default, they are set for SPI.
VMA211 8. Example Plug the VMA211 into the VMA100 (UNO) board, and connect the unit to your computer. Download the example code and libraries from our website (VMA211_example, PN532_SPI and SPI). Open the Arduino® IDE, open the VMA211_example (after extraction from Zip) and add both ZIP libraries. Compile and upload the code. V.
VMA211 When uploading is finished, start the serial monitor. The VMA211 will send you a hello message. Bring your NFC/RFID tag or card close to the selected antenna. You can read the information in the serial monitor. V.
VMA211 9. Code //This example reads a NFC/RFID memory block. It is tested with a new NFC/RFID 1K cards. Uses default keys. //Contributed by Seeed Technology Inc (www.seeedstudio.com) #include #include /*Chip select pin can be connected to D10 or D9 which is hareware optional*/ /*if you the version of NFC Shield from SeeedStudio is v2.0.*/ #define PN532_CS 10 PN532 nfc(PN532_CS); #define NFC_DEMO_DEBUG 1 void setup(void) { #ifdef NFC_DEMO_DEBUG Serial.begin(9600); Serial.
VMA211 if (id != 0) { #ifdef NFC_DEMO_DEBUG Serial.print("Read card #"); Serial.println(id); #endif uint8_t keys[]= { 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF }; if(nfc.authenticateBlock(1, id ,0x08,KEY_A,keys)) //authenticate block 0x08 { //if authentication successful uint8_t block[16]; //read memory block 0x08 if(nfc.readMemoryBlock(1,0x08,block)) { #ifdef NFC_DEMO_DEBUG //if read operation is successful for(uint8_t i=0;i<16;i++) { //print memory block Serial.print(block[i],HEX); Serial.print(" "); } Serial.
Velleman® Service and Quality Warranty Since its foundation in 1972, Velleman® acquired extensive experience in the electronics world and currently distributes its products in over 85 countries. All our products fulfil strict quality requirements and legal stipulations in the EU. In order to ensure the quality, our products regularly go through an extra quality check, both by an internal quality department and by specialized external organisations.