Ozeki Matrix NFC Reader Control Code
NFC readers are used for reading data from RFID cards. These cards are radio frequency ID cards which can send data without battery. Electricity is generated in the cards from the electromagnetic field of the NFC reader. The cards can be used for authenticating persons or object. You can control both RC522 and PN532 NFC readers. You can learn more about RFID cards and NFC readers on the internet.
Required hardware
- Ozeki NFC Host
- NFC Reader(s)
Source code to install on controller
Before you upload this code to your Arduino, please format the EEPROM...
#include <OzIDManager.h> #include <OzNfcReader.h> OzIDManager* manager; OzNfcReader *rc522reader_1; OzNfcReader *rc522reader_2; OzNfcReader *pn532reader; void setup() { Serial.begin(115200); SPI.begin(); manager = new OzIDManager; manager->_sendACK = false; manager->_checksum = false; OzCommunication::setIDManager(manager); rc522reader_1 = new OzNfcReader(MODE::RC522, 9, 7); rc522reader_2 = new OzNfcReader(MODE::RC522, 10, 8); pn532reader = new OzNfcReader(MODE::PN532); int x=1; manager->sendLinkSetup(); manager->PrintWelcomeLine(rc522reader_1, x++,"MyRC522Nfc_1"); manager->PrintWelcomeLine(rc522reader_2, x++,"MyRC522Nfc_2"); manager->PrintWelcomeLine(pn532reader, x++,"MyPN532Nfc"); } void loop() { OzCommunication::communicate(); rc522reader_1->ownLoop(); rc522reader_2->ownLoop(); pn532reader->ownLoop(); }
More information
- How to setup a nfc reader on arduino mega
- How to setup a nfc reader on arduino nano
- How to setup a nfc reader on arduino uno
- How to setup a nfc reader on Ozeki matrix
- How to setup a nfc reader on Raspberry Pi
- NFC reader protocol for arduino
- How to control a nfc reader using chat messages
- NFC Desc
- NFC PN532 Arduino
- NFC RC522 Arduino
- NFC PN532 RC522 Arduino