fabiovix / py-ads1256

Python Library with C wrappers to read 8 channels from the Texas Instruments ADS1256 ADC chip
29 stars 18 forks source link

Can't get SPS higher than 5000 #4

Open thanhvu1990 opened 7 years ago

thanhvu1990 commented 7 years ago

Dear Mr. Fabiovix. I has tried your coding. Your code is great. however, i want to get a data sample rate about 7500 up. However, when I change the SPS value to 7500 or higher, the result is the same, and the output data is about 3000 sample/second. Could you please to help me to fix it. I'm using Raspberry 3 model B. Thank you in advance

VivBramb commented 7 years ago

Hi fabiovix, your code is amazing and the datalogger example is exactly what I was aiming for. As thanhvu1990, I am using a Pi 3 model B and had trouble to reach high SPS. I'd love to have 1000 SPS per channel, but I can't get more then ~330 SPS. Any idea you might have to fix this? Thanks!

matham commented 6 years ago

I wonder if using the rpi real-time kernel would help increase the sampling rate? You may also need to dedicate the rpi to only collect data at this high rate if all the other OS tasks prevent it from working at faster speeds.

WhatWheatleySaid commented 5 years ago

just can confirm, that 3000 SPS is the maximum i can reach, too. (which corresponds to around 375 SPS per channel when reading all channels) I am desperately trying to find a python Lib that at least can somehow get near to the 30 kSPS of the ADS1256. 8 kSPS would already be decent