Slashdot Mirror


Building a Cheap Oscilloscope Using Your PC?

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.

13 of 247 comments (clear)

  1. Re:RAdioshack? by Breakerofthings · · Score: 5, Informative

    Radio Shack "ProbeScope" ... about $100, plugs into your serial port, uses 9v battery for power ... comes with pretty decent software (16 bit win, but I have seen linux software that claims to support it).
    It also has a little lcd screen that will show you the waveform, and will act as a digital multimeter.

  2. Bitscope by bfoz · · Score: 4, Informative

    Try this

  3. Couple links by dimator · · Score: 5, Informative

    I was looking for something along these lines as well, a couple months ago. The software/sound-card solution is xoscope. I'm afraid I haven't had time to try that.

    Another cool site is 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!

    --
    python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
  4. Re:Need better inputs! by Colin · · 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 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.

  5. Some computer O-scopes type projects on the net... by cr0sh · · Score: 4, Informative

    http://www.ucl.ac.uk/~ucapwas/scope20m.html
    http: //www.ucl.ac.uk/~ucapwas/video.html
    http://www.do c.ic.ac.uk/~ih/doc/adc_dac/
    http://www.doc.ic.ac. uk/~ih/doc/adc_dac/deck/4chan 8bitadc.asc
    http://www.doc.ic.ac.uk/~ih/doc/adc_d ac/deck/8chan 12bitadc.asc
    http://www.doc.ic.ac.uk/~ih/doc/adc_ dac/adc11/
    http://www.doc.ic.ac.uk/~ih/doc/adc_da c/dcfg/
    http://www.epanorama.net/links/measuring. html#pcme asuring

    Have fun...

    --
    Reason is the Path to God - Anon
  6. Helpful Links... by jyak · · Score: 4, Informative

    http://www.epanorama.net/links/oscillator.html
    - Information on Oscillator circuits

    http://www.dansworkshop.com/Homebuilt%20oscillos co pe.shtml
    - Website about a homebuilt 'scope

    http://members.tripod.com/michaelgellis/scope.ht ml
    - 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.

  7. If you have to ask Slashdot you aren't qualified by Zero__Kelvin · · 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 ... perhaps the bitscope.com ones, or another one mentioned by others. I haven't looked seriously at any of these, so I cannot offer a valid opinion one way or the other.

    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!

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  8. Re:Radioshack? by terpia · · Score: 5, Informative

    You are correct. I have this and do use it on occassion. Its certainly not a tektronix, but its really great for tinkering. A real nice perk with this unit is that although it connects to a serial port, near the connector it transfers the signal optically, so you dont have any ground loop problems to worry about, nor do you have to worry about nuking your mobo - which lets you poke around freely without worrying (except about the board you are poking around on)...
    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.

    --
    .sig wanted: Must be concise, funny, and display my cleverness.
  9. Velleman's build-yourself-scope! by freaker_TuC · · Score: 3, Informative

    There is a very high quality oscilloscope box from Velleman. It has it's own box and probes with software package together in the box.

    They use the software package Scope-It as "digital storage oscilloscope and spectrum analyser". They also have a demo downloadable at that page.

    PCS641, PCS500 (PC-Scope 50MHz) and with adapter.

    --
    --- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
  10. Recommended test gear by KC7GR · · Score: 5, Informative

    If you're at all serious about building up your stash of test gear, the PC is just about the last place you want to look. Nothing it can ever do, even with add-in boards, will ever equal the quality of equipment that was made for the purpose you're trying to accomplish.

    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.

    --

    Bruce Lane, KC7GR,

    Blue Feather Technologies

  11. Re:Try National Instruments' LabVIEW by Milican · · Score: 3, Informative

    I too have used National Instrument's LabVIEW and I recommend it as well. Compared to the $5k benchtop oscopes this is inexpensive, and you'll get great results. You can get away with somewhere under $1k maybe even around $500 for a good DAQ card and some software. Their software is awesome and easy to use. LabVIEW contains a graphical programming language that makes working with complex stuff as easy as drag and drop. Serial, TCP/IP, almost anthing is simple as pie. Hell, I believe they even include a sample oscope app somewhere (either online or with LabVIEW software). If you can get the educational price you are in for some cost savings as well. Definitely the way to go for precise measurements. They have products you can plug into your PCI slot that run the gamut from low end more affordable systems to the high end. I used their stuff in school alot and I love it.

    JOhn

  12. Re:Latency is a problem by Technician · · Score: 4, Informative

    I second the suggestion of using a scope card. Many times you can run into an unexpected voltage that will quickly fry an input not designed for it. A good example is a simple 2 line LCD display module with an EL backlight has more than 90 volts. Probing the wrong spot while checking a logic signal quickly spells any any savings just became more expense. Having captured wave forms is very useful in many fields. Just like deciding on what computer you need, you need to evaluate your requirements. You may not like the price, but not meeting your requirements is a waste of time and money. My requirements lead to the purchase of a "real" scope. It is protected up to 1000 volts at any setting and has memory. It can directly print to an HP laser printer, or export screenshots directly to a PC. The screen shots include all the important stuff like voltage scales, time scales, curser measurements, etc. Not to do a plug, but I am using a Tektronix TDS 200 series scope I have had for several years.

    --
    The truth shall set you free!
  13. I Just Went Through This! My Solution Below: by MBCook · · Score: 5, Informative
    I just went throught this same problem. I looked on the internet but cound't find much of anything. The only solutions that I found were the soundcard based one you mentioned, and ones that hooked to the parallel port. There are some out there but I highly recomend that you do what I did.

    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.

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.