lucadentella / arduinolib_max17043 Goto Github PK
View Code? Open in Web Editor NEWMAX17043 Arduino library
MAX17043 Arduino library
Some downstream consumers of this library would like to know the specific licensing terms involved; adding an explicit LICENSE file to indicate the license would be immensely useful. Thanks in advance.
I am using this library with the Sparkfun LiPo Fuel Gauge (https://www.sparkfun.com/products/10617) and am able to read all the different values through its interface.
I am not, however, able to get the alert interrupt working. The interrupt is never triggered and, although the measured voltage is below 3.7v and the alert threshold is set to 0 (32%) with a measured SoC of ~8, the alert interrupt is triggered and the inAlert() function always returns false.
I am currently measuring the following values with a single cell LiPo battery connected:
vCell: 3.69v
SoC: 8.58%
AlertThreshold: 32%
How to get Vsoc at i2c address 0x32
Calculation of the cell voltage is wrong. Change float MAX17043::getVCell() in MAX17043.cpp:
from
return map(value, 0x000, 0xFFF, 0, 50000) / 10000.0;
//return value * 0.00125;
to
//return map(value, 0x000, 0xFFF, 0, 50000) / 10000.0;
return value * 0.00125;
This results in the correct values (verified with multimeter).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.