NFC Extend Click Board
NFC Extend Click Board
The NFC Extend Click Board™ is an NFC tag interface device with the possibility of using any shape and size external antenna, offering 16 Kbit of electrically erasable programmable memory (EEPROM). This Click Board™ offer two communication interfaces. The first one is an I2C serial link and can be operated from a DC power supply. The second one is an RF link-activated when Click Board™ act as a contactless memory powered by the received carrier electromagnetic wave. It is perfectly suited for use in a wide variety of applications, such as NFC enabled business cards, stickers, wristbands, key fobs, pens, movie passes, hang tags, medication bottles, and many more.
NFC Extend Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
For any functionality, the NFC Extend click has to be used with one of the NFC antenna.
Software Support
We provide a library for the NFC Extend Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library contains function for getting INT pin state, for getting and setting registers via I2C, for presenting and writing password, for enabling/disabling mailbox and RF functionalities and for device initialization.
Key Functions
uint8_t nfcextend_password_present ( uint8_t *password_bytes )
- Presenting password to device.uint8_t nfcextend_init ( void )
- Initializing the device.uint8_t nfcextend_enable_mailbox ( uint8_t enable_mailbox )
- Enabling or disabling mailbox.
Example Description
The application is composed of three sections :
- System Initialization - Initializes GPIO pins, I2C and LOG modules.
- Application Initialization - Initializes I2C driver, presents password to the device and initializes the device.
- Application Task - Checks if RF placed a message to mailbox and if it did, checks message length and logs message bytes.
void application_init ( ) { nfcextend_i2c_driver_init( (nfcextend_obj_t)&_MIKROBUS1_GPIO, (nfcextend_obj_t)&_MIKROBUS1_I2C, NFCEXTEND_I2C_SLAVE_ADDRESS ); Delay_ms( 500 ); nfcextend_password_present( &default_password[ 0 ] ); Delay_ms( 100 ); init_status_flag = nfcextend_init( ); Delay_ms( 100 ); if ( init_status_flag == 1 ) { mikrobus_logWrite( "> App init fail", _LOG_LINE ); } else if ( init_status_flag == 0 ) { mikrobus_logWrite( "> App init done", _LOG_LINE ); } }
Additional Functions :
nfcextend_wait_for_int( void )
- waits for INT pin to go LOW and than HIGH for time period of 300ms
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
- Conversions
Additional Notes and Information
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.
MIKROSDK
The NFC Extend Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
NFC Extend Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.