Skip to content

More statistics to detect bad/over polling for fast continuous example #61

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

Merged
merged 5 commits into from
Dec 2, 2020

Conversation

WizardTim
Copy link
Contributor

Output with RATE=250

Old

$ python3 ads1x15_fast_read.py
Time of capture: 0.40527645900147036s
Sample rate requested=250 actual=2467.4514835226882

New

$ python3 ads1x15_fast_read.py
Took 0.408 s to acquire 1000 samples.

Configured:
    Requested       =   250    sps
    Reported        =   250    sps

Actual:
    Polling Rate    =  2448.00 sps
                        979.20%
    Repeats         =   901
    Conversion Rate =   242.35 sps   (estimated)

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! Thank you!

@tannewt
Copy link
Member

tannewt commented Dec 1, 2020

(Looks like you'll need to run black over the new code.) https://learn.adafruit.com/improve-your-code-with-pylint

@tannewt
Copy link
Member

tannewt commented Dec 2, 2020

Thanks again!

@tannewt tannewt merged commit c513e9e into adafruit:master Dec 2, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 12, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15 to 2.2.4 from 2.2.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_ADS1x15#61 from WizardTim/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_APDS9960 to 2.2.3 from 2.2.2:
  > Update README.rst

Updating https://github.com/adafruit/Adafruit_CircuitPython_BMP3XX to 1.3.1 from 1.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_BMP3XX#14 from JackBurdick/fix_unit

Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.0.2 from 1.0.1:
  > Making small change to have actions re-run

Updating https://github.com/adafruit/Adafruit_CircuitPython_MS8607 to 1.0.4 from 1.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_MS8607#5 from mcauser/patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation to 2.5.2 from 2.5.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#73 from kattni/color-doc-fix
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

Successfully merging this pull request may close these issues.

2 participants