rfid 2.0.0.0
|
RFid click features CR95HF 13.56 MHz contactless transceiver as well as trace antenna.
We provide a library for the RFID Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for RFID Click driver.
rfid_cfg_setup
Config Object Initialization function. rfid_init
Initialization function. rfid_default_cfg
Click Default Configuration function. rfid_select_communication_interface
Select communication interface. rfid_get_tag_uid
Get RFID tag uid function. rfid_get_device_id
RFID get device id function. This example demonstrates the use of RFID Click board by reading MIFARE ISO/IEC 14443 type A tag UID.
The demo application is composed of two sections :
Initializes the driver, selects the communication interface and performs the click default configuration.
If there's a tag detected, it reads its UID and displays it on USB UART.
It is recommended to tie SSI_0, SSI_1 to VCC/GND at power-up, depending on the communication interface selection by A and B on-board jumpers. SSI_0 - UART: 0 SPI: 1 SSI_1 - UART: 0 SPI: 0
Only tags with 4-byte or 7-byte UIDs are compatible with this example. We recommend MIKROE-1475 - an RFiD tag 13.56MHz compliant with ISO14443-A standard.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.