ADS126X icon indicating copy to clipboard operation
ADS126X copied to clipboard

Shift input signal to 0-5V

Open cotixtof opened this issue 3 years ago • 2 comments

Hi Blake, We continue to use your lib, thanks for your work. When using the function disableInternalReference(), we have an error message when compiling (''undefined reference'') : how can we fix it? Also, it seems we have an issue when setting the bias polarity(PULLUP mode), when AIN0 and AIN1 are floating we didn't read the AVSS. Thoughts? Also when using AIN0 (positive) and AIN1 (negative) input, AVDD=DVDD and AVSS=DGND, we read +2500mV when AIN0 is floating and AIN1 is connected to AVSS, and we have -2500mV when AIN0 is floating and AIN1 is connected to AVSS, when we connect AIN0 to the positive side of a 1,5V battery and AIN1 to the negative side, we read 1500mV : thoughts? Chris

cotixtof avatar Jun 08 '22 15:06 cotixtof

  1. disableInternalReference? I evidently never implemented this function. You will need to implement it in https://github.com/Molorius/ADS126X/blob/master/src/ADS126X.cpp.
  2. Floating bias polarity? I would double check the datasheet on bias polarity. But overall I wouldn't trust floating pins on an ADC.
  3. Partially floating pins? Again, double check the datasheet but be very wary of floating pins. I would not trust floating pins to give any useful data.

I am also unsure what "shift input signal to 0-5v" means alongside these questions. So far I only see a battery of 1.5V from your question.

Molorius avatar May 30 '23 23:05 Molorius

Thanks anyway !

De : Blake Felt @.> Répondre à : Molorius/ADS126X @.> Date : mercredi 31 mai 2023 à 01:13 À : Molorius/ADS126X @.> Cc : cotixtof @.>, Author @.***> Objet : Re: [Molorius/ADS126X] Shift input signal to 0-5V (Issue #17)

Note that I am not an electrical engineer though.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cotixtof avatar Jun 05 '23 14:06 cotixtof