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

25 uOhm Shunt resistor #4

Open
pioioTwo opened this issue Aug 9, 2023 · 1 comment
Open

25 uOhm Shunt resistor #4

pioioTwo opened this issue Aug 9, 2023 · 1 comment

Comments

@pioioTwo
Copy link

pioioTwo commented Aug 9, 2023

its possible mensure using 25uohm shunt resistor

@nathancheek
Copy link
Owner

Hi, do you mean 25 microohms or 25 milliohms? It should work fine with 25 milliohms. The library wasn't particularly written with microohm-level shunt resistance in mind, although with a high enough maxBusAmps value, I think it might work.

For very extreme values, you should look at lines such as the following, to make sure a useful value is still calculated:

this->calibrationRegister = (uint64_t)409600000 / ((uint64_t)this->current_LSB * (uint64_t)microOhmR / (uint64_t)100000); // Compute calibration register

For example, if you passed in values such as maxBusAmps=5 and microOhmR=25, that line will calculate a large value which can't fit in the 16-bit calibrationRegister. But passing in a more reasonable maxBusAmps=1000 would avoid that issue.

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