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
ADS1115 Gain & Calibration
#6
Yes and no. Of course the ADC converts an analogue voltage to a quantized representation. It's output is always an integer in the range 0 to 32767 (for the ADS1115 which is a 16 bit device), OpenPlotter reads this and converts it to a voltage which is presented to Signal K.

Just because you are connecting a device which can output 0.5V to 4.5V does not mean that a value of 0 corresponds to the 0.5V and 32767 corresponds to 4.5V that's absurd.The ADS1115 has no idea what the min and max values might be of anything you happen to want to connect to it, it is just reading a voltage and assigning it to the nearest quantized value within a range. It has no further knowledge. So if I connect something that swings say from 1V to 3V it can't automatically adjust so that 0V returns a level 0 and 3V returns a level of 32767. The gain you set on the device determines the range of voltage it can measure; a gain of 1 for instance means it can measure 0V to 4.096V. If it is supplied with an input of 4.096V then the digital level will read 32767, If the voltage increases to say 4.5V then the device has run out of range, I cannot assign a higher value than 32767.

In fixing the gain for the ADS1115 you are fixing the intervals between each voltage step it can resolve. What you have to do is to set the gain and/or use a potential divider to ensure that the voltage presented to the ADC is within the range for the gain specified and within the overall capabilities of the ADS1115 (e.g. no more than around Vcc +0.3V).
Reply


Messages In This Thread
ADS1115 Gain & Calibration - by SY Kalinka - 2023-11-05, 09:30 AM
RE: ADS1115 Gain & Calibration - by baltika_no_9 - 2023-11-05, 07:59 PM
RE: ADS1115 Gain & Calibration - by SY Kalinka - 2023-11-06, 05:53 PM
RE: ADS1115 Gain & Calibration - by baltika_no_9 - 2023-11-06, 07:36 PM
RE: ADS1115 Gain & Calibration - by SCarns - 2023-11-11, 12:10 AM
RE: ADS1115 Gain & Calibration - by baltika_no_9 - 2023-11-11, 10:59 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)