Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4829

General • Re: Transfer data over wifi for pico for a high sampling rate

$
0
0
I added usb2bin.c application.

This application will convert the base64 12bits data into a binary file where each sample points are unsigned short (16bits).

Wow! with this I was able to use the Pi5 at 200Ksamples/sec and store it into the USB3 memory stick.

On the Pi4 I was able to do 250K samples/sec without loosing any block at all!

To compile

Code:

gcc -o usb2bin usb2bin.c
and to run just use the cat command and pipe it!

Code:

cat /dev/ttyACM0 | ./usb2bin >capture.bin
N.B. the usb2bin only support the 12bits mode! You will need to compile the pico program with

Code:

#define USE_12BITS
line 73 in picoADC_USB.c

Statistics: Posted by danjperron — Thu Feb 22, 2024 1:33 am



Viewing all articles
Browse latest Browse all 4829

Trending Articles