TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136759 times)
  2. FAT32 Library (69969 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46268 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41182 times)
  7. GSM click (28986 times)
  8. PID Library (26414 times)
  9. mikroSDK (26368 times)
  10. microSD click (25380 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Barcode 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-24

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Miscellaneous

Downloaded: 2035 times

Not followed.

License: MIT license  

Barcode 2 Click is an adapter add-on board that contains a computerized image recognition system that is compliant with a wide range of different 1D and 2D barcode protocols.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Barcode 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Barcode 2 click" changes.

Do you want to report abuse regarding "Barcode 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Barcode 2 Click

Barcode 2 Click

Native view of the Barcode 2 Click board.

View full image
Barcode 2 Click

Barcode 2 Click

Front and back view of the Barcode 2 Click board.

View full image

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.

Examples 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 );
}

Other mikroE Libraries used in the example:

  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

6DOF IMU 13 Click

5

6DOF IMU 13 Click is a compact add-on board that contains an eCompass that consists of a 3-axis linear accelerometer and a 3-axis magnetic field sensor. This board features the MC6470, a 6 DoF accelerometer, and a magnetometer sensor solution, from mCube Inc.

[Learn More]

Touchpad 4 click

0

Touchpad 4 Click is a compact add-on board that easily integrates projected capacitive touch into user's applications. This board features the IQS7211A, a tiny capacitive touch controller from Azoteq.

[Learn More]

Ambient 8 click

5

Ambient 8 click is equipped with the ambient light sensor (ALS) IC, providing measurements of the ambient light intensity in a digital format. It utilizes the LTR-329ALS-01, an ALS with the I2C interface.

[Learn More]