This is a library to control BQ40Z50 battery manager. A wide variety of battery pack metrics can be reported including current state of charge, individual cell voltages, time to empty, average current draw, and many others.
SparkFun does not currently sell a board that has the BQ40Z50 but does have a few products that internally utilize the IC. Therefore, being 100% feature complete is not our goal; we have implemented a handful of functions we need for the products that use the IC. We welcome PRs to expand features that users may want.
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
- library.properties - General library properties for the Arduino package manager.
- Installing an Arduino Library Guide - Basic information on how to install an Arduino library.
This product is open source!
Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.