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.
@ebenwaterman58582 жыл бұрын
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. :)
@AndreasSpiess2 жыл бұрын
These are very good examples of how this technology can be used. Thank you for mentioning them!
@davey2k122 жыл бұрын
Interesting mmm
@antoninperbosc15322 жыл бұрын
@Chiavaloni Now you win the right to made us a video to show us this interesting howto !!! 😁
@Chiavaloni2 жыл бұрын
@@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 ( kzbin.info/www/bejne/bGfSnKqdnJuFqNk ). I didn't found any kind of video with the same things that I used to do. Sorry. :(
@IoTT2 жыл бұрын
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 ;-)
@sookmaideek2 жыл бұрын
turbo pascal
@thorbjrnhellehaven57662 жыл бұрын
@@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.
@sookmaideek2 жыл бұрын
@@thorbjrnhellehaven5766 turbo better because faster and turbo
@AndreasSpiess2 жыл бұрын
You were very early using this technology! And you stayed with the model railroads. Now with much more sophisticated gear, of course ;-)
@bgable77072 жыл бұрын
Borland Pascal for Window, yes those were the days, ... ~1984
@ChrisDreher2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Indeed, soundcards are high performance devices which are also used by software defined radios, for example. Just different software...
@uwezimmermann54272 жыл бұрын
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.
@bellini98-12 жыл бұрын
That or a opamp buffer as medium between the sound card and the RC filter
@AndreasSpiess2 жыл бұрын
I agree with both statements.
@antoninperbosc15322 жыл бұрын
so puting an AOP in follower with hight impedance to "isolate" the DUT could avoid distorsion ?
@uwezimmermann54272 жыл бұрын
@@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.
@jthrush2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Good to know. Thank you for the tip!
@iforth642 жыл бұрын
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)?
@absalomdraconis2 жыл бұрын
@@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.
@baogiangsongque55072 жыл бұрын
@@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.
@pietpaaltjes74192 жыл бұрын
@@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.
@Iosens2 жыл бұрын
Thank you Andreas. And thank you for not following the "Make a stupid shocked face thumbnail" trend on You tube!
@AndreasSpiess2 жыл бұрын
You are welcome!
@priyabratasadhukhan64352 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Good idea with the diodes. And I placed a link to the Soundcard Oscilloscope SW. Thank you!
@gd2329j2 жыл бұрын
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 !
@dylanmcqueen465610 күн бұрын
Thanks for the contribution, I have a question: I have basic knowledge of electronics but I am actually a musician, as I have a 2-channel Apollo Twin interface like the focusrite, it also has 2 6.3mm inputs and a HI z input for guitars. I wanted to ask, would I also need the 20k potentiometer as a voltage divider for my Apollo Audio interface? Or is it just to protect the audio card that is built into the PC/Laptop? It would be good to use my Apollo as an external audio card to measure signals such as an oscilloscope, wave generator, etc. But I don't want to damage the inputs. Actually I want to calibrate my fostex R8 reel and it asks me to generate a 1Khz, -10dvu (0.3v)Signal waveform so I can adjust the input level. And measure with the millivoltmeter at the terminals of the 245mv channel for an optimal adjustment. Since I don't have the budget right now to buy an oscilloscope, tone generator, and my multimeter doesn't measure millivolts, so I'll get one I think that the voltages that I will handle are very low, so would that circuit with cables that has the 20k potentiometer be necessary? Or can I just use the inputs and outputs of my audio interface directly? Thanks and greetings from Germany By the way, the maximum entry level specifications of my Apollo say: +20.2 dbu which would be the same at 17.99Dvb = 7.93 Volts. Since the maximum output voltages of the Fostex are 0.3 V +/- 1DB then the voltages are very small. 🙂
@thorntontarr28942 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Glad you liked the content. Not a replacement for your oscilloscope, but maybe an estension...
@gd2329j2 жыл бұрын
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 !
@AndreasSpiess2 жыл бұрын
Using white noise as an input is a great possibility. Particularly with the new broadband SDR receivers. You immediately get the full frequency response.
@CircsC2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Never looked at it this way. The hat and the gloves just happened...
@tonysfun2 жыл бұрын
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!
@AndreasSpiess2 жыл бұрын
You are right, Smartphones contain a lot of good technology and can be used also when they are old.
@ThalassTKynn2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Cool idea to use it for such a project!
@PhG19612 жыл бұрын
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...
@AndreasSpiess2 жыл бұрын
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.
@PhG19612 жыл бұрын
@@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.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
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 :)
@AndreasSpiess2 жыл бұрын
Good idea. Most IR remote signals are around 38kHz. So you probably have to use a high sampling rate, I think.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
@@AndreasSpiess it is possible with low sample rate too.
@martin_mue2 жыл бұрын
My lab cat is very fascinated by todays presentation because of all those moving cursors :-)
@AndreasSpiess2 жыл бұрын
I can imagine that this is interesting for a cat ;-)
@reinholdu99092 жыл бұрын
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* 😘👍
@AndreasSpiess2 жыл бұрын
Thank you for your kind words!
@64-bit632 жыл бұрын
This week ive learned about how SDR works with your dual channel sound card thanks for this video!
@Camorra19892 жыл бұрын
you’re channel is a hidden gem 💎👍
@AndreasSpiess2 жыл бұрын
I would hope it becomes a little less "Hidden" ;-) Thank you!
@erwinrommel092 жыл бұрын
I could not understand anything. But one thing I can say you all are very very intelligent and gifted people
@AndreasSpiess2 жыл бұрын
Thank you for watching, even if the content was not very understandable!
@RatthaninWartcheeranon2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
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.
@claudiomoles2 жыл бұрын
Very GOOD, I am an audio projects addicted, I built my own Stereos and pre-amps. I will try this tool. Thanks
@AndreasSpiess2 жыл бұрын
You will love it, I am sure!
@nickk61092 жыл бұрын
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.
@Hauketal2 жыл бұрын
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.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
@ Nick K: I agree on the limitations you mention. Particularly I would not use it with tube amplifiers ;-) Fortunately, they are rare these days.
@hyoenmadan2 жыл бұрын
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.
@robertcruz78982 жыл бұрын
Yet another useful AND interesting video. Once again, you've saved me a week of research :-) Thank You!
@AndreasSpiess2 жыл бұрын
Glad you liked the video!
@Texas1FlyBoy2 жыл бұрын
@@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.
@MarcelHuguenin2 жыл бұрын
Awesome video Andreas! And thanks for the tip to the kickstarter project you showed as well!
@AndreasSpiess2 жыл бұрын
I thought the kickstarter was a good fit because it reduced the complexity...
@georgeterbush29762 жыл бұрын
Love that little hand pointing thing! Great job with the video.
@AndreasSpiess2 жыл бұрын
Glad you enjoyed it!
@64-bit632 жыл бұрын
I love how the sweep test just randomly interferes with the talking 😂
@AndreasSpiess2 жыл бұрын
That one was easy...
@robkemna2 жыл бұрын
Great Stuff ! Never have thought that you can use a soundcard for this, also not aware for the free software programs for this, thanks !
@AndreasSpiess2 жыл бұрын
You are welcome!
@McTroyd2 жыл бұрын
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. 👍️
@AndreasSpiess2 жыл бұрын
Thank you for sharing your experience. So you understand much more about all the measurements possible with REW...
@McTroyd2 жыл бұрын
@@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. 😁
@hasantariq54702 жыл бұрын
Andreas: Man you are our Gem. Merci Veilmals fur das Lecture.
@AndreasSpiess2 жыл бұрын
Gern geschehen!
@aimeiz12 жыл бұрын
Very interesting video. I was using number of "PC scope" like programs, but about REW and Artalabs didn't know. Thank You Andreas.
@AndreasSpiess2 жыл бұрын
You are welcome!
@TradieTrev2 жыл бұрын
I guess audio is analog! This is bring back memories of sound engineering when I was a kid
@AndreasSpiess2 жыл бұрын
Yes, audio is analog. But here most of the tasks are done in the digital domain...
@kjyhh2 жыл бұрын
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!
@AndreasSpiess2 жыл бұрын
Glad it was helpful!
@Imrebiacsics2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Sorry for that!
@transkryption Жыл бұрын
genius. I had been thinking about this a while back... You've gone well beyond mere thought! awesome
@AndreasSpiess Жыл бұрын
Glad you like the idea!
@lambda76522 жыл бұрын
If you build the "Artabox" for REW you can use it as very accurate LCR Meter.
@AndreasSpiess2 жыл бұрын
Good to know. Thanks!
@rak3shpai2 жыл бұрын
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.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
It is well possible that some cards support higher levels. My Focusrite seems to support 25Vpp. But only at the lowest gain...
@AndreasSpiess2 жыл бұрын
Good idea.
@AJB2K32 жыл бұрын
Its amazing how a Simple RC circuit is still usable.
@AndreasSpiess2 жыл бұрын
It is physics which probably will not change soon ;-)
@tdtrecordsmusic2 жыл бұрын
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...
@AndreasSpiess2 жыл бұрын
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-vd3fg2 жыл бұрын
So probing around a breadboard distortion pedal circuit with a 9v supply would be unsafe with a soundcard oscilliscope?
@tdtrecordsmusic2 жыл бұрын
@@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
@MacEvoyING2 жыл бұрын
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.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
For high voltage digital signals it is good idea for sure. But I doubt that optocoupler will preserve shape of more precise signal.
@AndreasSpiess2 жыл бұрын
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.
@absalomdraconis2 жыл бұрын
@@AndreasSpiess : Yeah, I got an external USB soundcard for this very purpose (around $4, so cheap), though not a USB isolator.
@dougsteel74142 жыл бұрын
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
@AndreasSpiess2 жыл бұрын
Indeed, we should not compare it with an oscilloscope. But the SNR is truly much, much better...
@c4ashley2 жыл бұрын
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.)
@c4ashley2 жыл бұрын
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. 😁
@AndreasSpiess2 жыл бұрын
Indeed they should not be compared 1:1. Both have advantages and disadvantages.
@JLCPCB2 жыл бұрын
Very interesting and useful video Andreas! 😄
@AndreasSpiess2 жыл бұрын
Thanks! 😃
@qzorn44402 жыл бұрын
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 🤩
@AndreasSpiess2 жыл бұрын
Interesting project! It is always interesting to repurpose consumer HW because it usually has an extremely good price-performance ratio
@test403232 жыл бұрын
What an interesting idea! Just preparing to build a diy headphone amplifier, this could be very handy for testing and troubleshooting.
@AndreasSpiess2 жыл бұрын
For sure you can test its frequency response and its distortion.
@jotapi40102 жыл бұрын
Wonderful! That's going to be great stuff for experiments with my 12 yo in the workshop 👍
@AndreasSpiess2 жыл бұрын
I hope she/he will like it. Good it is audio where kids probably can relate because they hear the sound.
@haajee12 жыл бұрын
RIP headphone users @ 4:22. Even on the speaker on my laptop it was really loud.
@AndreasSpiess2 жыл бұрын
Sorry for that!
@rylangrant23212 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Cool. You were very early!
@Starter612 жыл бұрын
Very interesting and honest (about the limitations) video.
@AndreasSpiess2 жыл бұрын
Glad you liked it!
@edinfific25762 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
I did not know that they could do such precise measurements!
@edinfific25762 жыл бұрын
@@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.
@rdyer87642 жыл бұрын
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!
@AndreasSpiess2 жыл бұрын
Cool that you found something usable. I love wireless. This is probably why it appears quite often on the channel ;-)
@PIXELamPC2 жыл бұрын
a small warning before the sweeptest would have been nice
@64-bit632 жыл бұрын
He even talks while the sweep test lmao
@AndreasSpiess2 жыл бұрын
Sorry for that!
@JayGee69962 жыл бұрын
I think Sdr radio has been using this for a while, it’s very clever
@AndreasSpiess2 жыл бұрын
You are right, many SDR receivers use the soundcards for the I and Q signals.
@MaxoticsTV Жыл бұрын
After watching every video of yours I learn something, and often a surprise--a bonus! ;)
@AndreasSpiess Жыл бұрын
Thank you for your kind words!
@lwilton2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
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.
@lwilton2 жыл бұрын
@@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.
@rodstartube2 жыл бұрын
I was waiting for this video for so many years.....
@AndreasSpiess2 жыл бұрын
So it is good it appeared now ;-) Glad I matched your wishes.
@alfblack22 жыл бұрын
OMG. I never though this would be possible. THis is awsome!
@AndreasSpiess2 жыл бұрын
Glad you liked it!
@FedericoPfefferkorn2 жыл бұрын
Very good explanation...he gave a professional class...thanks and greetings from Paraguay
@AndreasSpiess2 жыл бұрын
Glad you liked the video!
@andylee67852 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
I agree.
@Rubafix9892 жыл бұрын
That is amazing, I'll check this later with my own hardware
@AndreasSpiess2 жыл бұрын
Enjoy your experiments!
@Reuben10242 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Checking if it works is always rewarding...
@EricFontaineJazz2 жыл бұрын
@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.
@AndreasSpiess2 жыл бұрын
Thank you for the info. Another viewer also wrote that he removed/bridged the input capacitors on a "normal" Soundcard
@edinfific25762 жыл бұрын
@@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.
@64-bit632 жыл бұрын
"#no #midroll #ad" Sir you are a #legend
@Dr_Mario20078 ай бұрын
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.
@AndreasSpiess8 ай бұрын
Thank you for the additional info!
@Scrogan2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
I agree that this can be done. But you forgot an important ingredient: The software which also would have to be written.
@Scrogan2 жыл бұрын
@@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.
@ionciubotaru2 жыл бұрын
great and useful video. It's a pleasure to learn new things every day. Your channel is the best for DIY electronics.
@AndreasSpiess2 жыл бұрын
Glad you like the channel!
@pauldmeyerable2 жыл бұрын
Also a VLF digitizer paired with SDR software for receiving and decoding VLF transmissions.
@AndreasSpiess2 жыл бұрын
You are right: Many SDR receivers use the soundcard. And all digital modes in HAM radio, too.
@JendaLinda2 жыл бұрын
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.
@cycnus2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
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.
@dylanmcqueen465610 күн бұрын
🙂 By the way, the maximum entry level specifications of my Apollo say: +20.2 dbu which would be the same at 17.99Dvb = 7.93 Volts. Since the maximum output voltages of the Fostex are 0.3 V +/- 1DB then the voltages are very small.
@AndreasSpiess8 күн бұрын
Thank you for the additional info!
@CoolDudeClem2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
I stick to my instruments, too. But not for audio analysis. Here, this PC software is much easier to use...
@alexandern86712 жыл бұрын
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
@lwilton2 жыл бұрын
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.
@alexandern86712 жыл бұрын
@@lwilton ... which totally defeats the point of the original video
@lwilton2 жыл бұрын
@@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.
@alexandern86712 жыл бұрын
@@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?
@AndreasSpiess2 жыл бұрын
@AlexanderN: Thank you for the links to the software packages.
@sdjhgfkshfswdfhskljh33602 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Good point. Thanks!
@MattReb0902 жыл бұрын
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?
@sdjhgfkshfswdfhskljh33602 жыл бұрын
@@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.
@ercost602 жыл бұрын
Amazing! Great video, thank you for sharing this!
@AndreasSpiess2 жыл бұрын
Glad you enjoyed it!
@transientaardvark62312 жыл бұрын
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 ?
@AndreasSpiess2 жыл бұрын
A good idea. I added a link in the description.
@tommihommi12 жыл бұрын
you can receive DCF77 and other long wave time signals with a soundcard and a long wire
@sdjhgfkshfswdfhskljh33602 жыл бұрын
Or Russian military signals at 18.1kHz.
@AndreasSpiess2 жыл бұрын
Interesting. I never tried it.
@minus3dbintheteens602 жыл бұрын
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
@AndreasSpiess2 жыл бұрын
As I showed it does not work for DC as well as above 1/2 the sampling rate. This cannot be changed.
@nikolaradakovic50502 жыл бұрын
Herr Spiess hatte immer geniale Ideen
@AndreasSpiess2 жыл бұрын
Danke! :-)
@spolz22312 ай бұрын
Another excellent video. Thank you.
@AndreasSpiessАй бұрын
Glad you enjoyed it!
@beest_6 ай бұрын
A very interesting video. I learned new things today. Thanks 👍
@AndreasSpiess6 ай бұрын
Glad you enjoyed it!
@GilgaFrank2 жыл бұрын
I'll stick with my scope for the measurements but having a programmable signal generatr could be extremely useful
@SmallSpoonBrigade2 жыл бұрын
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-z8c2 жыл бұрын
get an analog electric analog computer. Best SG you will ever get.
@AndreasSpiess2 жыл бұрын
@Frank: I agree it is not a replacement for an oscilloscope.
@controllers_knowledge2 жыл бұрын
kzbin.info/www/bejne/iYqlnH9qhNdlitE Go to this link... You will find more close waveform on pc as you use Arduino as DSO
@mundomoreno2 жыл бұрын
Magnífico!!!! I never thought that could be done, thank you very much Andreas You are the best
@AndreasSpiess2 жыл бұрын
You are welcome!
@carloslugo46002 жыл бұрын
Very interesty video, great work
@AndreasSpiess2 жыл бұрын
Glad you enjoyed it!
@aziubin2 жыл бұрын
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?
@AndreasSpiess2 жыл бұрын
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.
@thunderinvader90312 жыл бұрын
Life-changing tip
@AndreasSpiess2 жыл бұрын
Glad you liked the idea!
@rafael38212 жыл бұрын
Excelent , I've made one 20y ago, now I will try a better design based on your notes. Thank
@AndreasSpiess2 жыл бұрын
I hope it will work!
@jacksat22522 жыл бұрын
AUwww , That sweep ,my right ear is bleeding now.😨😨 Please warn headphone users .😂😂.
@AndreasSpiess2 жыл бұрын
Sorry for that!
@fernandosantos35762 жыл бұрын
Andreas, it is a good practice to place 100nF decoupling capacitors, between power rails and ground rail, phisically as near as possible of each integrated circuit.
@AndreasSpiess2 жыл бұрын
You are right!
@Cliff_P2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
Maybe. But then you would have to bridge the input capacitor because it blocks DC and low frequencies.
@Cliff_P2 жыл бұрын
@@AndreasSpiess right, forgot! There would be a filter cutoff on the input.
@derrick_builds2 жыл бұрын
Nice work. Keep making great videos.
@AndreasSpiess2 жыл бұрын
Thanks, will do!
@Bob-of-Zoid2 жыл бұрын
I won't touch Windows with a 100 foot pole! On Linux, I have been using the free "Exescope" program for a decade already, and there are several great free wave analyzer programs available for Linux too. I have a groovy old Wavetek model III Multifunction wave generator from the 70's! It was serious lab equipment back in it's day, not just a tinkerers toy. It still works excellently.
@AndreasSpiess2 жыл бұрын
Thank you for mentioning software for Linux. Indeed, old equipment can be a good choice if you know how to repair it in the worst case (and if you have enough space in your lab).
@bjmsamrlm2 жыл бұрын
REW works perfectly on Linux and OSX.
@ELEKHOB2 жыл бұрын
This need to try....thank alot for video
@AndreasSpiess2 жыл бұрын
You are welcome 😊
@richardshort45872 жыл бұрын
I’m so new that was as clear as mud 🤪thanks anyways. I guess at some point I’ll understand what you said.
@AndreasSpiess2 жыл бұрын
Good you stick to these videos. My videos are made for advanced viewers or for beginners with ambitions to get better ;-)
@g0fvt2 жыл бұрын
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...
@AndreasSpiess2 жыл бұрын
Indeed, many current SDRs use soundcards for demodulation. And of course all digital modes. But you were very early! 73 de HB9BLA.
@g0fvt2 жыл бұрын
@@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
@acestudioscouk-Ace-G0ACE2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
You can add mixers. But these are topics for my second channel...
@1kreature2 жыл бұрын
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.
@AndreasSpiess2 жыл бұрын
I do not know where the limitation comes from. You are right, as I showed, the proprietary drive went up to 192k.
@paulopecegueiro16942 жыл бұрын
You can also use your soundcard to measure the thiele-small parameters of a speaker.
@AndreasSpiess2 жыл бұрын
Good to know (I had to google "thiele-small parameters" ;-)
@paulopecegueiro16942 жыл бұрын
@@AndreasSpiess Interesting, hope we can see you talking about it.
@ke4est2 жыл бұрын
Excellent Video!!
@AndreasSpiess2 жыл бұрын
Glad you liked it!
@rlibby4042 жыл бұрын
Excellent video, thanks
@AndreasSpiess2 жыл бұрын
You are welcome!
@grumpyquad45962 жыл бұрын
Danke, sehr interessant! Dein "cool stuff" ist ganz heißer Sch..ß!!! Weiter so.
@AndreasSpiess2 жыл бұрын
Gern geschehen. Schön dass ich deinen Geschmack getroffen habe...
@christianlehner80232 жыл бұрын
Merci för die grundlage! Genau das muesich jetzt denn au mache.
@AndreasSpiess2 жыл бұрын
Viel Erfolg!
@benbaselet20262 жыл бұрын
Those shiny mirror screens on laptops are horrendous.