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

Current integral is not accurate? #46

Open
t-moe opened this issue Jul 19, 2024 · 5 comments
Open

Current integral is not accurate? #46

t-moe opened this issue Jul 19, 2024 · 5 comments

Comments

@t-moe
Copy link

t-moe commented Jul 19, 2024

I'm trying to use this library with my PPK2 in order to calculate the total current consumption of my device, by integrating the current samples.

Calculating the integral works and gives me some number, but the number is way off, when comparing it to a 2nd ppk2 running alongside with the original GUI. E.g. when measuring over 20 minutes, I measure 57 Coulomb with the library, compared to 46 Coulomb with the original GUI.

Did someone run into a similar problem? Could it be, that the device is configured differently when used by the nordic GUI? (Spike filter?)

@mrx23dot
Copy link

Starting of measurements can give 1A spikes, ignore the beginning, then compare the bottom sleep current with GUI.
Also in GUI advanced tab turns smoothing to 1.

@Guym142
Copy link

Guym142 commented Aug 14, 2024

I'm experiencing the same issue, even when ignoring the spike at the beginning of the measurement.

I have a device that wakes up periodically and I wanted to measure how much charge it takes for every wakeup, measuring through the GUI gave me a consistent measurement every time.

Measuring using a python script and this library gave me very inconsistent results with a range or up to +-10% of what it should be.

I even compared to a different current measurement taken with Keysight equipment and I got the same results as I got using the GUI.

I would really appreciate help on this matter.

@t-moe
Copy link
Author

t-moe commented Aug 14, 2024

Side note:
Apparently you should never put two PPKs in series. According to the nordic guys it could lead to wrong results because of range switching (https://devzone.nordicsemi.com/f/nordic-q-a/113249/nordic-power-profiler-kit-ii-inaccurate-charge-integral ). So always make sure to run the test with GUI / with library separately.

@Guym142
Copy link

Guym142 commented Aug 14, 2024

Side note: Apparently you should never put two PPKs in series. According to the nordic guys it could lead to wrong results because of range switching (https://devzone.nordicsemi.com/f/nordic-q-a/113249/nordic-power-profiler-kit-ii-inaccurate-charge-integral ). So always make sure to run the test with GUI / with library separately.

In my tests I used only one PPK, and just changed the method of sampling (GUI vs python)
It's also important to use the same hardware for this kind of comparison because we want to compare different softwares on the same hardware.

@mrx23dot
Copy link

You could try it with constant voltage plus resistor in series with PPK and a good DMM, if that's the same then it's a timing thing.
Second one would be a square wave + resistor.

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

3 participants