Giter Site home page Giter Site logo

Question about speed about ina219 HOT 4 CLOSED

N0ury avatar N0ury commented on June 19, 2024
Question about speed

from ina219.

Comments (4)

RobTillaart avatar RobTillaart commented on June 19, 2024

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.

RobTillaart avatar RobTillaart commented on June 19, 2024

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.

N0ury avatar N0ury commented on June 19, 2024

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.

RobTillaart avatar RobTillaart commented on June 19, 2024

https://www.youtube.com/watch?v=ic_yEUV7Y3c

from ina219.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.