ADS1115 and sampling speed

Hello :wave:
I appreciate it’s been a while since since this topic has been active but I have been finding it very useful. I opened another topic for my specific setup but the problem that I am facing at the minute is calibrating the readings (Power meter using Raspberry pi & SEN0211)

I’ve been comparing the code that you added in this post with what’s on github: https://github.com/openenergymonitor/EmonLib/blob/524c76a6c61acf7c35d90c4a53ddb0abb6173590/EmonLib.cpp and they seem pretty much the same, EXCEPT the fact that you are multiplying sampleI with *4096/3300; and then you are also using this for I_RATIO.

I am curios to know the following:

  • Why are you doing this?
  • Why 4096?
  • What value are you using for ADC_COUNTS?
  • I assume 3300 means 3.3V ?

Thank you!

1 Like