Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different data rates yield the same SPS #35

Closed
btbernstein opened this issue Jun 13, 2019 · 1 comment
Closed

Different data rates yield the same SPS #35

btbernstein opened this issue Jun 13, 2019 · 1 comment

Comments

@btbernstein
Copy link

Data collection with my ADS1115 always results in approximately the same samples per second, regardless of what is specified. I have tested ads1x15_fast_read.py with each rate, no other modifications, and I always receive ~415 SPS.

Any help with this would be appreciated.
Thank you

@caternuson
Copy link
Contributor

There is currently no syncing with actual data conversion completion. Much more discussion and details here:
#27

The only option currently available is to do something like this:

# Read the same channel over and over
for i in range(SAMPLES):
    data[i] = chan0.value
    time.sleep(SOME_DELAY)

Without the sleep, the loop will run as fast as possible regardless of sample rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants