This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1261: Working with ADS1261 connected to ESP32 having accuracy problems when changing input signal frequency.

Part Number: ADS1261
Other Parts Discussed in Thread: ADS127L18, ADS127L14, ADS127L11

Tool/software:

Hi, i'm currently working on a project involving the ADS1261 device. Currenty i'm in the testing phase, where i want to verify if i can read back the correct analog values using the mentioned device. My setup involves an improved howland current source (VCCS, sinusoidal current source with 1mA amplitude), which i drive with my ESP32.  On my scope i could verify it outputs the correct frequency (10 kHz) sinusodial waveform. For testing the ADC i set up an environment, where i drive the sinusodial current through a 1.1 kOhm resistor, and try to measure the voltage drop accross it using the ADS1261. 

Before the ADC there is a signal conditioning circuit consisting of buffer amplifiers (AD8244) and high-pass RC filters (33nF, 10kOhm) and the output of these is connected to the ADC.

I set up the ADS1261 to use the internal 2.5V reference, GAIN=1, sampling rate 40 kSPS and set the INPMUX register to 0x23 to measure the voltage drop between these channels. 



For the cases when i set the VCCS frequency to 1 kHz i can clearly reconstruct the signal, it looks what i intended, this is shown on the following figures.

   

My problem is that when i raise VCCS frequency the sampled signal gets distorted. I understaned, that by raising the frequency the sampling should contain more noise, this seems trivial, but i feel like not the amount i experience. When i raise the frequency to 2 kHz the sampled signal looks like this (not awful, but clearly visible distortion):
 

And finally what is my main problem is that i would like to sample a 10 kHz signal using the device, and in this case, the measured values looks just like noise, not even close to what i would imagine. I don't really understand what could be the problem, since im far beyond the Nyqusit limit (f_samp > 2 * f_sig), and currently i have no idea what am i doing wrong, such that the measurement results are complete non sense. Can you please help me, what could i do in this case, or what can i do to avoid this behavior? (In case of each signal, i attached, i have verified with my scope, and im sure they are close to the right waveform.)

The project of mine is available here: EITHardware/ADS1261.hpp at main · balazs42/EITHardware

Thanks in advance!

-Balazs

  • Hi Balazs Hazi,

    The ADS1261 is not really intended for AC measurements, certainly not at 10kHz. You can see from the table below that the filter BW at 40kSPS is 8kHz, so of course you cannot measure a 10kHz signal

    I would instead suggest you use the ADS127L11 (or ADS127L14 or ADS127L18 if you need a multi-channel device) to measure AC signals. This ADC has an integrated wideband filter that has a very flat passband and very sharp transition band, which is ideal for AC signal measurement 

    -Bryan

  • Hi Bryan,

    Thanks for your response, thats what i was afraid of. I will have a look at the suggested devices.

    Best regards,

    -Balazs

  • Hi Balazs Hazi,

    If you have additional questions about the ADS127Lxx devices please start a new thread and we will support you there

    The ADS127Lxx is a very high performance ADC, it will be the best device to use for this application

    -Bryan