Barcode click
PID: MIKROE‐2913
Weight: 31 g
Barcode click 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, Barcode click features two push buttons,
used to control the device when working as a standalone device.
The barcode scanner module used for the Barcode click, is the LV3296 made by Rakinda
company, a compact barcode scanner module armed with the Rakinda patented UIMG®
technology, designed to quickly scan the barcode and send the information either to the
host MCU or the host PC. It also features an onboard speaker, used for signalization. These
features make Barcode click an ideal solution for fast and accurate scanning of various
types of barcodes.
How does it work?
The LV3296, a compact integrated barcode scanner from Rakinda company, is the main
component of Barcode click. This is the advanced barcode scanner/reader module which
features the patented UIMG®, a computerized image recognition system technology
that supports all mainstream 1D and standard 2D barcode types (for example ‐ PDF417, QR
Code M1/M2/Micro and Data Matrix) as well as GS1‐DataBar™(RSS)
(Limited/Stacked/Expanded versions). It can read barcodes on virtually any medium,
including paper, plastic, mobile phones, LCD displays, etc. Thanks to the used area‐imaging
and UIMG® technologies, the device is able to scan barcodes rotated to any angle, with
great speed and precision.
The LV3296 scanner module uses a flat cable to connect to the click board™, via the ZIF FPC
connector on the back side of the PCB. This flat cable carries all the signals used in
communication between the LV3296 module and the host MCU, such as the RX, TX, buzzer,
USB, interrupt, reset, and scanning trigger lines.
The communication with Barcode click is done by utilizing two types of connection it offers
‐ UART (TTL232) and USB. When the click board™ is placed into the mikroBUS™ socket, it
will be able to exchange data with the UART module of the MCU, via the standard
mikroBUS™ RX and TX pins.
When the USB cable is connected to the micro USB port on the click board itself, it can be
identified either as the virtual USB port, a HID keyboard device or an HID POS device. HID
devices do not require any special PC drivers, while the virtual USB device does.
Many options and parameters of the Barcode click are configurable. Barcode click
configuration is very easy and intuitive ‐ it is enough to read special configuration
messages, encoded into barcodes that can be found in the LV3296 user's guide. It is not
even necessary to print them on paper ‐ it is enough to show them on screen and scan them
from there. Enter Setup message should be scanned first, followed by the desired
configuration message. After successful configuration indicated by a short beep sound, the
Exit Setup message should be scanned. The device features a very extensive set of encoded
configuration commands, which include storing and recal of user default values, along with
the factory defaults.
When the Barcode device is first powered up, it will sound a greeting message, which
indicates the successful initialization. The device is now ready to scan. Pressing the
onboard TRIG button or pulling the PWM pin of the mikroBUS™ slot to a LOW logic level for
at least 10ms, will trigger the barcode scan. It will turn on two LEDs and project a circle
shaped aiming pattern on the surface it is aimed at, scanning it for a valid barcode. Both
LEDs and the aiming pattern can be turned off in the configuration. A short beep sound and
a blink of the Good Read indication onboard LED (GR) will indicate a successful barcode
decoding and after releasing the TRIG line (configurable), the device will send the decoded
information to the selected interface. Barcode click can report errors, with a distinctive
error message sound ‐ e.g. when the device is configured to use onboard micro USB, but it
is not connected to the host USB device, it will sound an error if scanning is attempted.
The RST button is used to reset the device. Pressing the RST button or pulling the RST line,
routed to the mikroBUS™ RST pin to a LOW logic level for 100us to 500us will cause a
device reset, followed by the greeting message sound. It should be noted that the device
should not be reset too frequently; at least 2 seconds delay should exist between the reset
cycles.
Note: Barcode click is powered only with 3.3V from the mikroBUS™ thus it is not able to
work with the MCUs and systems which work on 5V.
Specifications
Type
Applications
Various
An ideal solution for fast and accurate scanning of various types of
barcodes.
On-board
LV3296 made by Rakinda company, a compact barcode scanner
modules
module armed with the Rakinda patented UIMG® technology
Fast and accurate scanning of a wide range of 2D and 3D bar code
Key Features
types, can work in a standalone mode via the mikroUSB connector,
integrated aim and illumination LEDs
Interface
UART,USB
Input Voltage
3.3V
Click board
size
L (57.15 x 25.4 mm)
Pinout diagram
This table shows how the pinout on Barcode click corresponds to the pinout on the
mikroBUS™ socket (the latter shown in the two middle columns).
Notes
Pin
Pin
Notes
NC
1
AN
PWM
16
TRG
RST
2
RST
INT
15
NC
NC
3
CS
RX
14
RX
UART data receive
NC
4
SCK
TX
13
TX
UART data transmit
NC
5
MISO
SCL
12
NC
NC
6
MOSI
SDA
11
NC
Power supply
3V3
7
3.3V
5V
10
NC
Ground
GND
8
GND
GND
9
GND
Reset for LV3296
Scanning trigger
Ground
Onboard settings and indicators
Label
Name
Default
PWR
PWR
-
Power LED indicator
GR
-
LED indicating a good read
GR
Description
Software support
We provide a library for Barcode click on our LibStock page, as well as a demo application
(example), developed using MikroElektronika compilers and mikroSDK. The provided click
library is mikroSDK standard compliant. The demo application can run on all the main
MikroElektronika development boards.
Library description
Initializes and defines UART and GPIO drivers. It also defines driver functions for UART bus
communication which enable
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 driver.
Application Task - The click 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, 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.
For more information about mikroSDK, visit the official page.
https://www.mikroe.com/barcode‐click 4‐4‐18