-
Notifications
You must be signed in to change notification settings - Fork 58
not getting 1600sps in ads1015 #43
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
Comments
Obtaining the fastest sampling rate may not be possible. See here for lots of details and discussion: |
The general issue is syncing with the conversion completion in continuous mode. There are two general ways this can be done:
Approach 2 is not viable since CircuitPython does not support interrupts. Approach 1 has the issue of slowing everything down since the query requires an I2C transaction. Checking this status bit is done for regular reads: You'll have to deal with the conversion complete syncing somehow: |
I followed links and there is great effort and insight, thank you @caternuson. In a project; I'm using ADS1115 and needed to have a stable 475 sample rate. As you already pointed out, fast_read example tries to read max and does not obey settings. There is also this library: https://pypi.org/project/RPi.GPIO/ and its comment says that for real-time performance don't use raspberry, arduino would be better. So my question; is 475 sample rate in a stable manner (+-1 could be OK) possible on Raspberry Pi? (At least theoretically? Assume that I found a way to use interrupts) |
Unknown. But worth trying. Would be interesting to see what you can work out. |
@caternuson Is this resolved? |
We can close for now. Not really resolved, but I don't think there's any easy to do this with the current state of CP (i.e., no interrupts). The discussions in the threads linked above document where things are at. |
i want to get sampling rate 1600 sps from ads1015 using with pi 3A+ but only getting around 250hz data. help!!
The text was updated successfully, but these errors were encountered: