Using sound/audio as a potentiometer?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    22

    Default Using sound/audio as a potentiometer?

    I'm currently using a linear pot to control some things in my circuit. Is there any way/component that allows sound to control resistance? For example, the more sound, the more voltage that is output through the pin. I haven't been able to find any information on this.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes there's some several ways and dedicated IC to do it. What do you exactly need to do?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2007
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    Well right now I have the Pot connected to ground, voltage, and the output to AN3/RA4 of PIC16f684. I am simply using ADC to read the value of the pot and set that value as a delay in a loop. So when my pot is turned one way, my lights and patterns are changing fast, and when its the other way they slow down. I want to implement that same feature, but with the sound. No sound/quiet would make the patterns (Controlled by the PIC) change slowly, and loud sound change quickly. Since the pot is just controlling resistance, and thus the voltage sent to AN3, I guess I would need some sort of mic/IC setup that would send more voltage in when it's quiet (for this purpose, but I guess I can take whatever and just use the inverse of that value in my program).
    Last edited by mekohler; - 5th October 2007 at 05:39.

  4. #4
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Your best bet would be to forget about sound levels altering resistance and modify the schema to work directly with a DC level that is proportional to db. A cheap, readily available 50 cent mic, plus a 741 (or similar) operational amp a long with a handful of passives is all you really need to do the job. The task of the OP AMP is to amplify the very small AC signal from the mic. You'll also need a sample & hold circuit too. Do a google search on VOX projects. This may help point you in the right direction.
    Last edited by T.Jackson; - 7th October 2007 at 12:12.

  5. #5
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default VOX Example

    VOX circuit (bit overboard but good) <a href="http://www.rason.org/Projects/basicvox/basicvox.htm" target="_blank">Click Here!</a>

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116


    Did you find this post helpful? Yes | No

    Default

    From the circuit you should throw away Q1. Then put in the place of R9 a 5.1V zener to protect the PIC adc input. The circuit functions as simple rectifier, so the audio level as converted to dc.

    The op-amps may need high power supply (of 12 or more volts). Another choice might be LMC662.

    Ioannis

Similar Threads

  1. Replace a potentiometer by a digital pot
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 5th November 2007, 07:52
  2. Switch / Potentiometer
    By bearpawz in forum Off Topic
    Replies: 12
    Last Post: - 19th January 2007, 21:45
  3. Potentiometer with indexing.
    By muddy0409 in forum General
    Replies: 2
    Last Post: - 1st January 2006, 19:41
  4. Microchip MCP41xxx Digital Potentiometer Code Trouble
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 18:21
  5. Replies: 9
    Last Post: - 30th August 2005, 06:33

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts