TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 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 (136222 times)
  2. FAT32 Library (69489 times)
  3. Network Ethernet Library (55708 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40789 times)
  7. GSM click (28789 times)
  8. PID Library (26332 times)
  9. mikroSDK (26056 times)
  10. microSD click (25141 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

Boost 8 click

Rating:

0

Author: MIKROE

Last Updated: 2024-01-31

Package Version: 2.1.0.5

mikroSDK Library: 2.0.0.0

Category: Boost

Downloaded: 70 times

Not followed.

License: MIT license  

Boost 8 Click is a compact add-on board that steps up the voltage from its input (supply) to its output (load).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Boost 8 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Boost 8 click" changes.

Do you want to report abuse regarding "Boost 8 click".

  • Information
  • Comments (0)

mikroSDK Library Blog


Boost 8 click

Boost 8 Click is a compact add-on board that steps up the voltage from its input (supply) to its output (load).

boost8_click.png

click Product page


Click library

  • Author : Stefan Ilic
  • Date : Oct 2022.
  • Type : GPIO type

Software Support

We provide a library for the Boost 8 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 Boost 8 Click driver.

Standard key functions :

  • boost8_cfg_setup Config Object Initialization function.

    void boost8_cfg_setup ( boost8_cfg_t *cfg );
  • boost8_init Initialization function.

    err_t boost8_init ( boost8_t *ctx, boost8_cfg_t *cfg );
  • boost8_default_cfg Click Default Configuration function.

    void boost8_default_cfg ( boost8_t *ctx );

Example key functions :

  • boost8_enable_positive_voltage Enable positive voltage output function.

    void boost8_enable_positive_voltage( boost8_t *ctx );
  • boost8_disable_positive_voltage Disable positive voltage output function.

    void boost8_disable_positive_voltage( boost8_t *ctx );
  • boost8_enable_negative_voltage Enable negative voltage output function.

    void boost8_enable_negative_voltage( boost8_t *ctx );

Example Description

This is an example that demonstrates the use of the Boost 8 Click board.

The demo application is composed of two sections :

Application Init

Initializes EN+ and EN- pins, UART log, and performs default configuration.


void application_init ( void ) 
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    boost8_cfg_t boost8_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.
    boost8_cfg_setup( &boost8_cfg );
    BOOST8_MAP_MIKROBUS( boost8_cfg, MIKROBUS_1 );
    if ( DIGITAL_OUT_UNSUPPORTED_PIN == boost8_init( &boost8, &boost8_cfg ) ) 
    {
        log_error( &logger, " Communication init." );
        for ( ; ; );
    }

    boost8_default_cfg ( &boost8 );

    log_info( &logger, " Application Task " );
    boost8_list_of_commands();
}

Application Task

Waits for user input in order to determine what output should be enabled.

void application_task ( void ) 
{
    char inx;

    // Waiting for the user input and performing actions based on a selected command.
    if ( log_read( &logger, &inx, 1 ) != BOOST8_ERROR )
    {
        switch(inx)
        {
            case '1' :
            {
                log_printf( &logger, "Turning on positive output \r\n" );
                boost8_enable_positive_voltage( &boost8 );
                break;
            }
            case '2' :
            {
                log_printf( &logger, "Turning off positive output \r\n" );
                boost8_disable_positive_voltage( &boost8 );
                break;
            }
            case '3' :
            {
                log_printf( &logger, "Turning on negative output \r\n" );
                boost8_enable_negative_voltage( &boost8 );
                break;
            }
            case '4':
            {
                log_printf( &logger, "Turning off negative output \r\n" );
                boost8_disable_negative_voltage( &boost8 );
                break;
            }
            case '5' :
            {
                log_printf( &logger, "Turning on both outputs \r\n" );
                boost8_enable_both_outputs( &boost8 );
                break;
            }
            case '6' :
            {
                log_printf( &logger, "Turning off both outputs \r\n" );
                boost8_disable_both_outputs( &boost8 );
                break;
            }
            default:
            {
                log_printf( &logger, "> Invalid command \r\n" );
                boost8_list_of_commands();
                break;
            }
        }
    }

}

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.Boost8

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

POT click

0

POT Click is a Click board™ with the accurate selectable reference voltage output. By employing a high-quality 10mm carbon potentiometer, this Click board™ can provide very accurate voltage output.

[Learn More]

PS/2 click

5

Simple demonstration of using PS/2 communication protocol. Example detects keyboard press and writes the corresponding key on UART.

[Learn More]

Spectrometer 2 click

0

Spectrometer 2 Click is a compact add-on board that collects light waves. This board features the VD6283TX, a color sensor with advanced light flicker extraction from STMicroelectronics. The VD6283TX performs fast and accurate light measurements thanks to an individual ADC and a readout for each color channel - red, green, blue, IR, clear, and visible. It uses hybrid color filters with precise responses allowing accurate computation of the correlated color temperature (CCT) and Lux information. Its patented architecture and a high-performance photodiode design can also extract light-flickering frequencies to avoid banding effects or check that they are safe for the human eye.

[Learn More]