ADC sample rate #233
Unanswered
EYEnet-GROUP
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @EYEnet-GROUP, The timing difference might not be really hardware configuration itself, but the fact that in micropython, every call will add some overhead time due to interpreter execution. Few suggestions I can make to test if performance is improved :
Let us know if any of this helps :) Thanks and Best Regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
in my project a CY8CKIT-062S2-AI board is mounted to a rotating disk with a sensor on the running surface. The disk spins at 3000 to 5000rpm and therefore the sensor read requires a high sample resolution. The Sensor and an analog amplifier are designed for 600-900kHz. According to the Datasheet of the CY8CKIT-062S2-AI the onboard ADC can process 2Msps. However a simple performance test script results in 41µs read time (24.4ksps) way short of the required 900ksps.
Additionally a Micropython performance test script without the ADC results in 12µs read time.
In this case acquiring the ADC result takes 29µs. To simulate a continuous request the following script counts the number of samples in 1 second and results in 19.227ksps.
In another test using psoc for arduino the read takes 43µs and the 1s test counts 24.366ksps almost identical to the micropython performance. Is there a setting I am missing to increase the sample rate or a buffer to read from?
Beta Was this translation helpful? Give feedback.
All reactions