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

Beginners • Re: Fastest way of acquiring individual chunks of ADC data

$
0
0
It looks like you are trying to use the same signal as digital input (to trigger the data capture) and analog input (to be read by the ADC). Presumably this is an attempt to do peak-capture but there will inevitably be a time delay between the digital trigger and the ADC capture, so the ADC values won't represent the actual value that caused the trigger.

Anyway, there is no chance that a Pi will be able to do this, due to its highly non-deterministic behaviour. You best bet is a Pico; personally I'd forget about the digital trigger, and just code a tight loop that takes values from the ADC, checks the value, and stores it if above a certain threshold. Ideally you'd use a PIO channel for this, but the PIO can't do an arithmetical 'greater-than' comparison, so I don't think that will work very well, as you'd be constrained to bit-value comparisons.

With regard to offloading the samples from the Pico, I have achieved 10 Mbit/s TCP transfers over WiFi for my networked oscilloscope project, see https://iosoft.blog/wicap

Statistics: Posted by jayben — Tue Sep 17, 2024 8:59 am



Viewing all articles
Browse latest Browse all 4140

Trending Articles