Barcode 2 Click Board
Barcode 2 Click Board
The Barcode 2 Click Board™ is an adapter add-on board that contains a computerized image recognition system compliant with a wide range of different 1D and 2D barcode protocols. This board features the EM3080-W, a barcode decoder chip that delivers superior performance and solid reliability with low power consumption from Newland Auto-ID Tech. Co., Ltd. Featuring excellent near-field reading, wide-viewing angle, and snappy reading, the EM3080-W also offer stunning performance in decoding poor quality and damaged barcodes, bringing greater efficiency and convenience in barcode scanning. This Click Board™ represents an ideal solution for emerging mobile phone-based barcode applications, like coupons, e-tickets and boarding pass, and traditional applications.
The Barcode 2 Click is supported by a mikroSDK-compliant library, which includes functions that simplify software development. This Click Board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Barcode 2 Click 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
The library covers all the necessary functions to control Barcode 2 Click board. A library performs the communication with the device via UART interface.
Key Functions
uint8_t barcode2_read_byte( )
- Read Single Byte.void barcode2_enable_scaning ( uint8_t en_state )
- Enable scaning function.void barcode2_enable_reset ( uint8_t en_state )
- Enable reset function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes UART used for communication and another UART bus used for data logging.
- Application Initialization - Initializes UART driver.
- Application Task - (code snippet) - This is an example that demonstrates the use of the Barcode 2 Click board. Barcode 2 Click starts scanning every 2 seconds. When the barcode is detected, program enters interrupt routine and displays a scanned barcode or QRcode data. Then disables scanning also in an interval of 2 seconds. Results are being sent to the Usart Terminal where you can track their changes.
void application_task ( ) { mikrobus_logWrite( "---------------------", _LOG_LINE ); mikrobus_logWrite( " Scan barcodes: ", _LOG_LINE ); barcode2_enable_scaning( BARCODE2_ENABLE ); Delay_ms( 2000 ); mikrobus_logWrite( "", _LOG_LINE ); mikrobus_logWrite( "---------------------", _LOG_LINE ); mikrobus_logWrite( " Scanning is off ", _LOG_LINE ); barcode2_enable_scaning( BARCODE2_DISABLE ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- 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
This 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.
Barcode 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.