Using Your PC Sound Card As an Oscilloscope in Linux

June 6, 2006
If you a home hobbiest such as myself, having an oscilloscope is ideal, but may not be economically feasible. However, there is a free option available. xoscope For Linux is a GTK application which allows you to view signals through your PC's sound card (thus limiting the range to audio frequencies dependent upon the sound card being used). This can come in handy for robotics type hobby projects. Additionally, the author (Tim Witham) has provided a buffer hardware circuit to buffer the proble similar to a true oscillosope and protect your PC's Line In from excessive voltages.

screenshot of xoscope - Sound card based oscilloscop for Linux

Installing xoscope

  1. Download xoscope For Linux.
  2. Extract the tarball.
  3. Configure, Make, and Install:
    ./configure make su make install
  4. Enable capture from your Line-In audio jack (Gnome): Open the Gnome Volume Control from the menu: System > Preferences > Volume Control. Click Capture tab. Enable capture for the Line-In channel by clicking the "Toggle Audio Capture from Line In" button.

Enable capture from Line-in

Categories: Linux

17 Comments about "Using Your PC Sound Card As an Oscilloscope in Linux"

May 25, 2010 at 12:29 PM
How do the xoscop read volt dimension?
marco
April 19, 2010 at 09:36 AM
in terminal type sudo apt-get install xoscope or open your pagage manager find xoscope
marco
April 19, 2010 at 09:33 AM
grate software works perfect in ubuntu9.10 nvidia soundcard helps a lot figuring defects and analysing signals
Roelof Ymker
October 17, 2009 at 03:17 AM
Hello,

How must I install this program? What must be typed in the terminal?
July 28, 2009 at 05:34 AM
Basic sound card goes up to ca. 20 kHz. New motherboards and chipsets go over 100 kHz, but sometimes there is still antialiasing filter cutting off frequencies above 20 - 24 kHz. Lower frequency is low, somewhere 10 - 30 Hz. It is possible to get DC response over a few minutes by reverse filtering the recorded signal. Exact sampling may be alternate times or exactly same time or undefined relationship between left and right channels. I have not enough experience with xoscope, but with similar programs it looks like 1 GHz PC is good enough, even slower. Some other programs, esp. networking may overload even fast computer and cause random loss of one or a few samples now and then. Better to stop other programs when recording something really time-critical signals. Thanks Micaf for the links. (Proofread by Firefox)
July 9, 2009 at 05:44 AM
@Andreas: Considering the original was created in 1996, I think an Atom 1.6 will be more than enough. You could probably get by with an old Pentium 2 or 3.
Andreas
May 14, 2009 at 09:30 AM
What kind of CPU is needed to run this at decent speeds? Say for example, is an Atom 1.6 enough? Thinking about ripping a cheap netbook apart to build a rack mounted oscilloscope.
John
April 11, 2009 at 03:45 PM
Thanks. Shame about the petty pedantic people that stumbled upon your guide!
M. Peter
March 22, 2009 at 01:15 PM
Hi, my only question is that this sound card thing probably has a freq. range from 20Hz - 20kHz.
Am I right ?
pro-rsoft
December 30, 2008 at 04:20 AM
Will this work with the microphone input as well?
steve
September 27, 2008 at 01:08 PM
Thanks Micah!

With the buffer circuit it's as good as a hardware scope, apart from the frequency limitation.
September 21, 2008 at 07:01 PM
Great, just what I needed, thank you very much

greetings for the site
Tom
September 17, 2008 at 11:21 AM
I've used this before succuessfully with other versions of linux but I can't get it to compile with Fedora 9. Is it possible to compile with an earlier version of gcc?

Thanks
July 26, 2008 at 10:45 PM
"Do you proofread your text"?

No, this is a blog. That should be enough of an explanation... but... I write this very, very quickly in what very little free time I have. I write this to share information, for free, to the community.

When writing books or articles or papers, yes, I proof read my work and write multiple drafts. When I write on my personal blog, sharing information in my free time, I do not proff red my work. I rely on my readers to put the mistakes into context and determine the meaning and appreciate the fact that I took time to share what I've learned.

That being said, I appreciate emails pointing out mistakes, and if/when I have time, I'll make the correction. But if it's not a technical error I don't give it much priority.
Al
July 26, 2008 at 06:51 PM
Do you proofread you text?
Do you proof read your text?
Do you proofread your text?

Apparently not
July 26, 2008 at 08:01 AM
Works! Thanks... I was looking for something like for a while now and... well... I just "stumbled" on it.

Jerry
friedlinx
July 15, 2008 at 08:11 PM
Do you proof read you text?

Leave a Comment about "Using Your PC Sound Card As an Oscilloscope in Linux"

Your Name:
(Required)
Website URL:
(Optional)
Comment:
(No HTML. Newlines and URLs okay.)
Enter CAPTCHA:
 
 
 
 
Share