Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Maximum frequency for ADC

The Expander Pi is an Analogue, Digital and RTC development Interface for the Raspberry Pi

06/05/2019

Posted by:
tfv3

tfv3 Avatar

Hi,

what would be the maximum expected sampling frequency for ADC? Is this tutorial

Reading ADC inputs on the Expander Pi

using I2C or SPI?

Thanks,

tfv

07/05/2019

Posted by:
andrew

andrew Avatar

Hi

The maximum sampling frequency for the ADC on the Expander Pi is dependent on several factors, the main two being the programming language and the model of Raspberry Pi.

On a Raspberry Pi 3 B+ using python you can expect to get a sample rate of approximately 13500 samples per second. Using C you can get a sample rate of 32000 samples per second. The C language is more than twice as fast because it uses a compiled program that has less CPU overhead than interpreted languages like Python.

Other factors can have an impact on the sample rate such as CPU load from other processes and the SPI bus speed so your maximum sample rate may be lower.

We have ADC speed test scripts for Python, C, C++ and Node JS which you can use to compare the performance of the ADC on your Raspberry Pi. All of the tests use our Expander Pi libraries which can be found on our GitHub repository at AB Electronics UK GitHub Repository

Sign in to post your reply


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout