Slashdot Log In
Building a Cheap Oscilloscope Using Your PC?
Posted by
Cliff
on Fri Dec 07, 2001 05:57 PM
from the but-where-would-you-plug-in-the-probes dept.
from the but-where-would-you-plug-in-the-probes dept.
JohnMadison asks: "As a engineering student, I have a lot of projects, but not much test equipment at home. I was wondering if anybody has advice on using my PC as an oscilloscope. I've downloaded a couple of shareware programs that use the sound card for input, but they weren't really useful. I am looking for a good way to make a cheap, yet decent scope. Any sugestions?" While something like this would be an interesting hack, I'm at a loss as to what you would use for probes. The submitter mentions using the sound card as an input, but would that be the best solution? If you were going to make a custom add-on to the PC to do this, what would it need? Does such an add-on already exist? Interestingly enough, this fits in well with an earlier article we did.
This discussion has been archived.
No new comments can be posted.
Building a Cheap Oscilloscope Using Your PC?
|
Log In/Create an Account
| Top
| 247 comments
(Spill at 50!) | Index Only
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
|
2
(1)
|
2

Re:RAdioshack? (Score:5, Informative)
It also has a little lcd screen that will show you the waveform, and will act as a digital multimeter.
Re:Radioshack? (Score:5, Informative)
It's really a nice quality geek toy, and it does have a small silly lcd display right on the unit so it does not always require a computer unless you want to look at something other than a semi accurate representation of the waveform.
Need better inputs! (Score:3, Interesting)
Looking at the game ports (two ADCs each) might be one option, and probably "safer". (Game boards are practically free).
Another might be look at the tape port. You have a true IBM-PC, don't you?
Re:Need better inputs! (Score:5, Informative)
Game ports don't actually have ADC's on them. The standard design is to discharge a capacitor, then charge it through the resitance of the joystick pot, and tim ehow long it takes to get to a specific voltage. This is related to the resistance. So, you can't use the game port for measuring voltages directly.
Picotech [picotech.com] have addons for PCs to convert into a datalogging scope. I've never used one - and note that they tend to connect via the Parallel port. You can't get a whole lot of data through that port, so a 100Mhz scope won't actually show on the screen in real time. This doesn't usually matter, but you do want to bear in mind the delay between the measurement being made, and it actually appearing on the PC monitor.
On the plus side, they normally have data processing facilities that you only find on top of the range digital scopes - things like "trigger before", and FFT's.
Re:Need better inputs! (Score:5, Insightful)
Game ports don't actually have ADC's on them. The standard design is to discharge a capacitor, then charge it through the resitance of the joystick pot, and time how long it takes to get to a specific voltage. This is related to the resistance. So, you can't use the game port for measuring voltages directly.
Erm, that's single-slope integration, that's an ADC! Many voltmeters for instance use a variation called dual-slope integration that charges a cap for a fixed time and then times the discharge back to zero. How else can a digital device measure voltage "directly"?
Latency is a problem (Score:5, Insightful)
The other problem is of course sound card inputs are AC, you really want DC coupling. And high impedance.
Bottom line: you're better off with a scope board from the back pages of one of the magazines.
Re:Latency is a problem (Score:4, Informative)
Bitscope (Score:4, Informative)
Parallel Port (Score:3, Interesting)
Worked pretty well. It even worked as a video in(though it didn't get much resolution).
This is a really fun project if that's what you're looking for - and it's good enough for simple electronics. You'll certainly be able to see simple wave shapes. That said, you'd have to do some work if you were
1. Were worried about accuracy
2. Needed fast sampling
3. Deal with large ranges of voltages. Mine dealt only in 0-5 volts.
-Dave
Ask Slashdot FAQ: 1. Ask Google First (Score:4, Funny)
found from
http://www.google.com/search?q=pc+Oscilloscope+
Couple links (Score:5, Informative)
Another cool site is bitscope.com [bitscope.com] where you can find a completely open-design for an oscope you can build yourself (or order from them, I think.) It includes all the schematics and such, and the finished unit slides into a bay in your PC, with two slots for probes. How cool is that!
Some computer O-scopes type projects on the net... (Score:4, Informative)
http
http://www.d
http://www.doc.ic.ac
http://www.doc.ic.ac.uk/~ih/doc/adc_
http://www.doc.ic.ac.uk/~ih/doc/adc
http://www.doc.ic.ac.uk/~ih/doc/adc_d
http://www.epanorama.net/links/measuring
Have fun...
Helpful Links... (Score:4, Informative)
- Information on Oscillator circuits
http://www.dansworkshop.com/Homebuilt%20oscillo
- Website about a homebuilt 'scope
http://members.tripod.com/michaelgellis/scope.h
- Scope diagrams and schematics
http://www.picotech.com/oscilloscope.html
- Company with PC based products
Hope this helps...
National Instruments has great instruments as PCI cards and you can make your own programs/software in Labview but this option is on the expensive side.
How cheap? (Score:4, Insightful)
O-Scope 'n the PC (Score:3, Insightful)
xoscope, BitScope (Score:3, Interesting)
xoscope - a software oscilloscope [sourceforge.net]
BitScope - hardware black-box oscilloscope that you control via a PC [bitscope.com]
Xoscope is Open Source, so hack away if you don't like something about it. The SourceForge page has links to a schematic you can build to use your soundcard as the ADC, though you are of course limited to about 20kHz signals (stereo input = dual trace though). Definitely a cheap way to go.
The BitScope is a really cool design that is open or free (as in beer and speech). You can download all the specs and build it yourself, or buy preassembled kits or BitScopes (cheaper than buying the individual parts yourself). It is a black box that you control via software on a PC, which is pretty cool.
And then, you can always snag a scope on EBay for a couple of hundred bucks. Loads of Tektronix scopes, etc. Wish I could afford a Fluke ScopeMeter myself.
-Roy
Get a real, used scope. (Score:5, Insightful)
You don't specify what frequencies you want to work with, but for any sort of digital work I wouldn't suggest that you use *anything* less than a 30 MHz bandwidth analog scope. With that, you'll see a lot of rounding on a 10MHz signal, but you'll be able to see something. Digital scopes are very nice, if they have a decent sample rate. To get the equivalent performance of a 30 MHz analog scope in a digital scope, the digital scope must have at least a 30MHz bandwidth and 100MHz sampling rate (or a good equivalent time setting).
Bandwidth is *very* important. Oscillations can and will happen, and if it is a high frequency parasitic oscillation, a low bandwidth scope will fool you into thinking there is nothing there. You will spend many, many hours trying to debug such a circuit, because your tools will lie.
If you look around (hamfests, ebay) you should be able to find a working old tektronix boat-anchor for between $100 and $200. I've seen plenty of kits available, but they all cost more and have less performance. Since you don't say that you want to build the scope as a learning experience, you want it as a tool. The scope should be your third piece of electronic test equipment, after a multitester and a logic probe. These tools are fundamental. Get something good, whose performance you can trust, that you won't need to debug.
Idea (Score:3, Interesting)
If you have to ask Slashdot you aren't qualified (Score:5, Informative)
This not meant to be rude, but rather a simple statement of fact. If you have to ask Slashdot you aren't qualified to do it. Analog electronics is Voodoo science, and in the end you will have no idea if the representation on the screen is accurate. Even if you compare certain captured signals to ones grabbed by a high end O'Scope, there will be no assurance that signals of different amplitude and frequency are properly represented.
As an Engineer who was also an Electronics Technician for many years I have seen improper understanding of the nature of Analog cause all kinds of misunderstandings. For example, using a long ground lead or improper input impedance can distort the signal so much that a perfect signal looks FUBARed, or a FUBARed signal looks good. Indeed, there is a kind of Heisenburg Uncertainty to it all. By this I mean that the act of measuring changes the results, of course. I have seen faulty circuits that only work when you are probing them!
Your best bet is to try saving up for one designed by qualified Engineers
Also, a sound card based O'Scope is only going to handle signals in the audio range, and if the card is any good it will do some pre-processing on the inpuit anyway, further distorting the input signal, so that's way out IMNSHO.
Finally, if you do decide to do this just for fun, spend the money to purchase real (quality) probes, and learn to write device drivers if you don't have this skill already. Expect to spend several years coming up with anything that is marginally decent (based on your level of knowledge at this time, as indicated by your post.) Also, be fully prepared to never succeed and ruin a motherboard or two along the way 8^}
Whatever approach you decide upon, Good Luck!
Re:If you have to ask Slashdot you aren't qualifie (Score:4, Insightful)
I might have plunged into a project like this when I was a kid and didn't know what I was getting into. I'd probably be a hell of a lot better analog designer if I had. But god, it's a big project. If you still want to go ahead, best of luck. If you actually get it working, you might as well go ahead and get the BSEE degree. Good analog designers are scarce and high-paid.
Some intermediate possibilities:
Scopes that use the PC as the display device, for instance this [ttp] from JDR Micro. It's a box with the signal conditioning and A/D circuits of a low-end digital scope, but connects to a PC parallel port for displaying the signals captured. The advantages of this, compared to a standalone scope, are that you save a few hundred dollars for the scope display and control panel, and you've got the full power of the PC for analysis of the datapoints captured.
Scope card in the PC: I'm not aware of any low-end cards now on the market. The problem with this arrangement is that the PC is full of high frequency radiated signals, so shielding a scope card from that is quite an accomplishment. It can be done, but not by amateurs, or even by non-specialized EE's like me. It does have considerable advantages, as mentioned above, plus it can DMA to the PC's memory and so be able to record for longer.
Use a Data Acquisition (DAQ) card as a scope. I've done that at audio frequencies, using National Instruments MIO cards. I'd be dubious about higher frequencies, because the signal reaching the A/D converter would be quite different from the signal you were probing. (I used Labview to program it. It lets you set up a simple system fast, and there are library functions to capture data to an array, and then display it on a scope-like window. But for the test programs I was doing, after a long learning curve, I decided that for any complex program, graphical programming is inherently less efficient than typing the code as text. Labwindows/CVI is better: you create the user interface windows by plopping icons into the window, which is nice, then type in code sort of like Visual Basic. CVI is very expensive, as compared to Visual Basic and C++ development systems which work pretty much the same, except you've got to put some work into interfacing to the card. If a nice pre-written interface to the DAQ cards is worth several thousand $, then get CVI... Labview is a little less expensive; whether it is appropriate depends on how far you need to go beyond the library functions.)
Finally, whatever you do, spend about $100 for good probes. The best scope is only as good as the probe that brings in the signal.
Velleman's build-yourself-scope! (Score:3, Informative)
They use the software package Scope-It [velleman.be] as "digital storage oscilloscope and spectrum analyser". They also have a demo downloadable at that page.
PCS641 [velleman.be], PCS500 [velleman.be] (PC-Scope 50MHz) and with adapter [velleman.be].
Recommended test gear (Score:5, Informative)
Others have pointed out that you should check out ham radio/electronic swap meets for a good used O-scope. This is an excellent idea. As far as that goes, I have some suggestions.
The Tektronix 7000 series, more notably the 7603, 7704, 7904, and 7104 are all some of the longest-lived and most durable instruments that Tek ever built. My personal unit is a 7904 (500 MHz basic bandwidth on the mainframe) with a whole raft of plug-ins. If I recall my specs correctly, the 7603 mainframe is rated at 100 MHz, the 7704 at 250, the 7904 at 500, and the 7104 at 1 GHz.
Keep in mind those are MAINFRAME bandwidths (top-end response for the mainframe IOW). You'll need appropriate plug-ins to take full advantage of that. Anyway, the 7000 series mainframes need a minimum of one time-base and one vertical amplifier plug-in to be useful. I would settle for nothing less than a 7A26 (200 MHz dual-trace) vertical module, and a 7B85 (time base) module. If you can, find a 7B92A for the time base and a 7904 or 7904A for the mainframe.
If you need REALLY high-frequency response on the vertical side, look for a 7A19 (single-trace, 50-ohm input, 1 GHz response). Bear in mind that you'll only get the full bandwidth from such in a 7104 mainframe (although you can use it in other mainframes at reduced bandwidth).
A word of caution on the 7104 mainframe, assuming you should choose it: Its CRT is more delicate than those of other Tek scopes, thanks to its extremely high writing speed, so be VERY careful to check it for screen burn.
If a portable 'scope is more to your liking, look around for a Tektronix 465, 475, 475A, or 485. Hard to go wrong with those, especially if you get one that has the DMM option.
Other sources for used Tek equipment include, of course, Ebay.
OTHER TEST GEAR: I suggest HP or Fluke for a multimeter. Fluke makes good stuff, especially older hardware, but HP's is easier to get calibrated. My own benchtop meter is an HP3456, backed up by a Fluke 8520.
POWER SUPPLIES: A good bench power supply is critical to any lab. HP, Kepco, and Lamda all make excellent units. Figure out what you're going to be working with and shop around.
As for more specialized stuff, I can't comment intelligently without knowing what specific sub-field you want to go into. There are different specialty instruments for RF, digital design, microwave, power supplies, etc.
Perhaps the best advice I can offer is ALWAYS get the best stuff that you can possibly afford. NEVER sell yourself short where your own test gear is concerned! Doing so -will- come back to haunt you later on.
I Just Went Through This! My Solution Below: (Score:5, Informative)
Because I couldn't find anything good that required a PC, I went out and just bought a used oscilloscope. I bought a used oscilloscope off of e-bay for ~$400 (you can find cheaper ones easily). What I did was I would search daily for oscilloscopes that worked, included probes (they are really expensive), and most importantly had a "buy now" option. I found one that a guy put up that the "buy now" was really low (considdering the scope would be over $1500 brand new). The other trick is to MISPELL things. If you search for oscilloscope, oscilliscope, osciliscope, etc... you'd be amazed what you can find. Because it's mispelled, most people don't see it and therefore don't bid on it. That way you can get things cheaper.
My last suggestion would be to go around to schools, electronic repair shops, etc. and ask if they have any old oscilloscopes you could buy cheap. If you explain your situation you'd be suprised how nice people can be.