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

Charge Result Register not accessible by library Post #5

Open
marcobergman opened this issue Dec 11, 2023 · 2 comments
Open

Charge Result Register not accessible by library Post #5

marcobergman opened this issue Dec 11, 2023 · 2 comments

Comments

@marcobergman
Copy link

The library does not seem to include a function like readCharge, that would read the chip's Charge Result Register. For building an SOC application, I would need this to count my coulombs. Could this function be added? Thx!

@marcobergman
Copy link
Author

Forked the library and made the change myself: https://github.com/marcobergman/Adafruit_INA228

@UpAllNate
Copy link

Adafruit bumped this repo to v1.1.0 three weeks ago. Their library now includes a resetAccumulators function that is identical in substance as the function in @marcobergman fork. I made a fork of the 1.1.0 repo and made the following changes:

  • added the marcobergman function for readCharge()
  • updated the example script
  • updated the default setShunt() resistance and current to 0.015Ohm and 10.0A to match product 5832

Here is my fork: https://github.com/UpAllNate/Adafruit_INA228

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

2 participants