Barcode Click Board
Barcode Click Board
The Barcode Click Board™ is a very fast and agile barcode scanner on a Click Board™, which is compliant with a wide range of different 1D and 2D barcode protocols. The barcode scanner module is equipped with the micro USB port; thus, it can work both as a standalone device and a standard Click Board™, which communicates with the MCU via the RX, TX, RST and PWM pin of the mikroBUS. The barcode module has two red LEDs, used to illuminate the area in low light conditions.
Also, the Barcode Click Board™ features two pushbuttons, used to control the device when working as a standalone device.
Software Support
We provide a library for Barcode Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided Click Board™ library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
barcode scanning and barcode scanner restart. Check the documentation for more details. Key functions:
uint8_t barcode_readyData()
- The function checks whether the RX buffer received new data.
uint8_t barcode_readData()
- The function reads and returns one byte which is received in the RX buffer.
void barcode_enableScaning(const uint8_t state)
- The function enables or disables barcode scanning, depending on the parameter value.
void barcode_enableReset(const uint8_t state)
- The function enables or disables barcode scanner reset, depending on the parameter value.
Examples description
- System Initialization - Initializes peripherals, UART interrupt and pins.
- Application Initialization - Initializes Click Board™ driver.
- Application Task - The Click Board™ enables barcode scanning in 2 seconds intervals and then disables scanning also in 2 seconds interval. When the barcode is scanned, UART interrupt will be enabled and the barcode will be stored in the temp buffer.
void applicationTask() { barcode_enableScaning(_BARCODE_LOGIC_ON); Delay_ms(2000); barcode_enableScaning(_BARCODE_LOGIC_OFF); Delay_ms(2000); } //UART Interrupt addition function is used for enabling receiving every transived byte. void RX_ISR() iv IVT_INT_USART3 ics ICS_AUTO { if( RXNE_USART3_SR_bit ) { temp[i++] = USART3_DR; } }
The full application code, and ready to use projects can be found on our LibStock page.
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
The free online CSS beautifier tool helps you to organize style files for websites.
Barcode Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.