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

INA240 version #6

Open
PixelMutation opened this issue Mar 17, 2022 · 2 comments
Open

INA240 version #6

PixelMutation opened this issue Mar 17, 2022 · 2 comments

Comments

@PixelMutation
Copy link

The version of INA240 is not specified in the BOM. According to the datasheet there are 4 versions. To clarify, is it INA240A2, since that is what is used on the regular FOC shield?

@GovP
Copy link

GovP commented Jul 17, 2022

Also curious!
Tried with A3 and they (specifically the INA240 over 3 attempts) keep frying. Could be another issue e.g. voltage but wondering if using the wrong spec.

@askuric
Copy link
Member

askuric commented Jan 10, 2023

Hey guys,
Sorry for the delay, I've forgotten to reply.
It depends on the currents you're interested in measuring.

The board has a resistor of 1milliOhm (it can be changed as well) and since usual ADC voltage is 3.3V. INA240 gains are:

  • A1 10V/V
  • A2 50V/V
  • A3 100V/V
  • A4 200V/V

The current range will be:

max_current = 3.3V/2 / 0.001milliOhm / gain (V/V)

So A1 would give you a range of 3.3/2/0.001/10=165 Amps :D
A2 will give you a range of 3.3/2/0.001/50=33 Amps
With A3 range will be 3.3/2/0.001/100=16.5 Amps
And for A4 3.3/2/0.001/200= 8.25 Amps

So in my case I've used the A2. But the rule of thumb would be to use the highest gain possible for your application.

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