#413

Поділитися
Вставка
  • Опубліковано 3 чер 2024
  • Oscilloscopes and signal generators are handy tools in our labs. Unfortunately, they are not cheap. What if you had such devices already and did not know?
    All newer PCs have loudspeakers and a microphone. So they can create sound as well as record it. And usually in decent quality. Like oscilloscopes and signal generators! We only need a connection and software to create the desired waveforms and visualize the measured voltages. Fortunately, such software is available. And the best: We can use it free of charge!
    I am a proud Patreon of @GreatScott!, @ElectroBOOM , @Electronoobs , @EEVblog , and others.
    Links:
    6.3mm jacks: s.click.aliexpress.com/e/_AMkazC
    3.5mm jacks: s.click.aliexpress.com/e/_A534ES
    26AWG shielded cable: s.click.aliexpress.com/e/_9xlU3c
    Screw terminals: s.click.aliexpress.com/e/_9yTvmW
    Prototype PCB: s.click.aliexpress.com/e/_Abfqzg
    Power Op-Amp: s.click.aliexpress.com/e/_ANmdtc
    Cheap sound card: s.click.aliexpress.com/e/_98MB8i or amzn.to/3q5nLKe or bit.ly/34naYue
    Reference microphone: amzn.to/3F7KFVL
    Focusrite Scarlett: amzn.to/3HPgsg2
    Powerstation Kickstarter: www.kickstarter.com/projects/...
    USB Insulator: s.click.aliexpress.com/e/_9iPaVm or amzn.to/33soAEI
    Good audio video (German): • #REW #TUTORIAL Teil 2 ...
    Good audio video (English): • Discrete audio amplifi...
    REW Software: www.roomeqwizard.com/
    Arta Software: artalabs.hr/
    Another software: www.sillanumsoft.org/
    Another software: www.zeitnitz.eu/scope_en
    Arta Box (German): www.artalabs.hr/AppNotes/AN1_...
    Arta Box (English): www.artalabs.hr/AppNotes/AN1-...
    How good is your oscilloscope: www.unitest.com/pdf/How-Good-i...
    The links above usually are affiliate links that support the channel (no additional cost for you).
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: / andreasspiess
    Discord: / discord
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission of your purchases to buy new stuff for the channel
    My Amazon.com shop: www.amazon.com/shop/andreassp...
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For Amazon.de: amzn.to/2r0ZCYI
    For Amazon UK: amzn.to/2mxBaJf
    For ebay.com: ebay.to/2DuYXBp
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to email me. This communication channel is reserved for my primary job
    As an Amazon Associate, I earn from qualifying purchases
    #no#midroll#ads
  • Наука та технологія

