Using the current kernel driver, you can perform just over 8000 SPI transactions/sec. So it's going to be fast enough for your sampling.Killertechno wrote:Hi, I don't know if it's the correct place to post, if not I apologize....
I need to intarface to an SPI device (vibration sensor) that uses SPI interface, it sends out data at 2000 Hz, every time I have to read 6 Bytes.
I need to collect data ro make a real-time monitor, data would be displayed on a graph where I can zoom... but this is a second-time focus.
Now, hoe can I get data?
2 KHz sample rate is very low rate for a microcontroller (I always used microcontrollers), but for Raspberry I'm a bit confused....
I can read through SPI channel using C (or Phyton) program, but could I really reach a reading every 500 us?
Is there some SPI library more suitable for this than other library?
Is it possible to make a software interrupt to be called every 500 us?
Or would be better make an external (hardware, maybe through serial interface) buffer and collect data every second?
Users browsing this forum: No registered users and 6 guests