Comments (4)
Hard to say as there are many factors
A quick and dirty calculation:
clock speed the INA219 can handle 2.5 MHz in theory (never tested)
As the INA219 can do 2.5 MHz that implies max 2.500.000 / 8 bytes = 300.000 bytes per second
as the current is a float of 4 bytes there are max 300.000 / 4 = 75000 floats per second.
We did not count any overhead or further processing so lets say that is a factor 3
that would leave 25000 measurements per second max.
That is a factor 40 from your 1 MHz samples.
Think the INA219 is not the sensor that can do this.
My need is to detect very small peaks in power consumption measurement.
Questions:
- what are the durations of such peaks?
- what is the normal load? AC/DC?
- what is the peak load?
- how often do you have the peaks? Poison distribution, random, uniform?
These questions should better be discussed on the Arduino forum or so.
I think you must create a hardware solution that triggers and hold when a peak occurs. (interrupt).
And that can be reset from the MCU
Guess you should look for a comparator (convert the current peak to a voltage peak)
- some interrupt handling
from ina219.
You should get a book like - https://www.amazon.com/Practical-Electronics-Inventors-Fourth-Scherz/dp/1259587541
I learned a lot from it and although some parts might be difficult at first you will learn a lot too
from ina219.
Thanks for your advice.
I'll think about it.
I've tried an INA138, an INA226, and a MAX4372.
None of them gave me satisfaction. Either there was too much noise, or the number of samples per second was low.
I'm going to start by putting things straight, and in the meanwhile start reading this book (thanks for the tip).
from ina219.
https://www.youtube.com/watch?v=ic_yEUV7Y3c
from ina219.
Related Issues (8)
- Align with recent INA226 changes HOT 1
- Confusion on setting the mask using setBusADC()/setShuntADC() HOT 14
- wrong reading HOT 40
- Unsure if the calibration calculation used in the code is correct HOT 4
- Issue with getPower function HOT 4
- a few questions HOT 13
- refactor API to support ESP32-S3 and others
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ina219.