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

Added support for INA219 current sensor #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elenhinan
Copy link

Added support for the INA219 current sensor for use with external shunt.

The adafruit INA219 library had to be customized since it did not allow for changing the shunt values. Since it had some important members set as private (and not protected), the source had to be changed instead of creating a derived class.

Tested on a 200A 75mV shunt, and seems to be working fine on the lab power-supply, will install in boat soon.

Future work:

  • Add support for more INA219s, the chip can be configured for up to 16 different I2C addresses.

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

Successfully merging this pull request may close these issues.

1 participant