Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation of Voltage wrong #2

Open
andreas-schramel opened this issue Aug 26, 2016 · 0 comments
Open

Calculation of Voltage wrong #2

andreas-schramel opened this issue Aug 26, 2016 · 0 comments

Comments

@andreas-schramel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant