This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using ADS1115 in differential mode
#6
Code:
[ADS1115_4]
differential=1 # impossible as there are only two inputs in differential mode.

No it isn't impossible. There are 4 differential modes!!!
# 0 = Channel 0 minus channel 1        [ADS1115_1]
# 1 = Channel 0 minus channel 3        [ADS1115_2]
# 2 = Channel 1 minus channel 3        [ADS1115_3]
# 3 = Channel 2 minus channel 3        [ADS1115_4]

(you can measure up to 3 differentials not only 2!)


[quote pid='1612' dateline='1494447747']
I have used linear regression and supply an offset (added to the value from ads1115) and an intercept and a offset. The adjust_points  and adjust cover this as is, the only suggestion is that adjust_points might make polynomial or spline function to interpolate (maybe this a overkill ?).
[/quote]

Well if you use adjust_points, you don't need the offset.
The gui input of the adjust_points is only done for mcp3008 under the tab SPI. It can show you a graph of your adjust_points.
You can enter the adjust_points there and copy the line adjust_points = [...] from openplotter.conf to openplotter_analog.conf

In future we should add "differential=1" to the conf file. Thanks.
Reply


Messages In This Thread
Using ADS1115 in differential mode - by olewsaa - 2017-04-30, 08:41 PM
RE: Using ADS1115 in differential mode - by e-sailing - 2017-05-10, 11:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)