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 (137007 times)
  2. FAT32 Library (70128 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46350 times)
  5. Network WiFi Library (41966 times)
  6. FT800 Library (41287 times)
  7. GSM click (29055 times)
  8. mikroSDK (26489 times)
  9. PID Library (26451 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

Charger 5 click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-13

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Battery Charger

Downloaded: 4630 times

Not followed.

License: MIT license  

Charger 5 click carries the MCP73113, a single-cell Li-Po/Li-ion battery charge IC from Microchip, along with the digital potentiometer chip labeled as MCP4161, from the same company. This click can be used to easily and securely charge and fast-charge batteries on many different devices that use 3.7V Li-Po/Li-Ion batteries.

No Abuse Reported

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

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

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

Charger 5 Click

Native view of the Charger 5 Click board.

View full image
Charger 5 Click

Charger 5 Click

Front and back view of the Charger 5 Click.

View full image

Library description

Key functions:

uint8_t charger5_writeReg(uint8_t register_address, uint16_t transfer_data)- Function writes to the click's registers

uint16_t charger5_readReg(uint8_t register_address)- Function reads from click's registers

uint8_t charger5_incrementWiper(uint8_t register_address, uint8_t numberOfSteps)- Function increments value of the click's registers

uint8_t charger5_decrementWiper(uint8_t register_address, uint8_t numberOfSteps)- Function decrements value of the click's registers

uint8_t charger5_setCurrent(uint8_t register_address, uint16_t transfer_data)- Function sets current value of the selected wiper to both, volatile and not volatile, memory locations

Example description

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes click driver.
  • Application Task - Demonstrates the use of driver functions. It will set the charging current up to 500 mA, then decrements that value, and then increments it.
applicationTask()
{
    mikrobus_logWrite( "Setting value of current to 500mA", _LOG_LINE );
    charger5_setCurrent(_CHARGER5_WIPER0_VOL, _CHARGER5_500MA_CURRENT);
    Delay_ms(2000);

    mikrobus_logWrite( "Decrementing value of wiper by 5 steps", _LOG_LINE );
    charger5_decrementWiper(_CHARGER5_WIPER0_VOL, _CHARGER5_5_STEPS);
    Delay_ms(2000);

    mikrobus_logWrite( "Incrementing value of wiper by 2 steps", _LOG_LINE );
    charger5_incrementWiper(_CHARGER5_WIPER0_VOL, _CHARGER5_2_STEPS);
}

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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

nvSRAM 2 click

5

nvSRAM 2 Click is a compact add-on board that contains the most reliable nonvolatile memory. This board features the CY14B101Q, a 1Mbit nvSRAM organized as 128K words of 8 bits each with a nonvolatile element in each memory cell from Cypress Semiconductor.

[Learn More]

ccRF 2 click

1

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

[Learn More]

GSM/GNSS click

0

GSM/GNSS click combines GPS/GLONASS location tracking with GSM module capability for mobile communication. The click features Quectel’s MC60 quad-band module.

[Learn More]