Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.3 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.3 KB

arduino_sw6115

An i2c library to control the sw6115 chip found on DIY-More lithium battery shields

This is open-source, feel free to help out!

There is still a bunch of untapped potential in this chip. I have only written code for the basic stuff.

Functions:

.readVbatt(); * returns battery voltage (mV).

.readVout(); * returns output voltage (mV).

.readIchrg(); * returns charging current (mA).

.readIdischrg(); * returns discharge current (mA).

.readTic(); * returns IC temperature (°C).

.readVntc(); * returns NTC voltage (mV).

.powerOff(); * Switches off battery-shield.

Connections

This applies to DIY-More battery-shield V9, and battery-shield V8

Don't forget to add pull-up resistors! (Anywhere between 4.7k and 10k should be fine)

https://rheingoldheavy.com/i2c-pull-resistors/

Screenshot-23

61-FJGx-Yo-Tq-L-AC-SL1000 Shield2

Image-15