TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 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 (139275 times)
  2. FAT32 Library (71759 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47434 times)
  5. Network WiFi Library (43098 times)
  6. FT800 Library (42409 times)
  7. GSM click (29835 times)
  8. mikroSDK (28106 times)
  9. PID Library (26887 times)
  10. microSD click (26201 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:

5

Author: MIKROE

Last Updated: 2019-04-05

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Buck

Downloaded: 3615 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 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

Buck 11 click

Buck 11 click

Native view of the Buck 11 Click board.

View full image
Buck 11 click

Buck 11 click

Front and back view of the Buck 11 Click board.

View full image

Library Description

The library allows user to perform the VOUT measurement of the Buck 11 Click board. One measurement cycle can consist a one conversion or more averaged conversions. This library also allows user to enter a real measured reference voltage for the AD conversion (VDD). For more details check documentation.

Key functions:

  • void buck11_set_vdd_value( float vdd_volts ) - This function allows user to set VDD voltage to the desired (measured) value.
  • uint16_t buck11_read_adc( void ) - This function reads the results of the AD conversion from the MCP3221A5T 12-bit converter.
  • float buck11_get_vout( uint8_t vout_resolution ) - This function allows user to get VOUT voltage value in the desired unit resolution, volts or millivolts.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes I2C serial interface and selects the desired VDD voltage value and VOUT value resolution (to get VOUT value in Volts). 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.
  • Application Task - (code snippet) - 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. Note : The input voltage (VIN) range is from 4.2V to 60V. The output current (IOUT) value should not be greater than 1.5A.
void applicationTask()
{
    vout_value = buck11_get_averaged_vout( vout_resol, 30 );
    
    FloatToStr( vout_value, text );
    floatCut();
    
    mikrobus_logWrite( "** VOUT : ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    
    if (vout_resol == _BUCK11_VOUT_VOLTS)
    {
        mikrobus_logWrite( " V", _LOG_LINE );
    }
    else
    {
        mikrobus_logWrite( " mV", _LOG_LINE );
    }
    
    mikrobus_logWrite( "*************************************", _LOG_LINE );
    Delay_ms( 300 );
}

Additional Functions :

  • floatCut - Allows to real values be rounded on two decimal places.

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversions

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

USB SPI click - Example

0

This is a sample program which demonstrates the use of USB SPI click This device accepts commands from SPI Terminal and sends appropriate bytes via SPI interface. It is very desirable tool for designing SPI slave devices such as sensors...

[Learn More]

SAML Touch Click

0

SAML Touch Click is a Click board™ equipped with two capacitive touch pads and one capacitive slider.

[Learn More]

nRF C click - Example

0

This is a sample program which demonstrates the use of nRF C click. Programmer uses RF module for communication between two development systems. Each module can be used as transmitter and receiver.

[Learn More]