logo elektroda
logo elektroda
X
logo elektroda

Amateur oscilloscope / USB generator (sound chip)

12834 18

TL;DR

  • An amateur oscilloscope and signal generator built around an external USB sound card, aiming for a cheap, easy-to-install measurement tool.
  • A Max232 creates a symmetrical supply for a TL082 dual op-amp: one half buffers the oscilloscope input, the other amplifies the generator to 10Vpp.
  • The oscilloscope offers one channel, 25Vpp max, >1M ohm input, x1/x5 dividers, and the generator outputs 0–10V across 20Hz–20kHz.
  • Calibration uses a 50Hz sine and a voltmeter, and comparison with a Hantek 6022 shows the setup producing usable oscillograms.
  • DC filtering in the sound card distorts rectangular, sine, and triangle waves, and the practical frequency range is lower than the nominal spec.
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • About Author
    Anonymous
    Anonymous  
    Anonymous wrote 0 posts with. Been with us since 1978 year.
  • ADVERTISEMENT
  • #2 16833637
    wesoly wymiatacz
    Level 10  
    Value for money just great. Congratulations on a very successful construction.
  • #3 16834590
    katakrowa
    Level 23  
    Cool cheap and looks effective. I had this Hantek so I suspect yours works better - maybe not this range, but still :-)

    However, I have a question, what is the use of an additional amplifier before entering the sound card?
    Could you please share the source code of your application - I saw that you were doing this in visual studio c ++?
  • #4 16834734
    meraks
    Level 1  
    I would like to say hello to everyone (first post).
    I have some doubts about the method of simplified calibration.
    The AC voltmeter shows the effective voltage.
    We calibrate the amplitude. It seems that only after taking into account the coefficient ?2
    we will get the correct calibration. Maybe I was wrong, so please explain.
    It is possible that the calibration procedure takes this fact into account.
    Best regards,
    SM
  • ADVERTISEMENT
  • #5 16835484
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #6 16836261
    Anonymous
    Level 1  
  • #7 16836334
    pawel-jwe
    Level 30  
    What about phase inversion of the signal through the sound card (MIC input)? I had this problem myself and it is quite common (supposedly it is a software issue - drivers, but I did not study this topic).
    In addition, in cheaper cards, the phase likes to break at the band boundaries, which additionally "spoils" the charts.
  • #8 16836404
    Anonymous
    Anonymous  
  • #9 16837538
    Anonymous
    Level 1  
  • #10 16842093
    Anonymous
    Anonymous  
  • ADVERTISEMENT
  • #11 16842151
    Freddy
    Level 43  
    Stop hanging the dogs on @goreckidiy :)

    According to the PWN dictionary: an oscilloscope is an instrument for the observation and measurement of electrical waveforms

    According to the wiki: Oscilloscope - an electronic device used to observe, imaging and study the dependence waveforms between two electrical quantities or other physical quantities represented in electrical form

    So no matter if the bandwidth is 20kHz or 10GHz - this is an oscilloscope
  • #12 16842635
    Anonymous
    Level 1  
  • #13 16843086
    Anonymous
    Anonymous  
  • #14 16843102
    Anonymous
    Level 1  
  • #15 16846315
    wesoly wymiatacz
    Level 10  
    Hey, not everyone can afford a device worth 1000+, and here it is cheap, simple and that it has disadvantages, as even super expensive gems will have them and that's it. After all, you can see a lot with the oscilloscope described above. And everyone can afford it.
  • #16 16856423
    kassans
    Level 32  
    Cool design! Can you describe how you removed the filters on your soundcard and where less were they?
  • #17 16857265
    Anonymous
    Anonymous  
  • #18 16857925
    kassans
    Level 32  
    I just have a stationary machine, I was thinking about a PCI sound card and they are more susceptible to modifications :)
  • #19 16858221
    Anonymous
    Anonymous  
📢 Listen (AI):

Topic summary

✨ The discussion revolves around an amateur oscilloscope and generator built using an external USB sound card, featuring a single channel oscilloscope with a maximum Vpp of 25V and a frequency range of 20kHz, and a generator capable of outputting 0-10V with frequencies from 20Hz to 20kHz. Users express appreciation for the low cost and simplicity of the device, while also raising concerns about its limitations, such as the lack of DC coupling and external triggering. Calibration methods and the impact of sound card specifications on performance are debated, with suggestions for using higher sampling rates (e.g., 192kHz) to improve accuracy. The conversation highlights the device's utility for hobbyists lacking access to professional equipment, despite its inherent inaccuracies and limitations compared to traditional oscilloscopes.
Generated by the language model.

FAQ

