Giter VIP home page Giter VIP logo

Comments (2)

tiagolobao avatar tiagolobao commented on August 23, 2024

Hello! Glad that you liked. So, to be honest, I took this image from another project. The most complete one I found at least. take a look, it may have some other good info there.

I worked mainly in the software, that means that maybe I'm not the best person to be asked those questions, but since I'm also intersted I'll try to answer anyway!

  1. Voltage pins you mean the voltage measure pins ( 6,7 )? or the CS5490 power supply ( 11, 10 )?

  2. About the GND location next to shunt, here I have some explanation that Vytautas sent me some time ago and maybe can clarify a little bit:

(I presume that you are using a shunt resistor for current sensing)

Layout and topology are extremely critical !
The CS5490 circuitry must have its own isolated and independent ground (analog ground).
No strong currents should ever circulate through the analog ground.
The analog ground must be connected to the load circuit in a SINGLE point.
The voltage divider's termination resistor and all input filter capacitors should be connected as close as possible to that point.
That point should be the physical shunt terminal that is connected to the mains NEUTRAL.
Keep the mains LINE as far as possible from the CS5490 circuitry.
If practical, it's convenient to shield the input circuits from noise.

Consider the three cases shown in the figure.
CASE 1
It is the best solution. There is no common-mode voltage and the current sample is directly applied to the sense inputs.
CASE 2
The current sample is directly applied to the sense inputs, but the CS5490 has to make an extra effort to get rid of the common-mode voltage and the final reading will depend on how well this job is done.
CASE 3.
The common-mode voltage disappears by connecting I- to B instead of A. The system behaves as if the shunt was larger (RS' = RS + RAB)
The current reading will be greater than the actual current, but this could be corrected by reducing the Gain of the current channel.

There is however a catch in this "solution" : A good quality shunt resistor retains its value (RS) over time and temperature changes, but the same cannot be said about the value of RAB and hence the current reading will depend on the stability of RAB.

Shunt

  1. The idea is: the 0.01 ohm shunt resistor gave you an output of instant +250mV (for example)
    if you look the datasheet:

6.6.30 Instantaneous Current (I) – Page 16, Address 2
value in the range of -1.0 > value >1.0
and
image

It means that (If the I gain is 10) the current should be V = R*I that is 250mV = 0.01Ohm * I that is I = 25A

Or you can measure the current with something else, take the values, compare with CS5490 values and calibrate using those numbers. Ex: 1A -> 0.10 and 2A -> 0.20 means you should do something like this:

double instantI =  line.getInstV();
Serial.print(" The current is: ");
Serial.println( instantI * 10 );

PS: I cant remember right now if the output 1 means exactly 250mV with gain 10, or if there is any other remaks.

from cs5490.

tiagolobao avatar tiagolobao commented on August 23, 2024

Issue closed. Assuming problem is solved

from cs5490.

Related Issues (7)

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.