Hi,
We are using ADS1115 to read the sensor data on all 4 channels. The requirement is as mentioned.
1. Reading the data from channel 1 to 4 from ADS1115 and store in the array.
2. FFT/Goertzel is to be applied on the stored data. So we need minimum 128 samples for FFT and 200 samples for Goertzel from each channel.
3. As ADS1115 supports 860 samples per second, we can read 128 samples in one second from all 4 channels. In case if we read the data from 2 channels, we can read 256 samples. Is this understanding correct?
4. We have implemented Goertzel algorithm and verified. During testing we have found that the algorithm works fine when we are reading only one ADS1115 channel (it could be either channel 1 or channel 2 but one channel at a time). But when we read 2 channels one after another and implement the Goertzel algorithm, the output of algorithm is not as expected.
We would like to know if ADS1115 is not giving proper output when we are reading 2 channels one after other?
We have configured the ADS1115 in continuous mode and we are reading the data periodically through microcontroller timer interrupt (every 5 ms). We have used Atmega328 microcontroller with internal clock of 8 Mhz.
Kindly advice if we are using ADS1115 in correct way.
Thanks,
Purushottam