Quantcast
Viewing all articles
Browse latest Browse all 4852

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

Hi
Thanks a lot.
I used pi 5 and it worked flawlessly.
Pi 4 was the culprit.
I used usb2bin.c to save in a binary file and used bin2csv.c to save the raw voltage values in csv.
Then i tried to scale it back to original voltage values. The signal I was sampling was a sinusoidal signal (10 Khz) between +2.3V and +40 mV.
But after I scaled it back by multiplying 3.3/2^12 factor ( i belive I need to multiply by this factor with the raw adc values, as pico operates between 0-3.3v and 12 bit resolution)
But the problem is I am not getting the +2.3 volt maximum or minimum. It seems my maximum is 1.9 v. I am losing accuracy in amplitude.
Am I multiplying raw adc values with correct factor? (my pico has 12 bit precision, and it should be 2^12 right? )
Did your signal amplitude matched with your collected signal? ( i believe it did)

I connected the signal generator directgly with my pico.
And connected the pico directly with my pi5.
( do i need to connect any resistor before collecting data, or I am converting it back to original voltage with wrong factor)

Thanks a lot again for your help.

This is the signal i acquired with pico and pi5, which has lost accuracy inn amplitude. I have the raw adc values using your bin2csv.c file.
https://drive.google.com/file/d/1M8BVqJ ... sp=sharing

Statistics: Posted by Pranjol93 — Tue Feb 27, 2024 5:39 am



Viewing all articles
Browse latest Browse all 4852

Trending Articles