КОМЕНТАРІ • 514

  • @Chiavaloni
    @Chiavaloni 2 роки тому +138

    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 роки тому +10

      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 роки тому +14

      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 ( ua-cam.com/video/66okwgg6Rrw/v-deo.html ). I didn't found any kind of video with the same things that I used to do. Sorry. :(

  • @IoTT
    @IoTT 2 роки тому +87

    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

  • @uwezimmermann5427
    @uwezimmermann5427 2 роки тому +34

    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 роки тому +14

    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.

  • @ChrisDreher
    @ChrisDreher 2 роки тому +6

    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...

  • @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...

  • @64-bit63
    @64-bit63 2 роки тому +1

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

  • @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.

  • @priyabratasadhukhan6435
    @priyabratasadhukhan6435 2 роки тому +14

    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 !

  • @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* 😘👍

  • @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.

  • @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.

  • @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...

  • @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.

  • @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.

  • @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!

  • @georgeterbush2976
    @georgeterbush2976 2 роки тому

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

  • @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!

  • @transkryption
    @transkryption 11 місяців тому

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

  • @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...

  • @mundomoreno
    @mundomoreno 2 роки тому

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

  • @martin_mue
    @martin_mue 2 роки тому +1

    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 ;-)

  • @64-bit63
    @64-bit63 2 роки тому +4

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

  • @FedericoPfefferkorn
    @FedericoPfefferkorn Рік тому

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

  • @hasantariq5470
    @hasantariq5470 2 роки тому

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

  • @alfblack2
    @alfblack2 2 роки тому

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

  • @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!

  • @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.

  • @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

  • @ercost60
    @ercost60 2 роки тому

    Amazing! Great video, thank you for sharing this!

  • @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.

  • @Starter61
    @Starter61 2 роки тому

    Very interesting and honest (about the limitations) video.

  • @JLCPCB
    @JLCPCB 2 роки тому +1

    Very interesting and useful video Andreas! 😄

  • @MaxoticsTV
    @MaxoticsTV 8 місяців тому

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

    • @AndreasSpiess
      @AndreasSpiess  8 місяців тому +1

      Thank you for your kind words!

  • @beest_
    @beest_ Місяць тому

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

  • @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.

  • @nanasuryana7153
    @nanasuryana7153 2 роки тому

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

  • @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.

  • @Rubafix989
    @Rubafix989 2 роки тому

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

  • @derrick_builds
    @derrick_builds 2 роки тому

    Nice work. Keep making great videos.

  • @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 !

  • @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. 😁

  • @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 ;-)

  • @rlibby404
    @rlibby404 2 роки тому

    Excellent video, thanks

  • @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.

  • @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...

  • @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...

  • @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.

  • @carloslugo4600
    @carloslugo4600 2 роки тому +1

    Very interesty video, great work

  • @lambda7652
    @lambda7652 2 роки тому +4

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

  • @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.

  • @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.

  • @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.

  • @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.

  • @thunderinvader9031
    @thunderinvader9031 2 роки тому +1

    Life-changing tip

  • @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!

  • @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

  • @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.

  • @Bianchi77
    @Bianchi77 2 роки тому

    Nice video, thanks for sharing it :)

  • @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 ;-)

  • @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.

  • @ke4est
    @ke4est 2 роки тому

    Excellent Video!!

  • @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.

  • @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

  • @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.

  • @jaygee6447
    @jaygee6447 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.

  • @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.

  • @nikolaradakovic5050
    @nikolaradakovic5050 2 роки тому

    Herr Spiess hatte immer geniale Ideen

  • @charlieoscar09
    @charlieoscar09 2 роки тому

    Thanks another great video

  • @rafael3821
    @rafael3821 2 роки тому

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

  • @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...

  • @atharhashmi5762
    @atharhashmi5762 2 роки тому

    Good work

  • @64-bit63
    @64-bit63 2 роки тому

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

  • @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.

  • @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.

  • @UmbraAtrox_
    @UmbraAtrox_ 2 роки тому

    Absolute genius.

  • @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.

  • @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.

  • @ooloncolluphid9975
    @ooloncolluphid9975 2 роки тому

    very interesting video!

  • @christianlehner8023
    @christianlehner8023 2 роки тому

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

  • @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 ;-)

  • @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!

  • @melplishka5978
    @melplishka5978 2 роки тому

    Nice. Exactly what I need lol.

  • @jrioublanc
    @jrioublanc 2 роки тому

    Thanks

  • @Iosens
    @Iosens 2 роки тому

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

  • @Dr_Mario2007
    @Dr_Mario2007 3 місяці тому

    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  3 місяці тому

      Thank you for the additional info!

  • @1yyymmmddd
    @1yyymmmddd 2 роки тому

    Not sure I understood how to connect a device. Do you connect to the two pins of the microphone jack?

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому

      Just connect the signal to one pin and ground

  • @stephanc7192
    @stephanc7192 2 роки тому

    Great video

  • @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.

  • @user-ro1cc8tz6d
    @user-ro1cc8tz6d 2 роки тому

    this is amazing

  • @peterbulanyi1708
    @peterbulanyi1708 2 роки тому

    Really great video, like golden swiss cheese. Thanks for creating 😂

  • @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.

  • @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.

  • @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.

  • @kjyhh
    @kjyhh 2 роки тому

    Have Opto-isolator or Photoresistor(light as wave carrier) the response speed inorder to limit the input voltage?

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому

      That is not easy because these opto-isolators introduce a lot of non-linearity. Better to use an external soundcard and use an USB isolator.

  • @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.

  • @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.

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE 2 роки тому

    Thanks for another interesting video. It's a great shame that you can't go to RF frequencies and that some sort of pre-scaler would not be possible or accurate if made for higher frequencies. Keep up the good work and thanks for your videos.

    • @AndreasSpiess
      @AndreasSpiess  2 роки тому

      You can add mixers. But these are topics for my second channel...

  • @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...

  • @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.