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 compileand to run just use the cat command and pipe it!
N.B. the usb2bin only support the 12bits mode! You will need to compile the pico program with line 73 in picoADC_USB.c
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
Code:
cat /dev/ttyACM0 | ./usb2bin >capture.bin
Code:
#define USE_12BITS
Statistics: Posted by danjperron — Thu Feb 22, 2024 1:33 am