#413

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 520

  • @Chiavaloni
    @Chiavaloni 2 года назад +146

    I use to work with sound cards as spectrum analyzer, since about 13 or 15 yrs ago, analysing engine knock sensor signals, while I tune the ignition advance time. Because the frequency of engine knock depends only on the piston bore diameter, and it's perfectly human audible, sound cards are perfect to use. And I can measure two channels at same time: engine phase and the knock sensor. So I can detect what's the real knock, in what cylinder(s) from some other noises like a bad adjusted valves, huge piston clearances and other engine noises. The other way is to use a simple audio amp and listen the signal generated by the sensor. It's obvious the hard way. Very hard.

    • @ebenwaterman5858
      @ebenwaterman5858 2 года назад +11

      Yeah, about that same time I was tape recording my chainsaw and playing it back to Windows 98 through Sound Recorder, then analyzing and displaying using Quick Basic. Looked just like a scope with 2 cursors for analysis. Very revealing I tell you. Also recorded firecrackers. It's not what you'd expect. :)

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +16

      These are very good examples of how this technology can be used. Thank you for mentioning them!

    • @davey2k12
      @davey2k12 2 года назад +3

      Interesting mmm

    • @antoninperbosc1532
      @antoninperbosc1532 2 года назад +5

      @Chiavaloni Now you win the right to made us a video to show us this interesting howto !!! 😁

    • @Chiavaloni
      @Chiavaloni 2 года назад +3

      @@antoninperbosc1532 wow... I used to do this more then a decade ago. :P To do something like this now, and make a video, I will need a car/engine with a programmable engine management system (Programmable ECU) with a properly knock sensor, perhaps a good audio pre-amp, an adaptor cable (from the knock sensor to the mic/pre-amp input) and of course, the notebook with a sound card. And a car/engine dynamometer... If you are curious about the engine noises, I found a video from HPA ( ruclips.net/video/66okwgg6Rrw/видео.html ). I didn't found any kind of video with the same things that I used to do. Sorry. :(

  • @IoTT
    @IoTT 2 года назад +89

    Nice video and brings up some memories of the past. Back in 1997 I used a PC sound card to decode the DCC track signal of my model railroad and display the commands that are coming along the track in real time. The DCC signal is a pulse width modulated square wave with a maximum bit rate of about 16kbps, so it was quite easy to decode with 44.kHz sampling. As interface I used a resistor in each wire to the track and two antiparallel diodes to limit the input voltage on the microphone input. Software was written in Borland Pascal for Windows, running on a 486 with Windows 3.1. Tempi passati ;-)

    • @sookmaideek
      @sookmaideek 2 года назад

      turbo pascal

    • @thorbjrnhellehaven5766
      @thorbjrnhellehaven5766 2 года назад +3

      @@sookmaideek not necessarily. Borland Turbo Pascal and Borland Pascal are different, where Borland Pascal was more high end, and contained more libraries out of the box.

    • @sookmaideek
      @sookmaideek 2 года назад +1

      @@thorbjrnhellehaven5766 turbo better because faster and turbo

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +6

      You were very early using this technology! And you stayed with the model railroads. Now with much more sophisticated gear, of course ;-)

    • @bgable7707
      @bgable7707 2 года назад

      Borland Pascal for Window, yes those were the days, ... ~1984

  • @ChrisDreher
    @ChrisDreher 2 года назад +8

    Nicely done! I figured that this was possible back in the late 1990's but never found the time to explore using a sound card as an oscilloscope. It's great that other folks had the same idea but actually put in the time to bring it to reality.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Indeed, soundcards are high performance devices which are also used by software defined radios, for example. Just different software...

  • @Iosens
    @Iosens 2 года назад +3

    Thank you Andreas. And thank you for not following the "Make a stupid shocked face thumbnail" trend on You tube!

  • @uwezimmermann5427
    @uwezimmermann5427 2 года назад +35

    the "loss" of your low-pass filter only comes from the limited low input impedance of your sound card. You can easily check it by using a filter with 1 kΩ and 160 nF. A passive RC-filter is lossless in the passband if driving a high-impedance input.

    • @REVOLUTIONS51
      @REVOLUTIONS51 2 года назад +6

      That or a opamp buffer as medium between the sound card and the RC filter

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +4

      I agree with both statements.

    • @antoninperbosc1532
      @antoninperbosc1532 2 года назад

      so puting an AOP in follower with hight impedance to "isolate" the DUT could avoid distorsion ?

    • @uwezimmermann5427
      @uwezimmermann5427 2 года назад +3

      @@antoninperbosc1532 distortion is not related to the dampening of the signal. The RC filter is linear for a sine wave of constant frequency, even if it is connected to a low impedance input and does not cause distortion. Distortion is generally caused by non-linearities in an amplifier. Other problems are caused by the frequency dependence of the phase shift if one considers a mix of incoming frequencies like voice or music.

  • @jthrush
    @jthrush 2 года назад +15

    It is pretty easy to bypass the capacitor near the input or output jack on the soundcard to be able to input/output DC signals as well. I've done this both for using audio input as an oscilloscope, and for using the output as a signal generator for a laser galvanometer and it worked great for both.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +4

      Good to know. Thank you for the tip!

    • @iforth64
      @iforth64 2 года назад +2

      The 'no-DC' issue I did not anticipate. Is there a technical reason why the soundcard is AC-coupled (e.g. related to it having a 18-20 bit ADC)?

    • @absalomdraconis
      @absalomdraconis 2 года назад +2

      @@iforth64 : AC coupling for soundcards (and a fair variety of other things) is the norm, because it reduces the chances both of ground loops, and of safety hazards.

    • @baogiangsongque5507
      @baogiangsongque5507 2 года назад +2

      @@iforth64 DC means V+ and Vzero with V+ will push the speaker forward then Vzero will return the speaker back to natural state. Then AC means V- will pull the speaker backward deeper and quicker to compare Vzero.

    • @pietpaaltjes7419
      @pietpaaltjes7419 2 года назад +3

      @@iforth64 In an amplifier you do not want to amplifie DC offsets since at high levels they will push the amplified signals to one of the powerrails. If that happens the peaks of the signals are cut off which causes extreme high distortion. You can not control if the applied input signal has a DC offset. But with a capacitor in series of the input you can block any DC offset preventing this problem.

  • @priyabratasadhukhan6435
    @priyabratasadhukhan6435 2 года назад +15

    I use a similar software (soundcard oscilloscope), its very easy and gives real oscilloscope like interface. I also use two silicon diodes (one forward, one reverse biased) in parallel to the potentiometer on the input signal and ground wire to bypass any AC voltage greater than 700 mV. It saves the soundcard from any accidental over voltage when the potentiometer is not correctly set.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +4

      Good idea with the diodes. And I placed a link to the Soundcard Oscilloscope SW. Thank you!

    • @gd2329j
      @gd2329j 2 года назад

      Did the same .
      But added a 2 pole 6 way switch.
      It has a though , 50 R , 8 R , 600 R dummy load , a diode for AM demod , rf signal tracing & rectified output for a DVM .
      Signal tracing can be via the pc speakers if necessary & the microphone boost can up the gain .
      That's af or rf demodulated signal tracing .
      ( Noise can be reduced by subtracting the unused channel #2 from #1 ) .
      I almost fitted a calibrated RF wave absorption & notch filter .
      But the box wasn't big enough 🤦‍♂️
      Note this is not isolated so not for high voltage or tube work !

  • @thorntontarr2894
    @thorntontarr2894 2 года назад +4

    A deep dive into existing 'stuff' right under my nose; presented fully as always. Amazing what free software is 'out there' as you show. A very helpful video. I, of course, have a wonderful oscilloscope but didn't even think I had one in my PC. Very enlightening.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +2

      Glad you liked the content. Not a replacement for your oscilloscope, but maybe an estension...

  • @gd2329j
    @gd2329j 2 года назад +4

    I just remembered this one !
    If the software has a audio analyser but you can't inject a sweeping signal .
    Try a simple wight noise generator injected into the amp .
    You will see the passband response on the analyser .
    It has limited uses with RF also , tune for maximum noise or work from a good audio stage into the radio / unit / DUT .
    Like passing a 100 khz square wave ( & overtones ) through a radio receiver .
    Old tricks we used when all we had was time , a box of scrap , war surplus & brass screws !

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Using white noise as an input is a great possibility. Particularly with the new broadband SDR receivers. You immediately get the full frequency response.

  • @ThalassTKynn
    @ThalassTKynn 2 года назад +1

    I actually did this years ago with my little netbook when I was putting a new stereo in my mum's car. I don't remember the programs I used but it was very handy to identify which wires went to which speakers.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Cool idea to use it for such a project!

  • @reinholdu9909
    @reinholdu9909 2 года назад +5

    Nice one Andreas. If you learn something (which we may already know) it's (still) _your great way of presentation_ that makes it fun ... *Love That* 😘👍

  • @martin_mue
    @martin_mue 2 года назад +2

    My lab cat is very fascinated by todays presentation because of all those moving cursors :-)

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I can imagine that this is interesting for a cat ;-)

  • @robertcruz7898
    @robertcruz7898 2 года назад +34

    Yet another useful AND interesting video. Once again, you've saved me a week of research :-) Thank You!

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +6

      Glad you liked the video!

    • @Texas1FlyBoy
      @Texas1FlyBoy 2 года назад +3

      @@AndreasSpiess Same here. I might not use this info today. But now I know where to look when I *do* need the info. I do need to do some audio experimenting later. Thank you.

  • @tonysfun
    @tonysfun 2 года назад +2

    Well done again Andreas! I was using something similar few years ago and not just on PC, but also using a tablet! It was working well, for what it is and mainly I had fun with it and so did my friends, for whom I made the cables for. Also old phones can be used to play with this kind of stuff, since the phone is old and not in use! I'm a Tracfone user so every year I get a new phone and my wife also, so at least 2 phones per year are dedicated for all kinds of projects, including Mooshimeter, Pokit Meter and few of my regular meters that have Bluetooth built in for remote measuring. Thank you again Andreas!

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      You are right, Smartphones contain a lot of good technology and can be used also when they are old.

  • @PhG1961
    @PhG1961 2 года назад +3

    Excellent video and a very good introduction to sound cards and their benefits to signal processing. It's also a trip down memory lane... Many years ago (Pentium 3 and 4 era) I used a sound card to decode/encode tone signals in combination with radio equipment (CTCSS, SelCall tone sets like EEA, ZVEI I etc...). What a wonderfull time...

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      We still use the sound cards to decode signals in amateur radio. This is a cheap and high-quality procedure.
      I did not know that this trend started already long-time ago.

    • @PhG1961
      @PhG1961 2 года назад

      @@AndreasSpiess The encode/decode with soundcard project was my thesis project. I started with radio communication for my job in the early 90-ties. In that era our relay stations were connected with M1020 orM1040. I started a project (which got cancelled...) to interface radio's with ethernet, today known as RIPS (Radio over IP Streaming) to get rid of the expensive leased lines. A little later... the era of Tetra pushed back all the older equipment and projects to maintain/improve the analog network. I miss this older period somehow... I guess it's a little nostalgia.

  • @64-bit63
    @64-bit63 2 года назад +1

    This week ive learned about how SDR works with your dual channel sound card thanks for this video!

  • @Camorra1989
    @Camorra1989 2 года назад +3

    you’re channel is a hidden gem 💎👍

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I would hope it becomes a little less "Hidden" ;-)
      Thank you!

  • @CircsC
    @CircsC 2 года назад +1

    White gloves and the tophat always make your videos feel special. It's like you're about to show us diamonds and artifacts. So classy!
    Also thank you for this. I've needed a way to analyze signals without a scope.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Never looked at it this way. The hat and the gloves just happened...

  • @sdjhgfkshfswdfhskljh3360
    @sdjhgfkshfswdfhskljh3360 2 года назад +4

    Easiest thing to experiment with - is to connect transparent diode to line input.
    Now you will be able to receive IR signals from remote controls.
    If you write corresponding software of course :)

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Good idea. Most IR remote signals are around 38kHz. So you probably have to use a high sampling rate, I think.

    • @sdjhgfkshfswdfhskljh3360
      @sdjhgfkshfswdfhskljh3360 2 года назад +1

      @@AndreasSpiess it is possible with low sample rate too.

  • @transkryption
    @transkryption Год назад

    genius. I had been thinking about this a while back... You've gone well beyond mere thought!
    awesome

  • @64-bit63
    @64-bit63 2 года назад +4

    I love how the sweep test just randomly interferes with the talking 😂

  • @georgeterbush2976
    @georgeterbush2976 2 года назад

    Love that little hand pointing thing! Great job with the video.

  • @hasantariq5470
    @hasantariq5470 2 года назад

    Andreas: Man you are our Gem.
    Merci Veilmals fur das Lecture.

  • @nickk6109
    @nickk6109 2 года назад +3

    There's alot you can do with a PC but it is not realtime due to latencies in the operating system and USB protocol. This doesn't stop you from doing non-realtime (record and analyse) however for an oscilloscope realtime is needed for trigging. Only reason you may not want to use a PC is isolation - tube amps with hundreds of volts and PC are not a good combination without specialist hardware. A differential probe helps and could be used with a sound card - isolating and being safe.
    The only down side to a PC sound card is the lack of control over the processing - some operating systems perform conversion, and apply human ear perception equalisation etc. MacOS used to be a pain for that, the later operating system allows the developer better options to prevent this.
    I wrote a Bode plot AWG for my 1104x-e and currently writing a high resolution spectrum analyser (1Mpt and 1MSPS). You may want to use flattop filtering on the FFT as this provides the best measurement value.

    • @Hauketal
      @Hauketal 2 года назад

      Triggering does not need realtime. Just write the data into a ring buffer and evaluate any trigger condition at your time. This also enables pre-trigger, where you see some data leading to the trigger event.

    • @sdjhgfkshfswdfhskljh3360
      @sdjhgfkshfswdfhskljh3360 2 года назад

      What realtime is fast enough for you?
      It is easy to get ~100ms latency. ~10ms is harder, but possible too. ~1ms looks like maximum of what PC + sound card can achieve.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      @
      Nick K: I agree on the limitations you mention. Particularly I would not use it with tube amplifiers ;-) Fortunately, they are rare these days.

    • @hyoenmadan
      @hyoenmadan 2 года назад +1

      That's why you don't use WaveRT/DirectSound Drivers on Windows, or CoreAudio on MacOS. You have to use audio drivers which bypass any OS/Driver processing, putting the audio codec in a sort of "promiscuous mode". I don't know how that can be done in MacOS, but in Windows you use ASIO drivers for that. ASIO4ALL project provides a free of charge ASIO driver which works with the common Realtek codecs which don't provide ASIO by default.

  • @claudiomoles
    @claudiomoles 2 года назад +1

    Very GOOD, I am an audio projects addicted, I built my own Stereos and pre-amps. I will try this tool. Thanks

  • @RatthaninWartcheeranon
    @RatthaninWartcheeranon 2 года назад

    15 yrs ago I used an old desktop sound card as an oscilloscope as well. To reverse engineer 1 wire 300 bps car head unit internal communication protocol between each module and it works very well.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      So you were happy that the levels changed a lot and the signal behaved like AC... Today I suggest to use a cheap logic analyzer for digital signals.

  • @FedericoPfefferkorn
    @FedericoPfefferkorn 2 года назад

    Very good explanation...he gave a professional class...thanks and greetings from Paraguay

  • @MarcelHuguenin
    @MarcelHuguenin 2 года назад

    Awesome video Andreas! And thanks for the tip to the kickstarter project you showed as well!

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      I thought the kickstarter was a good fit because it reduced the complexity...

  • @McTroyd
    @McTroyd 2 года назад +2

    I've used REW and a Dayton Audio UMM-6 USB calibration microphone to set up a couple church sound systems. That software is crazy powerful -- I've seen commercial solutions that aren't as comprehensive. Anyone interested in playing with sound systems, especially measuring speaker response, would do well with this combination. 👍️

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +2

      Thank you for sharing your experience. So you understand much more about all the measurements possible with REW...

    • @McTroyd
      @McTroyd 2 года назад +1

      @@AndreasSpiess Goodness... if it falls under the Acoustic domain, it's probably measurable. I won't claim to know everything it's capable of, though. 😁

  • @Starter61
    @Starter61 2 года назад

    Very interesting and honest (about the limitations) video.

  • @aimeiz1
    @aimeiz1 2 года назад

    Very interesting video. I was using number of "PC scope" like programs, but about REW and Artalabs didn't know. Thank You Andreas.

  • @AJB2K3
    @AJB2K3 2 года назад

    Its amazing how a Simple RC circuit is still usable.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      It is physics which probably will not change soon ;-)

  • @MaxoticsTV
    @MaxoticsTV Год назад

    After watching every video of yours I learn something, and often a surprise--a bonus! ;)

  • @alfblack2
    @alfblack2 2 года назад

    OMG. I never though this would be possible. THis is awsome!

  • @erwinrommel09
    @erwinrommel09 2 года назад

    I could not understand anything. But one thing I can say you all are very very intelligent and gifted people

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Thank you for watching, even if the content was not very understandable!

  • @rodstartube
    @rodstartube 2 года назад

    I was waiting for this video for so many years.....

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      So it is good it appeared now ;-) Glad I matched your wishes.

  • @JLCPCB
    @JLCPCB 2 года назад +1

    Very interesting and useful video Andreas! 😄

  • @kjyhh
    @kjyhh 2 года назад +1

    Super cool! Very interesting in this topic. I've search for these setups years early, however, I did not able to fully setup a set of software and hardware in my computer. Thank you for sharing this!

  • @robkemna
    @robkemna 2 года назад +1

    Great Stuff ! Never have thought that you can use a soundcard for this, also not aware for the free software programs for this, thanks !

  • @Imrebiacsics
    @Imrebiacsics 2 года назад

    Dear Andreas, you are one of my favorites.
    You drove my cats crazy with the sweep sample🤬. Still love your channel... and the accent bdw.

  • @lambda7652
    @lambda7652 2 года назад +4

    If you build the "Artabox" for REW you can use it as very accurate LCR Meter.

  • @jotapi4010
    @jotapi4010 2 года назад +2

    Wonderful! That's going to be great stuff for experiments with my 12 yo in the workshop 👍

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I hope she/he will like it. Good it is audio where kids probably can relate because they hear the sound.

  • @EricFontaineJazz
    @EricFontaineJazz 2 года назад +1

    @13:38 regarding disadvantage #4 that sound cards don't measure DC: For most soundcards that is true. However some soundcards (such as the MOTU 624) have DC-coupled analog outputs, meaning that those outputs can provide DC (and low frequency) output. Though I don't know if there are soundcards with DC-coupled inputs.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Thank you for the info. Another viewer also wrote that he removed/bridged the input capacitors on a "normal" Soundcard

    • @edinfific2576
      @edinfific2576 2 года назад

      @@AndreasSpiess I was going to suggest that. ADCs are mostly DC-sampling devices and most sound-cards should be able to sample DC by shorting the input caps, unless high-pass filtering was done in the feedback or the DSP.

  • @TradieTrev
    @TradieTrev 2 года назад

    I guess audio is analog! This is bring back memories of sound engineering when I was a kid

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Yes, audio is analog. But here most of the tasks are done in the digital domain...

  • @c4ashley
    @c4ashley 2 года назад +3

    Some time ago, before I got a scope, I considered using one of my audio interfaces as a scope. The 24-bit resolution on the converters are exquisite, but the sample rate leaves much to be desired. My scope is 1 GSa/s, whereas my interface maxes at 192 kHz. (But I can measure up to 10 channels! Or if I use multiple interfaces, 34 channels at 96 kHz.) I think I did actually try this at one point, but I seem to remember there was a huge DC offset, and I was worried I'd blown something. They all have input caps, but... still scary. Never again. (Fortunately, they're all good.)

    • @c4ashley
      @c4ashley 2 года назад +1

      After watching the video in full, I take back my "never again" comment. I can see how valuable it'll be in the audio domain. As long as I know I won't cause problems for myself. Idiot-check with the scope or DMM, then detailed measurements with REW. 😁

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +2

      Indeed they should not be compared 1:1. Both have advantages and disadvantages.

  • @edinfific2576
    @edinfific2576 2 года назад +1

    I have been using the free DAQARTA demo program which allows unlimited use of its oscilloscope and a few other functions, while its signal generator is limited to 30 times or 30 days use after which you need to purchase it or re-install the program for another 30 times/days of fully functioning demo, which includes its most important tool to me: an LCR/ESR meter which can measure as low as 1mΩ resistance, 1pF to at least 10,000uF and less than a uH resolution (I think as low as 1nH), though such low measurements are filled with noise, depending on the soundcard's S/N ratio.
    I use an Audiophile 2496 soundcard, so the noise is at least 10 times lower than on the standard cards.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I did not know that they could do such precise measurements!

    • @edinfific2576
      @edinfific2576 2 года назад

      @@AndreasSpiess Even with my 2496 sound card, actual usable resolution for inductivity is 1uH, with 0.1uH digit changing all the time and you sort of see which number is the most frequent. Below that, numbers are changing too much to be useful.
      All that is needed besides soundcard (and a cable) is a reference resistor and probes, and the ability to short out the reference resistor when calibrating the software.
      I plan to add an external output amplifier so that I can use a lower value REF resistor (improves S/N ratio) and a pre-amp at the probe (also to improve S/N ratio).
      One channel is used as an output, and 2 channels are used as an input - one takes signal before and the other after the REF resistor, comparing their phase shift and relative values to automatically give out results as capacitance or inductance, along with ESR and DF for caps and resistance and Q factor for inductors.

  • @rak3shpai
    @rak3shpai 2 года назад +1

    I have tinkered with sound cards as oscilloscopes. I'd suggest connecting diodes in parallel to the 3.5mm mic input to clip their voltages to 0.7V to protect the sound card in case of input over voltage.

    • @sdjhgfkshfswdfhskljh3360
      @sdjhgfkshfswdfhskljh3360 2 года назад

      My sound card (SB Live!) survives even signals with 4 diodes protection (twice your level).
      I suspect that it may be capable to use even higher voltages.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      It is well possible that some cards support higher levels. My Focusrite seems to support 25Vpp. But only at the lowest gain...

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Good idea.

  • @nikolaradakovic5050
    @nikolaradakovic5050 2 года назад

    Herr Spiess hatte immer geniale Ideen

  • @dougsteel7414
    @dougsteel7414 2 года назад

    Right! I've always wondered about this, I had (sadly gone) a 192khz 24-bit sound card with 8 channels. No, it couldn't compete with a 100Mhz oscilloscope, but measured signals seemingly with incredible fidelity with very low SNR, onboard filtering etc. Certainly usable to observe behaviour of most MCUs

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Indeed, we should not compare it with an oscilloscope. But the SNR is truly much, much better...

  • @pauldmeyerable
    @pauldmeyerable 2 года назад

    Also a VLF digitizer paired with SDR software for receiving and decoding VLF transmissions.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      You are right: Many SDR receivers use the soundcard. And all digital modes in HAM radio, too.

  • @qzorn4440
    @qzorn4440 2 года назад

    back around Windows-95 in some astronomy magazine. Someone taken a PC and a 8.5" LDA photo-sensor from a simple document scanner. Then relocating the sensor to point at the night sky and with a little sensor on/off timer was able to scan the stars and moon as the earth rotated giving a basic image for very little money. 🌠🌛 another neat project 🪐 thanks 🤩

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Interesting project! It is always interesting to repurpose consumer HW because it usually has an extremely good price-performance ratio

  • @spolz2231
    @spolz2231 Месяц назад

    Another excellent video. Thank you.

  • @test40323
    @test40323 2 года назад +1

    What an interesting idea! Just preparing to build a diy headphone amplifier, this could be very handy for testing and troubleshooting.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      For sure you can test its frequency response and its distortion.

  • @ionciubotaru
    @ionciubotaru 2 года назад

    great and useful video. It's a pleasure to learn new things every day. Your channel is the best for DIY electronics.

  • @Rubafix989
    @Rubafix989 2 года назад

    That is amazing, I'll check this later with my own hardware

  • @JayGee6996
    @JayGee6996 2 года назад +1

    I think Sdr radio has been using this for a while, it’s very clever

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      You are right, many SDR receivers use the soundcards for the I and Q signals.

  • @carloslugo4600
    @carloslugo4600 2 года назад +1

    Very interesty video, great work

  • @alexandern8671
    @alexandern8671 2 года назад +2

    Unfortunately very few modern computers and external sound cards have stereo line input, a mono mic is predominant, which makes it difficult to input signals. My oldish PC is good in this respect.
    Two other free softwares are
    Digilent Waveforms (front end for their instruments but includes a sound card option)
    Soundcard Oscilloscope by Christian Zeitnitz - a bit dated interface but does the job reliably

    • @lwilton
      @lwilton 2 года назад

      You should look at more expensive sound cards. I have a thing sitting beside me with stereo mic inputs, and 8 channels of balanced line inputs and 8 channels of balanced line outputs. Of course it cost me a few hundred bucks.

    • @alexandern8671
      @alexandern8671 2 года назад +1

      @@lwilton ... which totally defeats the point of the original video

    • @lwilton
      @lwilton 2 года назад

      ​@@alexandern8671 No it doesn't. The title of the video isn't "make a scope for free", it is "use your sound card as a scope".
      A $300 sound adapter is still a tenth the cost of a $3000 scope, which is about the minimum these days for a decent scope. And the scope won't have the gain dynamic range and noise floor of the sound card, nor is it likely to have FFT or spectrum analyzer capabilities, and may not have a way to record what it sees on the screen. And you can get that $300 sound card for maybe half that used on eBay. I've got both a scope and a cheap PC with a good sound adapter, and I use both. They have different strengths.

    • @alexandern8671
      @alexandern8671 2 года назад

      @@lwilton Agree with your point regarding the title of the video.
      However I do not think someone with a budget of $300 should invest in a sound card for the purpose of scoping some signals. Andreas has discussed the downsides - no DC, limited frequency range. If one has such a card already like you then of course it is nice to repurpose it though. I can think of some niche applications where the increased vertical resolution could make a big difference but they are hardly the mainstream. Can you please give some common use cases that would benefit from increased vertical resolution?

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      @AlexanderN: Thank you for the links to the software packages.

  • @haajee1
    @haajee1 2 года назад +1

    RIP headphone users @ 4:22. Even on the speaker on my laptop it was really loud.

  • @lwilton
    @lwilton 2 года назад +1

    If you get a professional sound device (as opposed to an Ali-Express "professional(tm)" sound thing) you should be able to handle up to about 24Vpp of both input and output levels without distortion. Obviously if you are working with unknown-level signals it would be a good idea to build a +-15V clipper for the input signals.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      That is interesting! After this comment I looked up the specs of my Focusrite and it has a max input of 22dBu which s 27Vp-p at minimum gain.

    • @lwilton
      @lwilton 2 года назад

      @@AndreasSpiess The Scarlett qualifies as a professional device. Basically if it has an XLR jack and 6mm TRS jacks, it is likely to be +20dBu or better. It should be able to output similar levels into 600 ohms. Pretty much all of these devices run the internal opamps from +-15V, so subtract about 6V from that to get the max direct input level or max output level.

  • @rdyer8764
    @rdyer8764 2 года назад

    One of my favorites of all your videos. I'm not a big radio guy, so those videos are of limited interest, though I usually watch them to observe your design and assembly techniques. This one I can put to immediate use. Already ordered a USB Sound Card. Great stuff. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Cool that you found something usable. I love wireless. This is probably why it appears quite often on the channel ;-)

  • @beest_
    @beest_ 6 месяцев назад

    A very interesting video. I learned new things today. Thanks 👍

  • @andylee6785
    @andylee6785 2 года назад

    I
    I've not checked all the comments but it it's important to to discuss the built-in hardware Nyquest fitters. The bandwidth of audio frequency oriented devices is much more limited as hinted at, but it is an unsumountable drawback if you want a more general purpose oscilloscope.

  • @64-bit63
    @64-bit63 2 года назад

    "#no #midroll #ad"
    Sir you are a #legend

  • @MacEvoyING
    @MacEvoyING 2 года назад +2

    Thanks for your video! I think this is a great idea!
    I just wanted to say, that maybe you can use an optocoupler between the signal and the sound card's input. This would protect the sound card in a better way than the potentiometer.

    • @sdjhgfkshfswdfhskljh3360
      @sdjhgfkshfswdfhskljh3360 2 года назад +3

      For high voltage digital signals it is good idea for sure.
      But I doubt that optocoupler will preserve shape of more precise signal.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +4

      Opto-isolators usually introduce a lot of non-linearities (as
      sdjhgfkshf mentioned). So this would disturb the signal. Maybe it would be better to use an external soundcard and a USB insulator.

    • @absalomdraconis
      @absalomdraconis 2 года назад +1

      @@AndreasSpiess : Yeah, I got an external USB soundcard for this very purpose (around $4, so cheap), though not a USB isolator.

  • @mundomoreno
    @mundomoreno 2 года назад

    Magnífico!!!! I never thought that could be done, thank you very much Andreas You are the best

  • @Reuben1024
    @Reuben1024 2 года назад

    Fantastic ! Will use this today; am building some ‘home brew’ filters for a (music instrument ) synthesiser so frequencies I’m interested in are all audio, yes can calculate it all but can’t beat empirical validation of your work.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Checking if it works is always rewarding...

  • @Dr_Mario2007
    @Dr_Mario2007 8 месяцев назад

    While audio card oscilloscope is handy, there's some caveats; the processors and / or ADCs, and DACs used by most sound cards tended to be slow so 48 kilohertzs bandwidth is usable at most, if that. However, it's cheaper to do it and get done quickly.
    And I strongly recommend that the line or microphone inputs be protected - the same way you would do when putting together a few more extra coaxial oscilloscope leads for the most expensive kit.

    • @AndreasSpiess
      @AndreasSpiess  8 месяцев назад

      Thank you for the additional info!

  • @transientaardvark6231
    @transientaardvark6231 2 года назад +1

    No one here seems to have mentioned USB isolators yet. Isolation on the USB side would seem a good general purpose approach that would be transferable between lots of use-cases where you want your precious PC connected to a bench of not-yet-proven project. A USB isolator must be a fairly tractable thing to implement, but I've done a load of searching on Amazon and not found anything that definitively performs this task. I'm sure they must exist and I'm just failing to find them. Thoughts ?

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      A good idea. I added a link in the description.

  • @tdtrecordsmusic
    @tdtrecordsmusic 2 года назад

    I've certainly tried stuff like this throughout the years... There are just times when u want a particular waveform or pattern of waveforms. However, I would highly HIGHLY recommend to not use any direct lines into the computer. Just get ANY gear which is external to your computer. Great for making amps & guitar pedals :) Also, make sure to get an audio amplifier for your output.
    Output chain looks like: PC>audio interface > amplifier
    Input chain looks like: custom opamp divider > audio interface > PC
    I feel like this is a second step in the path of learning EE. First step would be to get a signal generator + oscilloscope. Caz, how are u going to test ur custom opamp divider thingy if u don't have suitable equipment to begin with ?
    REW is awesome. An absolute staple in the kit...

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      It is certainly good to protect your PC. But for experimenting with audio signals I think this is a valid alternative. Not for an oscilloscope, of course...

    • @mikejones-vd3fg
      @mikejones-vd3fg 2 года назад

      So probing around a breadboard distortion pedal circuit with a 9v supply would be unsafe with a soundcard oscilliscope?

    • @tdtrecordsmusic
      @tdtrecordsmusic 2 года назад +2

      @@mikejones-vd3fg Just to be more clear with what I wrote caz it see it's kinda hard to read. I highly recommend against using any direct connections to your motherboard. I have fried 2 & a usb dock. What happens is that device fails. For example: I was using ardruino plugged directly into motherboard via usb = It took years but eventually I burnt something by accidentally crossing wires for the slightest of time :((. Just a touch. Oops. Now all the front panel usb's do not work. Looking at the motherboard >> power goes into the usb IC, but its dead. I got smart and started using usb docks. Resulting in another dead usb. But at least it's a dock & can be replaced. It's an accident waiting to happen. This is mainly caz computer devices are not designed to handle over-voltages. They're designed to stabilize voltages.
      Specifically about a soundcard, 9v is way above the "line in" rating of 1.5v. I don't know how that would turn out. Sounds like a bad plan. You would have to know how the front end is designed. i wouldn't be surprised if putting any DC into the soundcard for a period of time would mess things up. At least if u were to buy a usb soundcard, then that usb device would fry & not your computer motherboard. In general AD/DA's are pretty sensitive in my experience. I've seen many die from normal use, let alone outside recommended ranges.
      If you think about it > the PSU on a computer maintains the voltages precisely. They will dump large amounts of current just to keep voltages correct.
      I think my recommendation of using an audio interface is good. Many can handle +4 signal levels :) I've used a ton of these and never had a problem. I still think it's wise to design an op amp divider/buffer so it ranges your input correctly. Also an opamp has a known current output. It's a good thing to learn. . . Don't forget/overlook that you can set the opamp gain to at any level you wish. Then you can see all the small signals when the input is off, like the noise floor/crosstalk/signal bleed/etc ...
      Another thing to know is oscilloscope probes are amazing. If you compare alligator clips to Oscope probes, the noise pickup is night and day. Noise&signals will go right into the wires of alligator clips. Not with Oscope probe wires.
      Have fun, don't burn the mobo like I did ;p

  • @PIXELamPC
    @PIXELamPC 2 года назад +3

    a small warning before the sweeptest would have been nice

    • @64-bit63
      @64-bit63 2 года назад

      He even talks while the sweep test lmao

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Sorry for that!

  • @sdjhgfkshfswdfhskljh3360
    @sdjhgfkshfswdfhskljh3360 2 года назад

    I like adding small serial resistance (100 Ω) and two (or four) diodes as protection for overvoltage.
    It will be possible to put 10 V signal without damaging hardware with such setup.
    While low voltage signals will pass through almost not distorted.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      Good point. Thanks!

    • @MattReb090
      @MattReb090 2 года назад

      I was thinking the same! but what about measuring mains voltages? Even if you trim / clamp down with diodes couldn't a single line be somewhat referenced to your soundcard and cause damage?

    • @sdjhgfkshfswdfhskljh3360
      @sdjhgfkshfswdfhskljh3360 2 года назад +1

      @@MattReb090 I'm not experienced enough to work with mains voltages, so I can only guess. I think transformers may help - secondary voltages should be isolated and proportional to primary. Also it is worth trying to make capacitive coupling. Just putting long wire next to mains line - making antenna in other words.

  • @minus3dbintheteens60
    @minus3dbintheteens60 2 года назад

    I bought an Asus sound card recently for this purpose, in the manual it even shows you how to use ARTA to measure the specs of the mic input.
    My problem till now has been that all the sound cards I test inputs have been far from flat, some roll-off the bottom end, or top, or both. On some, response is all over the place. REW can calibrate a soundcard, it is great for removing a decibel here and there, but it can only do so much, you need somewhat decent hardware to begin with

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      As I showed it does not work for DC as well as above 1/2 the sampling rate. This cannot be changed.

  • @ercost60
    @ercost60 2 года назад

    Amazing! Great video, thank you for sharing this!

  • @GilgaFrank
    @GilgaFrank 2 года назад +16

    I'll stick with my scope for the measurements but having a programmable signal generatr could be extremely useful

    • @SmallSpoonBrigade
      @SmallSpoonBrigade 2 года назад +1

      I think the point is that if you don't need it for high precision and rarely, it's probably good enough. If you're doing anything that requires serious precision, you'd probably want to just buy a quality bit of kit.

    • @Hadriandidnothingwrong-z8c
      @Hadriandidnothingwrong-z8c 2 года назад +1

      get an analog electric analog computer. Best SG you will ever get.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +2

      @Frank: I agree it is not a replacement for an oscilloscope.

    • @controllers_knowledge
      @controllers_knowledge 2 года назад

      ruclips.net/video/SYBkL4Or2To/видео.html
      Go to this link... You will find more close waveform on pc as you use Arduino as DSO

  • @tommihommi1
    @tommihommi1 2 года назад +3

    you can receive DCF77 and other long wave time signals with a soundcard and a long wire

  • @JendaLinda
    @JendaLinda 2 года назад +2

    I was duing some experiments with audio signals and misusing a sound card. I was using just an ordinary integrated Realtek HD Audio. I've discovered that the sound chip is doing some funny stuff to the signal. Namely it seems it has some kind of autogain, which can't be controlled or turned off from the software. Also laptops usually have only a microphone input, which is more difficult to use for recording arbitrary audio signals. So it's a good idea to carefully test your equipment, if it's suitable for the task.

    • @cycnus
      @cycnus 2 года назад +1

      That's true, especially for laptops that have limited I/O and usually combine headphone and mic together. The easiest and less risky way is to use an external USB audio adapter with proper line in/out. Worse case you kill the adapter but keep you computer safe.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Using an external sound card is what I recommended, too. They are no more very expensive.
      But I agree, there is always a possibility that the signal is distorted by the PC.

  • @Scrogan
    @Scrogan 2 года назад +1

    For maybe 20 dollars you should be able to get an audio-quality stereo I2S ADC and DAC, feed them through fast optocouplers, and send that data to a USB MCU that can send it to your computer. Arguably there are some computers that will take digital audio signals like SPIDF and some ADC/DACs that can produce it such that you don’t even need the MCU. Then I’d have a 6+ resistor range switch followed by clipping diodes for the input, and a couple of different gain amplifier settings for the output. Maybe an input buffer amplifier running on some larger voltage rails, for input impedance purposes.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I agree that this can be done. But you forgot an important ingredient: The software which also would have to be written.

    • @Scrogan
      @Scrogan 2 года назад

      @@AndreasSpiess from what I hear the Arduino Pro Micro has a fair bit of code written for it out there, acting like a sound card is almost certainly one of those. If that bitrate isn’t fast enough then the same should apply to the STM32F103, though they’re a little tougher to get programmed.
      Another option is using an FT232 and SPI ADCs/DACs, not sure how much programming they need, but I’d guess it would be less than the STM32 and still give you full speed USB2.0.
      For USB3.0 purposes there’s the Cypress FX3, but from what I hear that’s a pain to program and it’s only really necessary for really high bitrates or SDR territory.

  • @ELEKHOB
    @ELEKHOB 2 года назад

    This need to try....thank alot for video

  • @thunderinvader9031
    @thunderinvader9031 2 года назад +1

    Life-changing tip

  • @rlibby404
    @rlibby404 2 года назад

    Excellent video, thanks

  • @rylangrant2321
    @rylangrant2321 2 года назад

    Hah! I did a soundcard oscilloscope project ~28 years ago when I was in college. Now I design IC test equipment for a living and I've always thought that a soundcard front end would be a fun project.

  • @jacksat2252
    @jacksat2252 2 года назад +2

    AUwww ,
    That sweep ,my right ear is bleeding now.😨😨
    Please warn headphone users .😂😂.

  • @richardshort4587
    @richardshort4587 2 года назад

    I’m so new that was as clear as mud 🤪thanks anyways. I guess at some point I’ll understand what you said.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Good you stick to these videos. My videos are made for advanced viewers or for beginners with ambitions to get better ;-)

  • @rafael3821
    @rafael3821 2 года назад

    Excelent , I've made one 20y ago, now I will try a better design based on your notes. Thank

  • @CoolDudeClem
    @CoolDudeClem 2 года назад

    I already have a pretty good scope, but I think I'll stick to physical circuits when it comes to signal generators. Having said that though, these programs do look usefull.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I stick to my instruments, too. But not for audio analysis. Here, this PC software is much easier to use...

  • @christianlehner8023
    @christianlehner8023 2 года назад

    Merci för die grundlage! Genau das muesich jetzt denn au mache.

  • @aziubin
    @aziubin 2 года назад +2

    Thanks for this video! I just look at diy pre-amplifier for electric guitar. With your recommendation I can verify frequency response of pre -amplifier, when it is ready. In the meanwhile, do you have experience with external usb oscilloscopes, is there a good one, not very expensive, possibly from aliexpress?

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      I only own the bench oscilloscope, so I am not a big help. Usually, you get what you pay for if you go with the better-known oscilloscope brands: The more you pay the better the specs.

  • @derrick_builds
    @derrick_builds 2 года назад

    Nice work. Keep making great videos.

  • @ke4est
    @ke4est 2 года назад

    Excellent Video!!

  • @iboysven
    @iboysven 2 года назад +1

    The sine sweep was painful with in-ear headphones! Please make sure to tune the noiselevels better

  • @stevenknudsen1446
    @stevenknudsen1446 2 года назад

    Digilent’s Waveforms software is free and has a mode that connects to the PC sound card.

  • @paulopecegueiro1694
    @paulopecegueiro1694 2 года назад +1

    You can also use your soundcard to measure the thiele-small parameters of a speaker.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Good to know (I had to google "thiele-small parameters" ;-)

    • @paulopecegueiro1694
      @paulopecegueiro1694 2 года назад

      @@AndreasSpiess Interesting, hope we can see you talking about it.

  • @youssefali2486
    @youssefali2486 2 года назад

    Great Video!

  • @64-bit63
    @64-bit63 2 года назад +1

    Software defined radios also work with a pc soundcard

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      You are right. And all digital modes in HAM radio

  • @g0fvt
    @g0fvt 2 года назад

    Many years ago a friend and I used to maintain a microwave radio scheme which used an analogue multiplexer We challenged ourselves to decode the baseband with just a laptop and no hardware (except a cable). Cooledit on a Windows 98 laptop did the job...

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Indeed, many current SDRs use soundcards for demodulation. And of course all digital modes. But you were very early! 73 de HB9BLA.

    • @g0fvt
      @g0fvt 2 года назад

      @@AndreasSpiess thank you for the reply, this was an analogue multiplexer (Granger DTL-7300) the individual voice channels are SSB with carriers at 4,8,12, 16kHz and extending further up, these are then modulated onto a sub carrier for transmission over a microwave FM link. Fascinating things to play with! 73

  • @Cliff_P
    @Cliff_P 2 года назад

    Interesting. There was a old project ELFRAD That was analysing earth signals down to wavelengths days long if I remember right (earthquake prediction, the moon even) This would probably be ideal for something like that exploring those signals.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад +1

      Maybe. But then you would have to bridge the input capacitor because it blocks DC and low frequencies.

    • @Cliff_P
      @Cliff_P 2 года назад

      @@AndreasSpiess right, forgot! There would be a filter cutoff on the input.

  • @UmbraAtrox_
    @UmbraAtrox_ 2 года назад

    Absolute genius.

  • @1kreature
    @1kreature 2 года назад

    Java driver is limited by your windows setup of soundcard output profile, it defaults to 44100ksps.
    Many proper soundcards support 192 ksps which is why 96 kHz works with the other driver.

    • @AndreasSpiess
      @AndreasSpiess  2 года назад

      I do not know where the limitation comes from. You are right, as I showed, the proprietary drive went up to 192k.

  • @deadlinkofficialartst5592
    @deadlinkofficialartst5592 Год назад

    so we're looking at harmonics distortion something that i know of when it comes to sound design and Electronics