I'm doing a acquisition system for analog sensors (water pressures and water turbidity) using a raspberry pi 3B and a ADC (ADS1115).
The problem that i am facing is that from time to time the buffer (or whatever) gets full and the ads1115 gives a zero reading.
The lower the data rate (or whatever), the more frequente are the nulls.
Here I show the plots that i have:
DATA RATE = 8 sps
DATA RATE = 16 sps
The drops were turbidity goes to zero and pressure to negative values are a consequence of the zero readings in the adc.
Is there a way to clear the buffer (or whatever) of the adc? Or do you think the problem is other?
The connections that i have are all in the github repository: https://github.com/Ricardosgeral/relier ... /README.md
The code for the reading of the ADS1115 is in this file https://github.com/Ricardosgeral/relier ... _thread.py
I would appreciate some directions here.