Constant Sampling Rate of Internal ADC #13442
Replies: 2 comments
-
@JohannesMaierhofer On other ports (e.g. stm32) we have a way to sample the ADC at a precise interval -- https://docs.micropython.org/en/latest/library/pyb.ADC.html#pyb.ADC.read_timed Unfortunately this is not available on ESP32. One thing you could do to improve the jitter in the code is to optimise the function:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the tips. It helped a lot. Additionally, I moved the line |
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, I use the following code to sample two ADC pins from the ESP32 at 10_000Hz. The sample rate is no problem but due to the structure of the code, the sample rate is not exact. Any ideas how to sample in more sound way?
I would prefer the I2S ADC version, but unfortunately it is not implemented yet.
Beta Was this translation helpful? Give feedback.
All reactions