TOP Contributors

  1. MIKROE (2664 codes)
  2. Alcides Ramos (358 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 (137150 times)
  2. FAT32 Library (70250 times)
  3. Network Ethernet Library (56134 times)
  4. USB Device Library (46452 times)
  5. Network WiFi Library (42112 times)
  6. FT800 Library (41414 times)
  7. GSM click (29126 times)
  8. mikroSDK (26574 times)
  9. PID Library (26512 times)
  10. microSD click (25509 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 14 click

Rating:

5

Author: MIKROE

Last Updated: 2019-11-18

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Buck

Downloaded: 2518 times

Not followed.

License: MIT license  

The Buck 14 click is a Click board based around the BMR4613001/001, a PoL regulator from Flex. It's igh-efficiency step-down converter which provides a highly regulated output voltage derived from the connected power source, rated from 4.5 to 14V.

No Abuse Reported

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

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

Do you want to report abuse regarding "Buck 14 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 14 click

Buck 14 click

Native view of the Buck 14 click board.

View full image
Buck 14 click

Buck 14 click

Front and back view of the Buck 14 click board.

View full image

Library Description

Library provides control over device pins, you can read state of some pins. You have ability to send and receive data from device, and control output V.

Key functions:

  • void buck14_read_data (uint8_t cmd, uint8_t *data_buf, uint8_t n_buf_size ) - Reads data from specific registar to buffer
  • void buck14_write_data (uint8_t cmd, uint8_t *data_buf, uint8_t n_buf_size ) - Writes data to specific registar to buffer
  • uint8_t buc14_write_vout( float vout ) - Sets output V
  • uint16_t buc14_read_vout( void ) - Returns output V in mV

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of SPI module and setting pins to output
  • Application Initialization - Configure device, checks id, writes default command VOUT, checks if power is OK
  • Application Task - Sends 4 different commands for VOUT in span of 8sec
void application_task ( )
{
    vout_value = 1.2;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }

    Delay_ms( 8000 );

    vout_value = 3.7;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }

    Delay_ms( 8000 );
    
    vout_value = 2.5;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }
    
    Delay_ms( 8000 );

    vout_value = 4.5;
    status_data = buc14_write_vout( vout_value );
    error_handler( status_data );

    if ( status_data == BUCK14_SUCCESSFUL )
    {
        read_vout_data(  );
    }
    
    Delay_ms( 4000 );
    mikrobus_logWrite( "```````````````", _LOG_LINE );
    Delay_ms( 4000 );
}

Additional Functions :

  • void error_handler ( uint8_t stat_data ) - Check if there was error in stat_data and returns message
  • void read_vout_data ( void ) - Reads current VOUT in mV

Note :

  • When you send data you should send LSB first
  • Device input V should be beetween 4.5 - 14 V
  • Device output V could be from 0.5 - 5 V deepending from limits you set currently it is set to 1V

Other mikroE Libraries used in the example:

  • Conversions
  • I2C
  • UART

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

GPS 4 click

6

GPS 4 click carries the L70 compact GPS module from Quectel. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over UART interface

[Learn More]

Oximeter 3 click

0

Oximeter 3 Click is a compact add-on board perfectly suited for measuring the blood oxygen saturation.

[Learn More]

Noise click

1

Noise click is a mikroBUS add-on board with noise detecting circuitry. It enables you to set a noise detection threshold for alarm systems, environmental monitoring or data logging. When the volume of ambient sound reaches the set threshold, an interrupt is triggered.

[Learn More]