Author Topic: function generator from pc audio port  (Read 2428 times)

0 Members and 1 Guest are viewing this topic.

Offline OwaisAhmedTopic starter

  • Contributor
  • !
  • Posts: 11
  • Country: pk
function generator from pc audio port
« on: January 30, 2022, 09:04:12 am »
i don't have function generator or oscilloscope but i was looking for some sort of thing that can provide regulated high freqency sinewave or square wave so i thought about this idea. i just wonder if there going to be any problem using this method as a signal.
« Last Edit: January 30, 2022, 09:08:38 am by OwaisAhmed »
 

Offline jonovid

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: au
    • JONOVID
Re: function generator from pc audio port
« Reply #1 on: January 30, 2022, 10:34:25 am »
IMO any pc audio port is only good for 40Hz up to 15kz and sine wave at best.  basic audio work
try to get better if you can

go to 4:19 on the video
How To Set Up An Electronics Lab



or
ordering from china if you can?
many kit type function generators on alie-xp

really need to know the type of work this is for  ie hi fi  or low fi   :-//

others may have better suggestions
« Last Edit: January 30, 2022, 12:48:21 pm by jonovid »
Hobbyist with a basic knowledge of electronics
 

Offline tunk

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: no
Re: function generator from pc audio port
« Reply #2 on: January 30, 2022, 01:17:47 pm »
What do you mean by high frequency?
Is this any help: https://youtu.be/Y1KE8eAC9Bk
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9586
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: function generator from pc audio port
« Reply #3 on: January 30, 2022, 02:16:38 pm »
Take a look at fl2k for a $5 3 channel AWG that can go up to 70MHz or so.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 14771
  • Country: ch
Re: function generator from pc audio port
« Reply #4 on: January 30, 2022, 03:15:59 pm »
IMO any pc audio port is only good for 40Hz up to 15kz and sine wave at best.  basic audio work
try to get better if you can
Where do you get those numbers from? A standard 44.1kHz/16-bit audio output supports 20Hz-20KHz. Nor are non-sinusoidal waves a problem at lower frequencies. If the goal is audio work, then it's fully sufficient to match human hearing. (Since the bandwidth limits of the audio output are better than those of human hearing.)
 
The following users thanked this post: newbrain

Offline tooki

  • Super Contributor
  • ***
  • Posts: 14771
  • Country: ch
Re: function generator from pc audio port
« Reply #5 on: January 30, 2022, 03:19:16 pm »
i don't have function generator or oscilloscope but i was looking for some sort of thing that can provide regulated high freqency sinewave or square wave so i thought about this idea. i just wonder if there going to be any problem using this method as a signal.
I've done this, but it's only for audio frequencies. "High" frequency in electronics often means frequencies far above audio frequencies, so using a PC as a signal gen is mostly useful for audio projects and very basic, low-frequency stuff. But it's really no substitute for a real signal generator, since it can only generate AC signals with no DC offsets, which limits its uses. 
 

Offline jonovid

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: au
    • JONOVID
Re: function generator from pc audio port
« Reply #6 on: January 30, 2022, 07:23:20 pm »
IMO any pc audio port is only good for 40Hz up to 15kz and sine wave at best.  basic audio work
try to get better if you can
Where do you get those numbers from? A standard 44.1kHz/16-bit audio output supports 20Hz-20KHz. Nor are non-sinusoidal waves a problem at lower frequencies. If the goal is audio work, then it's fully sufficient to match human hearing. (Since the bandwidth limits of the audio output are better than those of human hearing.)
I did the same with an XP windows software tone generator application , in the instructions it did say 15kHz upper limit
but this maybe a software coding limitation.   
may also be to my age related hearing   :palm: others on youtube have said standard pc audio is not the full flat 20Hz-20KHz
Hobbyist with a basic knowledge of electronics
 

Offline SmallCog

  • Frequent Contributor
  • **
  • Posts: 315
  • Country: au
Re: function generator from pc audio port
« Reply #7 on: January 31, 2022, 02:33:02 am »

If you've got nothing else splashing a few dollars on one of these isn't the worst idea ever

https://www.ebay.com.au/itm/403325035966?hash=item5de80ba5be:g:GZ0AAOSwvCJg~20f&frcectupt=true

 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2499
  • Country: us
  • Yes, I do this for a living
Re: function generator from pc audio port
« Reply #8 on: January 31, 2022, 03:47:39 am »
IMO any pc audio port is only good for 40Hz up to 15kz and sine wave at best.  basic audio work
try to get better if you can
Where do you get those numbers from? A standard 44.1kHz/16-bit audio output supports 20Hz-20KHz. Nor are non-sinusoidal waves a problem at lower frequencies. If the goal is audio work, then it's fully sufficient to match human hearing. (Since the bandwidth limits of the audio output are better than those of human hearing.)
I did the same with an XP windows software tone generator application , in the instructions it did say 15kHz upper limit
but this maybe a software coding limitation.   
may also be to my age related hearing   :palm: others on youtube have said standard pc audio is not the full flat 20Hz-20KHz

If a PC audio output doesn't pass 20 Hz to 20 kHz flat to maybe 1 dB, then it's broken. They're all capable of doing it. Perhaps the "others on YouTube" don't know what they're talking about? It would not be the first time.
 
The following users thanked this post: tooki

Offline OwaisAhmedTopic starter

  • Contributor
  • !
  • Posts: 11
  • Country: pk
Re: function generator from pc audio port
« Reply #9 on: January 31, 2022, 02:32:13 pm »
thanks to everybody for helping me out. i'm gonna buy 10 dollar function generator kit because the voltages on pc audio port is also low. btw my application was putting and square wave signal on base of a transistor like in amplifier but not to run speaker on it. and sometime checking circuit working on square wave vs dc. for example capacitor timing and ripple. the only reason i was looking for higher frequency was to make small size higher frequency transformer and understand affect of frequency on electromagnetism induction.  again thankyou to everybody.
 
The following users thanked this post: tooki


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf