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

default shunt value and 3.2A max value #3

Open
siteswapjuggler opened this issue Nov 2, 2023 · 3 comments
Open

default shunt value and 3.2A max value #3

siteswapjuggler opened this issue Nov 2, 2023 · 3 comments

Comments

@siteswapjuggler
Copy link

  • Arduino board: ANY

  • Arduino IDE version (found in Arduino -> About Arduino menu): 2.2.0

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

    open ina228_test.ino example
    go to line 21 and 22

The values on those line doesn't match the Adafruit product page. https://www.adafruit.com/product/5832

First and imho the shunt value could be set by defaut to 0.015 to match the breakboard value

Secondly I didn't understand why you mention the 3.2A limit, the product page mention 10A or 2.75A depending on ADCRANGE which by the way seems not configurable in the actual version of the library.

I'd be happy to pull some suggestion but I was hoping to get in contact first.

Have a nice day

@geotsak
Copy link

geotsak commented Mar 6, 2024

I am also wondering why the 3.2A limit is mentioned, is there actually any such limitation?

@SylvainGarrigues
Copy link

SylvainGarrigues commented Jan 13, 2025

The default appropriate value for the resistor as it is found on the Adafruit INA228 breakout board was implemented in commit b7af448 but later reverted in 55c98df.

@Dennis-van-Gils, as the author of those two commits, maybe you can share the reason it was reverted, as well as the reason for the comment about the 3.2A maximum supported current (the board can go up to 10A per product description)?

@Dennis-van-Gils
Copy link
Contributor

Dennis-van-Gils commented Jan 13, 2025

I was asked by the Adafruit moderator of this repo, for reasons unknown to me, to revert back my commit that corrected the default values on the shunt resistor and max current. It is indeed clear in the spec sheet that the on-board shunt is 0.015 Ohm and the max current 10 A.

I believe that at initial commit of this repo the wrong values were copied over from another INA chip library and that the moderator is now afraid to "break" the library for those people that rely on these wrong default values. It's a moot point, because now everyone has to supply these arguments with the correct values in order to get proper operation of the chipset.

So yes, I'm still in favor to correct the default values, and I was not allowed to :) Didn't want to argue about it anymore, so I just went with it.

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

4 participants