An audio soundcard is for audio signals. Not square wave.The problem is I measured 10KHz square wave output generated from audio soundcard
hmm, I don't know whether this will lead to the solution here.Hi,
An audio soundcard is for audio signals. Not square wave.
It maybe is limited to 20kHz maybe a bit higher.
So what is a 10kHz square wave?
It consists of;
* fundamental sine, frequency 10kHz
* plus 3 times fundamental frequency sine = 30kHz (reduced amplitude)
* plus 5 times fundamental frequency sine = 50kHz (reduced amplitude)
* plus 7 times ...
* plus 9 times ...
* plus 11 times ...
... and so on. infinitely
so if the audiocard is limited to something above 20kHz ... it will be hard to get 30kHz out of it.
and surely not 50kHz or higher.
--> So what you get is the 10kHz sine, maybe a bit "distorted" by the 30kHz.
Use a square wave generator when you want a square wave.
****
For sure a 100Hz square wave generated from an audio sound card may look similar to a square wave:
Because the overtones of 300Hz, 500Hz, 700Hz, 900Hz ... below 20kHz are quite good to reperoduce.
Klaus
I agree that soundcard cannot generate 20KHz square wave upto required precision a 10KHz it does.I agree with KlausST. Rather unlikely that a soundcard can generate true 20 kHz square wave. The output is low pass filtered to audio band, e.g. 20 or 25 kHz cut off frequency. The apparently non-periodic waveform is probably caused by the sampling frequency, could be 96 or 192 kHz.
I tried both AC and DC coupling, same result. BTW, I used the PC sound card scope(and others) provided in your instructable url link.The sound card output is AC coupled. Your first scope capture seems like it has a low freq modulation
on it. Your scope AC or DC coupled on vertical ?
PC SOUND-CARD SCOPE INTERFACE FACILITATES DC RESTORATION
PC SOUND-CARD SCOPE INTERFACE FACILITATES DC RESTORATION: To start with I must appreciate acknowledge and thank ‘Christian Zeitnitz’ for the fantastic Sound-card Oscilloscope & signal generator software available at his website on which this Instructable is based. While working with the PC sound…www.instructables.com
Regards, Dana.
True .. and not. While misic is a mixture of different sounds with different overtones. ..it´s not able to reproduce a square wave perfectly. It can be close to it. Your 1kHz shows this perfectly. It is close to a square wave, but not perfect.The audio signal shape can be anything square, triangle etc.
This is self-contradictory.I think soundcard can generate square square without any harmonics.
It is not possible to have a periodic waveform (other than a sine wave) without any harmonics.I think soundcard can generate square square without any harmonics.
I'd say in most cases thus is true,In reality, the cut-off at 20kHz is not sharp; say the slope is 20db per decade (frequency).
you are right - I am ignorant about the digital filters and the specific area (DSP) has grown very fast...This is about impossible for analog only filters..
But as said, this is true only for the audio ADCs and DACs...
Klaus
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?