Lennie
Posts: 10
Joined: Tue May 21, 2013 12:17 pm

Reading data to the Pi

Tue Sep 03, 2013 8:17 am

Hi

I have an oscilloscope generating a sine wave at some frequency and as a fun test with my Pi I'd like to pick up this data directly with it. Is there a way to accomplish this? I'm a beginner, so any keywords/hints would be appreciate a lot.

Cheers,
Lennie.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Reading data to the Pi

Tue Sep 03, 2013 8:33 am

I assume the scope is outputting a voltage varying with the sine wave. The Pi is a digital device and has no analogue inputs. A voltage less than 0 or higher than 3.3V may damage the gpios. Within the range 0 to 3.3V the gpios will report low or high depending on the voltage.

You'd probably need to digitise the voltage with an external ADC and feed the numbers into the Pi to see anything interesting.

nummy
Posts: 35
Joined: Tue Aug 14, 2012 12:07 am

Re: Reading data to the Pi

Wed Sep 04, 2013 8:01 pm

I think you mean a function generator ... o-scopes don't typically generate waveforms, they just display them. Or perhaps you're looking at a signal (with the o-scope) being generated on some other device.

But yea, you need an ADC ... check out the Gertboard, a RPi expansion board. It has lots of neat stuff.

Lennie
Posts: 10
Joined: Tue May 21, 2013 12:17 pm

Re: Reading data to the Pi

Fri Sep 06, 2013 4:41 pm

Is it possible to use a portable sound card to perform the ADC, such as this?

I of course meant a waveform generator in my OP, thanks...

Return to “Automation, sensing and robotics”