Velleman VMA211 User Manual Download Page 7

 

VMA211 

V. 01 – 09/05/2019 

©Velleman nv 

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 <PN532.h> 
#include <SPI.h> 
 
/*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.println("Hello!"); 
#endif 
  nfc.begin(); 
 
  uint32_t versiondata = nfc.getFirmwareVersion(); 
  if (! versiondata) { 
#ifdef NFC_DEMO_DEBUG 
    Serial.print("Didn't find PN53x board"); 
#endif 
    while (1); // halt 
  } 
#ifdef NFC_DEMO_DEBUG 
  // Got ok data, print it out! 
  Serial.print("Found chip PN5");  
  Serial.println((versiondata>>24) & 0xFF, HEX); 
  Serial.print("Firmware ver. ");  
  Serial.print((versiondata>>16) & 0xFF, DEC); 
  Serial.print('.');  
  Serial.println((versiondata>>8) & 0xFF, DEC); 
  Serial.print("Supports ");  
  Serial.println(versiondata & 0xFF, HEX); 
#endif 
  // configure board to read RFID tags and cards 
  nfc.SAMConfig(); 

 
void loop(void) { 
  uint32_t id; 
  // look for MiFare type cards 
  id = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A); 
 

Summary of Contents for VMA211

Page 1: ...VMA211 NFC RFID SHIELD FOR ARDUINO USER MANUAL...

Page 2: ...ions of the device before actually using it All modifications of the device are forbidden for safety reasons Damage caused by user modifications to the device is not covered by the warranty Only use t...

Page 3: ...chip NXP PN532 working voltage 3 3 V power voltage 3 3 5 5 V max power current 150 mA working current standby mode 100 mA working current write mode 120 mA working current read mode 120 mA communicati...

Page 4: ...sed 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...

Page 5: ...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 ext...

Page 6: ...9 6 Velleman nv 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...

Page 7: ...EMO_DEBUG Serial begin 9600 Serial println Hello endif nfc begin uint32_t versiondata nfc getFirmwareVersion if versiondata ifdef NFC_DEMO_DEBUG Serial print Didn t find PN53x board endif while 1 halt...

Page 8: ...RED Declaration of Conformity Hereby Velleman NV declares that the radio equipment type VMA211 is in compliance with Directive 2014 53 EU The full text of the EU declaration of conformity is availabl...

Page 9: ...shocks falls dust dirt humidity and by the article as well as its contents e g data loss compensation for loss of profits consumable goods parts or accessories that are subject to an aging process du...

Reviews: