ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

Setting Sampling Speed Innacuracy #33

Open ameyavelankar opened 1 year ago

ameyavelankar commented 1 year ago

I am attempting to use the Waveshare board on a Raspberry Pi2B+ running Bullseye. While the voltage values being read are accurate, I am having trouble setting the sample rate that I want (600 SPS). To demonstrate this, I use the code below which I based on the examples provided.

spsTesttxt.txt

When I type in a DRate of 500+, I actually get ~60 SPS. With 100, I get ~22. With 30, I get ~7.

Do you have any idea what I am doing wrong? Looking through the other issues, I recognize that maybe 600 SPS is not possible with Python, but shouldn't I at least be able to get up to 100?