TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 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 (136715 times)
  2. FAT32 Library (69925 times)
  3. Network Ethernet Library (55938 times)
  4. USB Device Library (46261 times)
  5. Network WiFi Library (41884 times)
  6. FT800 Library (41150 times)
  7. GSM click (28979 times)
  8. PID Library (26412 times)
  9. mikroSDK (26355 times)
  10. microSD click (25353 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: 4582 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

7x10 Y click

0

7x10 Y click is a LED dot matrix display click, which can be used to display graphics or letters in a very simple and easy way. The click board has two LED dot matrix modules with 7x5 stylish, round, dot-like LED elements. These displays produce clean and uniform patterns since the elements are optically isolated from each other and there is no light bleeding between the adjacent LED cells. Additionally, turn-on and turn-off times of the matrix cells are optimized for a clean and fluid display performance, with no flickering or lag.

[Learn More]

Rotary B 2 click

0

Rotary B 2 Click is a compact add-on board that allows you to add a precision input knob to your design. This board features the TLC5925, a low-power 16-channel constant-current LED sink driver from Texas Instruments that, combined with a high-quality rotary encoder from ALPS, the EC12D1564402, allows you to add a precision input knob to your design. It also features an LED ring composed of 16 individual blue LEDs that can be used to represent the encoder position more visually.

[Learn More]

UART 1-Wire click

5

UART 1-Wire click is used to convert standard UART or 5V RS232 signals into 1-Wire signals.

[Learn More]