TOP Contributors

  1. MIKROE (2730 codes)
  2. Alcides Ramos (369 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (116 codes)
  5. Bugz Bensce (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 (138642 times)
  2. FAT32 Library (71283 times)
  3. Network Ethernet Library (56793 times)
  4. USB Device Library (47127 times)
  5. Network WiFi Library (42856 times)
  6. FT800 Library (42100 times)
  7. GSM click (29663 times)
  8. mikroSDK (27527 times)
  9. PID Library (26788 times)
  10. microSD click (26020 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 3 click

Rating:

0

Author: MIKROE

Last Updated: 2024-08-12

Package Version: 2.1.0.1

mikroSDK Library: 2.0.0.0

Category: Miscellaneous

Downloaded: 12 times

Not followed.

License: MIT license  

Barcode 3 Click is a compact add-on board for efficient barcode scanning applications. This board features the LV30, an advanced area image engine from Rakinda. The LV30 features a laser aiming system and LED illumination, ensuring quick and accurate barcode decoding on various media, including paper and magnetic cards. This module also includes a red LED for low-light conditions, a laser aimer for precise positioning, an onboard buzzer for audible feedback, buttons for scanning and resetting, and an LED indicator for successful reads.

No Abuse Reported

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

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

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

  • Information
  • Comments (0)

mikroSDK Library Blog


Barcode 3 click

Barcode 3 Click is a compact add-on board for efficient barcode scanning applications. This board features the LV30, an advanced area image engine from Rakinda. The LV30 features a laser aiming system and LED illumination, ensuring quick and accurate barcode decoding on various media, including paper and magnetic cards. This module also includes a red LED for low-light conditions, a laser aimer for precise positioning, an onboard buzzer for audible feedback, buttons for scanning and resetting, and an LED indicator for successful reads.

barcode3_click.png

click Product page


Click library

  • Author : Stefan Filipovic
  • Date : Mar 2024.
  • Type : UART type

Software Support

We provide a library for the Barcode 3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

This library contains API for Barcode 3 Click driver.

Standard key functions :

  • barcode3_cfg_setup Config Object Initialization function.

    void barcode3_cfg_setup ( barcode3_cfg_t *cfg );
  • barcode3_init Initialization function.

    err_t barcode3_init ( barcode3_t *ctx, barcode3_cfg_t *cfg );

Example key functions :

  • barcode3_generic_read This function reads a desired number of data bytes by using UART serial interface.

    err_t barcode3_generic_read ( barcode3_t *ctx, uint8_t *data_out, uint16_t len );
  • barcode3_start_scanning This function starts the barcode scanning by setting the TRG pin to low logic state.

    void barcode3_start_scanning ( barcode3_t *ctx );
  • barcode3_stop_scanning This function stops the barcode scanning by setting the TRG pin to high logic state.

    void barcode3_stop_scanning ( barcode3_t *ctx );

Example Description

This example demonstrates the use of the Barcode 3 click board by scanning and displaying the content of a barcode or QR Code.

The demo application is composed of two sections :

Application Init

Initializes the driver, stops scanning and resets the barcode device.


void application_init ( void )
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    barcode3_cfg_t barcode3_cfg;  /**< Click config object. */

    /** 
     * Logger initialization.
     * Default baud rate: 115200
     * Default log level: LOG_LEVEL_DEBUG
     * @note If USB_UART_RX and USB_UART_TX 
     * are defined as HAL_PIN_NC, you will 
     * need to define them manually for log to work. 
     * See @b LOG_MAP_USB_UART macro definition for detailed explanation.
     */
    LOG_MAP_USB_UART( log_cfg );
    log_init( &logger, &log_cfg );
    log_info( &logger, " Application Init " );

    // Click initialization.
    barcode3_cfg_setup( &barcode3_cfg );
    BARCODE3_MAP_MIKROBUS( barcode3_cfg, MIKROBUS_1 );
    if ( UART_ERROR == barcode3_init( &barcode3, &barcode3_cfg ) ) 
    {
        log_error( &logger, " Communication init." );
        for ( ; ; );
    }
    barcode3_stop_scanning ( &barcode3 );
    barcode3_reset_device ( &barcode3 );
    log_info( &logger, " Application Task " );
}

Application Task

Triggers scanning and waits up to 3 seconds for the barcode to be detected. If a barcode or QR Code is detected, it displays its content on the USB UART.

void application_task ( void )
{
    uint16_t timeout = 0;
    log_printf( &logger, "\r\n------- SCAN START ------\r\n" );
    barcode3_start_scanning ( &barcode3 );
    while ( ++timeout < 3000 )
    {
        if ( BARCODE3_OK == barcode3_process( &barcode3 ) )
        {
            barcode3_log_app_buf( );
            barcode3_clear_app_buf( );
            Delay_10ms ( );
            while ( BARCODE3_OK == barcode3_process( &barcode3 ) )
            {
                barcode3_log_app_buf( );
                barcode3_clear_app_buf( );
                Delay_10ms ( );
            }
            break;
        }
        Delay_1ms ( );
    }
    log_printf( &logger, "------- SCAN STOP -------\r\n" );
    barcode3_stop_scanning ( &barcode3 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
}

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.Barcode3

Additional notes and informations

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. UART terminal is available in all MikroElektronika compilers.


ALSO FROM THIS AUTHOR

Charger 18 click

0

Charger 18 Click is a compact add-on board representing a single-cell battery charger. This board features the LTC3553, a micropower, highly integrated power management, and battery charger for single-cell Li-Ion/Polymer battery applications from Analog Devices. Designed specifically for USB applications, it also includes a PowerPath manager with automatic load prioritization and input current limit, a battery charger, and numerous internal protection features. It also indicates a battery charge state, and it comes with a synchronous 200mA buck regulator and a 150mA low dropout linear regulator (LDO).

[Learn More]

OPTO 4 click

0

Opto 4 click is a galvanically isolated power switch, which uses a power MOSFET in combination with an optocoupler.

[Learn More]

IR Grid click

5

IR Grid click is a thermal imaging sensor. It has an array of 64 very sensitive factory calibrated IR elements (pixels), arranged in 4 rows of 16 pixels, each measuring an object temperature up to 300ËšC within its local Field of View (FOV).

[Learn More]