Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!




Technical limitatio...
 
Share:
Notifications
Clear all

Technical limitations of Raspberry Pi to record analog bipolar signal with high sampling rate

4 Posts
2 Users
0 Likes
3,466 Views
(@ranjanpal)
Eminent Member
Joined: 3 years ago
Posts: 15
Topic starter  
I am making use of Raspberry Pi to read analog bipolar signals (like AC current) at sampling rate of more than 1kHz (specifically between 1kHz-20kHz)
 
Till now what I have understood so far is that RPi is general purpose linux based microcontroller and not used to record time stamp signals at high sampling rate (i.e. sampling rate >= 1 KHz).
 
But what exactly are the technical limitations because of which we cant achieve sampling rate with more than 1 KHz.
 
For example, MCP3008 is 10 Bit ADC with max sampling frequency of 200KSps working on SPI (ref: https://components101.com/ics/mcp3008-adc-pinout-equivalent-datasheet).
 
Also, ADS1015 is a 12 Bit ADC with maximum sampling frequency of 3.3Ksps working on I2C (ref https://nettigo.eu/products/sparkfun-qwiic-12-bit-adc-4-channel-ads1015)
 
With this, theoretically I should be able to read data with atleast 1KSps. But even that is tough to achieve in RPi.
 
So if someone could please explain what exactly are the technical drawbacks of the RPi (ex. the processor speed, clock speed, bus speed, data rate, allowable sampling rate), I would be very appreciative.
 
Thank you.

 


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2654
 

When it comes to sampling, I assume the RPI can keep up with the range you suggest.
Think of it this way: it can record regular audio, probably even in stereo, without issue.

Seeing the frequency range you have in mind, you may even consider using a audio USB device.
And unlike my previous thought; the RPI should be able to keep up just fine.

See for example this article.


   
ReplyQuote
(@ranjanpal)
Eminent Member
Joined: 3 years ago
Posts: 15
Topic starter  

Hi,

This is somewhat related to both the above mentioned ADCs. Hence I didnt create a new post.

The datasheet of ADS1015 ( https://www.ti.com/lit/ds/symlink/ads1015.pdf?ts=1607691288335&ref_url=https%253A%252F%252Fwww.google.com%252F ) shows that it has full scale range (FSR) for both positive and negative voltages (Pg13, Table 1)

However, for MCP3008 ( https://cdn-shop.adafruit.com/datasheets/MCP3008.pdf ) I could not get any such clear idea regarding its FSR.

Could you please let me know where is my understanding going wrong ?


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2654
 

I can only guess ... but a 1 KHz sampling rate should be easy to maintain by a Raspberry Pi (I assume).
Then again; maybe others use dedicated hardware to record (for example) audio (up to about 20.000Hz), and maybe that hardware caches by itself?

I'm afraid my experience with ADC's is somewhat limited.

Maybe this StackExchange post explains a few things or provides helpful info?

 


   
ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: