TOP Contributors

  1. MIKROE (2665 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 (137152 times)
  2. FAT32 Library (70288 times)
  3. Network Ethernet Library (56158 times)
  4. USB Device Library (46480 times)
  5. Network WiFi Library (42146 times)
  6. FT800 Library (41450 times)
  7. GSM click (29144 times)
  8. mikroSDK (26593 times)
  9. PID Library (26518 times)
  10. microSD click (25527 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

Charger 11 click

Rating:

5

Author: MIKROE

Last Updated: 2019-08-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Battery Charger

Downloaded: 2379 times

Not followed.

License: MIT license  

Charger 11 Click is a LiFePO4 (lithium iron phosphate) battery charger. This click can be used for Low-Cost LiFePO4 battery chargers, or Power Tools, toys, backup energy storage solutions, etc.

No Abuse Reported

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

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

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

Charger 11 click

Charger 11 click

Native view of the Charger 11 click board.

View full image
Charger 11 click

Charger 11 click

Front and back view of the Charger 11 click board.

View full image

Library Description

Library contains function for getting INT pin state Library contains functions for setting AN, PWM and CS pin states Library contains function for spi transfer Library contains functions for getting and setting registers via SPI Library contains functions for wiper increment and decrement Library contains function for getting wiper position Library contains function for getting raw adc data Library contains function for getting output voltage

Key functions:

  • void charger11_spi_increment_wiper( void ) - increments wiper position by sending 8bit increment wiper command
  • void charger11_spi_decrement_wiper( void ) - decrements wiper position by sending 8bit decrement wiper command
  • float charger11_i2c_get_volt( float reference_voltage ) - gets raw ADC data and converts it to voltage based on reference voltage setting

Examples description

The application is composed of three sections :

  • System Initialization - Initalizes INT, PWM, CS, AN pins and SPI, I2C, LOG modules
  • Application Initialization - Initializes SPI and I2C drivers
  • Application Task - Waits for user input in order to increment, decrement wiper or log report (Wiper position and Output voltage)
void applicationTask( )
{
    uart_ready = UART_Data_Ready( );
    
    if (uart_ready == 1)
    {
        uart_char = UART_Read( );
        
        switch (uart_char)
        {
            case '+' :
            {
                charger11_case_Plus( );
                break;
            }
            case '-' :
            {
                charger11_case_Minus( );
                break;
            }
            case 'r' :
            {
                charger11_case_Report( );
                break;
            }
            default :
            {
                mikrobus_logWrite( "> Invalid command", _LOG_LINE );
                break;
            }
        }
    }
}


Additional Functions :

  • charger11_FloatCut( ) - Rounds float value to two decimals
  • charger11_log_wiper_position( ) - Logs current Wiper position
  • charger11_case_Plus( ) - Increments Wiper position
  • charger11_case_Minus( ) - Decrements Wiper position
  • charger11_case_Report( ) - Logs current Wiper position and Output voltage

Other mikroE Libraries used in the example:

  • I2C
  • SPI
  • UART
  • Conversions

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

MUX 3 click

0

MUX 3 Click is the general purpose multiplexer which offers multiplexing one input channel to eight single-ended output channels.

[Learn More]

Multimeter click

0

Since there are four distinctive properties that can be measured with Multimeter click which all require different measuring techniques, several different ICs had to be used on the Click board™. Starting with the high-quality, low noise A/D converter as the primary component, all the way to the input operational amplifiers, all components were hand-picked to ensure accuracy.

[Learn More]

H-Bridge 2 click

5

H-Bridge 2 click can be used to drive a motor by utilizing a specific configuration of the output stage MOSFETs, known as the H-bridge. This configuration enables H-Bridge 2 click to drive a motor with up to 1.2A and 15V, providing control of the speed and direction, as well as the dynamic (rheostatic) braking capability.

[Learn More]