Skip to content

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

License

Notifications You must be signed in to change notification settings

MickTheMechanic/arduino_sw6115

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages