Bio-Balance-Detector / bbd-p08-body-monitor

BBD Body Monitor is a single channel data acquisition system (DAS) to provide a bio-potential reading in the 0.25Hz - 125kHz frequency range. The main focus of the prototype is to use machine learning to detect different physical and mental states.
http://www.biobalancedetector.com
MIT License
5 stars 0 forks source link

Run API on Raspberry Pi at 250 kSPS (with AD2) or even 500 kSPS (with AD3) #8

Closed andrasfuchs closed 1 year ago

andrasfuchs commented 1 year ago

The goal would be to run the data acquisition on a Raspberry Pi at 250 kSPS and save the .WAV file locally.

The acquisition works at 250 kSPS at the moment, but it's often stops and restarts. It would be great to have a stable operation even during the times when we transfer the created WAV files from the Pi to another computer.

AD3 gives are bigger buffers, but it crashes at higher rates with DWF 3.20.13.

andrasfuchs commented 1 year ago

File writing is enabled and the data directory is on the SD card (and not on a faster, USB 3 external drive).

AD2 reports at corrupted samples regularly at 500 kSPS, but 250 kSPS seems to be fairly stable. AD3 reports at corrupted samples regularly at 1000 kSPS, but 500 kSPS seems to be fairly stable.