Giter Site home page Giter Site logo

arduinolib_max17043's People

Contributors

lucadentella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arduinolib_max17043's Issues

Could you please add a LICENSE file?

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.

Alert is never triggered

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%

Calculation of Voltage wrong

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.