Shift input signal to 0-5V
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
- disableInternalReference? I evidently never implemented this function. You will need to implement it in https://github.com/Molorius/ADS126X/blob/master/src/ADS126X.cpp.
- Floating bias polarity? I would double check the datasheet on bias polarity. But overall I wouldn't trust floating pins on an ADC.
- 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.
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: @.***>