Make free function generator. Got old computer speakers? Read on.

Discussion in 'Electronics Resources' started by count_volta, Jul 7, 2012.

  1. count_volta

    count_volta Thread Starter Active Member

    Joined:
    Feb 4, 2009
    Messages:
    433
    Location:
    Pennsylvania
    I cant afford a function generator right now. But I constantly need one and have to keep driving to university lab and spend money on gas. Here is a solution.

    1: Download this software:
    http://heliso.tripod.com/download/generator/dsg.htm

    2: Get some old computer speakers (everyone has some laying around)

    3: Open up your speaker system and disconnect the signal wires from the speaker coils themselves.

    Now plug the aux cable for the speaker system into your sound card

    Now run the software and connect the speaker system signal wires, power and ground, into an oscilloscope.

    Now you can use the speaker system's volume knob to adjust the amplitude and use the software to adjust the frequency and waveform type.

    The major benefit of this setup is that the sound card is isolated from the output that is going to the oscilloscope. The speaker system's default amplifier is doing the isolation.

    If you short circuit the signal wires, the worst that will happen is your crappy old speakers may get damaged, but your audio card is safe. I at least hope this is true. I really hope. :D When would this not be true? Anyone?

    The output amplitude depends on your speaker system. I am getting 6.5V peak max output with sine wave before the signal begins to saturate and get distorted. My speaker system has a power supply of 10 volts. Makes sense.

    This is not really meant to be used to drive anything major, but if you need a signal to test with an op amp or micro-controller, this is great. Once again it all depends on the kind of speakers you have.

    Enjoy.
    hashmaster and DerStrom8 like this.
  2. DerStrom8

    DerStrom8 Well-Known Member

    Joined:
    Feb 20, 2011
    Messages:
    1,978
    Location:
    Vermont, U.S.A. (GMT-5)
    Very clever! Using audio signals to carry specific waveforms! Brilliant! :D
  3. panic mode

    panic mode Well-Known Member

    Joined:
    Oct 10, 2011
    Messages:
    1,103
    Location:
    Mississauga, Ontario
    should be fine for low frequency sine but not so sure about other waveforms. how is the square wave or sawtooth?
  4. THE_RB

    THE_RB AAC Fanatic!

    Joined:
    Feb 11, 2008
    Messages:
    5,435
    I have repaired and seen inside a lot of PC powered speakers. There is no proper "isolation" like optical isolation, and the amp ground is usually connetced to the PC ground, which is usually connected to the PC metal case and mains ground.

    Generally this is true and the amp will provide some decent level of protection for the sound card output.

    Another benefit is the speaker amp provides some buffering so it makes a more powerful signal level than the PC sound card output itself.

    If you want to optimise the protection then another good idea is to put a small fuse (100mA or 200mA) in line with the amp output.
Similar Threads
Forum Title Date
Electronics Resources Free engineering calculation site Aug 6, 2014
Electronics Resources is there free C Compiler Jan 23, 2014
Electronics Resources free samples links Jan 15, 2014
Electronics Resources A good,free software for circuit simulation Jun 1, 2013
Electronics Resources Electronic Calculator Freeware for math challenged Mar 28, 2013

Share This Page