TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (356 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 (137011 times)
  2. FAT32 Library (70135 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46352 times)
  5. Network WiFi Library (41966 times)
  6. FT800 Library (41292 times)
  7. GSM click (29055 times)
  8. mikroSDK (26489 times)
  9. PID Library (26452 times)
  10. microSD click (25413 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

Buck 11 click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.16

mikroSDK Library: 2.0.0.0

Category: Buck

Downloaded: 82 times

Not followed.

License: MIT license  

Buck 11 click is a high-efficiency step-down converter which provides 3.3V on its output, derived from the connected power supply voltage, in the range from 4.2V to 60V.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Buck 11 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Buck 11 click" changes.

Do you want to report abuse regarding "Buck 11 click".

  • mikroSDK Library 1.0.0.0
  • Comments (0)

mikroSDK Library Blog


Buck 11 click

Buck 11 click is a high-efficiency step-down converter which provides 3.3V on its output, derived from the connected power supply voltage, in the range from 4.2V to 60V.

buck11_click.png

click Product page


Click library

  • Author : MikroE Team
  • Date : dec 2019.
  • Type : I2C type

Software Support

We provide a library for the Buck11 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.

Library Description

This library contains API for Buck11 Click driver.

Standard key functions :

  • Config Object Initialization function.

    void buck11_cfg_setup ( buck11_cfg_t *cfg );

  • Initialization function.

    BUCK11_RETVAL buck11_init ( buck11_t ctx, buck11_cfg_t cfg );

  • Click Default Configuration function.

    void buck11_default_cfg ( buck11_t *ctx );

Example key functions :

  • ADC Read function

    uint16_t buck11_read_adc ( buck11_t *ctx );

  • Get VOUT function

    buck11_get_vout ( buck11_t *ctx, uint8_t vout_resolution );

  • Get Averaged VOUT function

    float buck11_get_averaged_vout ( buck11_t *ctx, uint8_t vout_resolution, uint8_t n_samples );

Examples Description

This aplication control voltage using Buck 11.

The demo application is composed of two sections :

Application Init

Initializes I2C serial interface and selects the desired VDD voltage value and VOUT value resolution (to get VOUT value in Volts).


void application_init ( void )
{
    log_cfg_t log_cfg;
    buck11_cfg_t cfg;

    /** 
     * 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.

    buck11_cfg_setup( &cfg );
    BUCK11_MAP_MIKROBUS( cfg, MIKROBUS_1 );
    buck11_init( &buck11, &cfg );

    Delay_ms ( 500 );

    buck11_set_vdd_value( 4.935 );
    vout_resol = BUCK11_VOUT_VOLTS;

    log_printf( &logger, "** Buck 11 is initialized ** \r\n" );
    log_printf( &logger, "************************************* \r\n" );
    Delay_ms ( 200 );
}

Application Task

Reads the averaged VOUT voltage calculated to Volts by performing a 30 conversions in one measurement cycle. The measured results will be showed on the uart terminal every 300 milliseconds.


void application_task ( )
{
    float vout_value;
    uint8_t vout_resol;

    vout_value = buck11_get_averaged_vout( &buck11, vout_resol, 30 );

    log_printf( &logger, "VOUT:  \r\n", vout_value );

    if (vout_resol == BUCK11_VOUT_VOLTS)
    {
        log_printf( &logger, " V \r\n" );
    }
    else
    {
        log_printf( &logger, " mV \r\n" );
    }

    log_printf( &logger, "************************************* \r\n" );
    Delay_ms ( 300 );
}

Note

The user should measure the VDD voltage value and enter this measured value to the function as VDD value to get more accurate measurement. This VDD voltage is used as reference voltage for the AD conversion. The input voltage (VIN) range is from 4.2V to 60V. The output current (IOUT) value should not be greater than 1.5A.

The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.

Other mikroE Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.Buck11

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

Accel 27 click

0

Accel 27 Click is a compact add-on board that contains an acceleration sensor. This board features the ADXL373, a three-axis MEMS ±400g accelerometer from Analog Devices. In addition to its ultra-low power consumption, the ADXL373 enables impact detection while providing system-level power reduction. It offers 12-bit output data at 200mg/LSB scale factor with a configurable host interface that supports SPI and I2C serial communication.

[Learn More]

Fiber Opt click

0

Fiber Opt click is a compact and easy solution for adding fiber-optic communication to your design. It features IF-D91 fiber-optic photodiode, IF-E97 fiber-optic LED diode as well as two operational amplifiers.

[Learn More]

MUX 2 click

5

MUX 2 click is a Click board that switches one of the eight inputs to one output. It employs the MUX508, a modern CMOS analog multiplexing integrated circuit, produced by Texas Instruments.

[Learn More]