TL;DR: For ~PLN 20 you get a 1-channel USB sound-card oscilloscope/generator that outputs 10 Vpp and covers 20 Hz–20 kHz; “Value for money just great” [Elektroda, wesoly wymiatacz, post #16833637] — just use a 192 kHz sound card for clean 5-10 samples per cycle [Elektroda, Anonymous, post #16836261]

Why it matters: You can probe and inject audio-band signals with pocket change instead of buying a PLN 2 000 scope.

Quick Facts

• Parts cost: Approx. PLN 20 total [Elektroda, Anonymous, post #16833518] • Oscilloscope input ranges: 5 Vpp (×1) or 25 Vpp (×5) via jumper [Elektroda, Anonymous, post #16833518] • Generator output: 0–10 Vpp, 20 Hz–20 kHz, four waveforms [Elektroda, Anonymous, post #16833518] • Recommended sampling rate: 192 kHz (gives 9.6× more points than 44.1 kHz) [Elektroda, Anonymous, post #16836261] • Max232 inverter supplies ±9 V at ≤10 mA [Elektroda, Anonymous, post #16833518]

What measurements are realistic with this PLN 20 sound-card oscilloscope?

You can view audio-band waveforms, measure peak-to-peak voltages up to 25 Vpp, check power-supply ripple, and perform 16-bit FFT up to about 80 kHz when using 192 kHz sampling [Elektroda, Anonymous, post #16836261] High-frequency edges above 20 kHz will blur because the card’s anti-alias filter attenuates them. Expect ±10 % amplitude error after calibration.

Which sampling rate should I set and why?

Select the highest rate your card allows, ideally 192 kHz. At 44.1 kHz a 20 kHz signal is represented by only 2 samples, hiding shape details [Elektroda, Anonymous, post #16836261] At 192 kHz you get 9.6× more samples, so a 10 kHz tone appears with 19 points per cycle, meeting the 10-samples rule of thumb [Shannon, 1949].

How do I calibrate the scope without a commercial oscilloscope?

Use the built-in generator.
  1. Set Generator.exe: sine, 50 Hz, amplitude max, tweak board trimmer until an AC voltmeter reads 10 Vpp [Elektroda, Anonymous, post #16833518]
  2. Bridge generator output to scope input, select ×5 divider, open Miniscope.exe.
  3. Use the crosshair tool → Tools → Calibrate Sensitivity, enter “1” as factor, press Calculate, then Store [Elektroda, Anonymous, post #16833518]

Do I need to account for √2 between RMS and Vpp during calibration?

No. The described procedure already references peak-to-peak voltage directly; the 10 Vpp calibration factor divides by the ×5 hardware attenuator and by two half-cycles to give 1 V scale [Elektroda, meraks, post #16834734] RMS-to-peak conversion would only matter if you calibrated with Vrms instead of Vpp.

How can I remove the DC-blocking filter in my USB sound card?

Locate the input coupling capacitor followed by an RC high-pass network. Desolder the shunt capacitor to ground while leaving the series cap in place, then test. Some C-Media chips still enforce internal high-pass filtering, so full removal may be impossible [Elektroda, Anonymous, post #16857265] Use cards listed on the Miniscope site because their layouts are documented [Miniscope Mods].

Is phase inversion through the MIC input a problem?

Yes, many cheap sound cards invert one channel in software, shifting phase by 180 °. If you see an upside-down waveform, toggle the “Mic Boost/AGC” or channel-swap option in the driver, or simply click “Invert” in Miniscope’s channel menu [Elektroda, pawel-jwe, post #16836334]

What happens if I accidentally exceed 25 Vpp at the input?

Two 1N5819 diodes clamp surplus voltage but can conduct only ~1 A surge. Sustained over-voltage may overheat them, overdrive the TL082, and blow the sound-card ADC—a documented edge-case failure [Elektroda, Anonymous, post #16833518] Always verify with a multimeter before connecting.

Can I push bandwidth beyond 20 kHz?

Only if the sound card supports higher sampling and has a relaxed input filter. External USB cards set at 192 kHz often pass up to 80 kHz before –3 dB [Elektroda, Anonymous, post #16837538] On-board codecs usually hard-limit at 24 kHz, so hardware hacking offers little gain.

Is 8-bit resolution on a Hantek 6022 really worse than 16-bit sound-card data?

Amplitude resolution differs by 48 dB. A 16-bit card resolves 65 536 steps; an 8-bit Hantek only 256. Thus FFT noise floor improves by ≈ 48 dB on the sound card [Elektroda, Anonymous, post #16836261] However, the Hantek samples at 48 MSa/s, so it wins on bandwidth.

When should I buy a real oscilloscope instead?

If you troubleshoot digital buses, RF circuits, or need <5 % timing accuracy above 100 kHz, a dedicated scope is essential. Used 50 MHz analog models start around PLN 400, while entry-level 100 MHz DSOs cost PLN 1 400 [Polish Market Watch 2023]. "This DIY tool is for overview, not precision" [Elektroda, Anonymous, post #16843102]
Generated by the language model.
ADVERTISEMENT