Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 26th December 2007, 05:58 PM   (permalink)
Default Digitally adjusting gain

I want to be able to adjust the volume digitally, in a little audio preamp circuit.

Ideally i was hoping to put something inline with the current amplifier circuit, which adjusts the level of the signal going into the preamp.
But Im open to any suggestions.

Im fairly experienced with digital devices and MCUS. But not so good at audio circuits (although Ive done a few basic ones).

I was looking at programmable gain amplifiers like the MCP6S21/2/6/8.

But the adjustments are in really big steps +1 +2 +4 +5 +8 +10 +16 +32 (V/V).
With 2 of these chained together its only 64 steps, not really suitable for fine volume adjustment.


Anyone know any other devices that may be suitable?
Or any sites or tips on digitally adjusting volume?


Thanks alot in advance.
John
__________________
The first rule of mstechca club is do not talk about mstechca club.
http://www.electro-tech-online.com/s...induser&u=1245
2camjohn is offline  
Old 26th December 2007, 06:41 PM   (permalink)
Default

Simple, just use analogue switches to short across resistors in an op-amp's feeback loop.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 26th December 2007, 07:38 PM   (permalink)
Default

hi John,
You can buy digital resistors 64 and 128 step.

Look here:

http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3753
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 26th December 2007 at 07:40 PM.
ericgibbs is offline  
Old 27th December 2007, 12:59 AM   (permalink)
Default

Google "EEPOT"
Papabravo is offline  
Old 27th December 2007, 02:50 AM   (permalink)
Default

CS3310 is a nice part. It is a stereo volume controller you control via a serial interface (can't remember if its SPI or I2C). 0.5dB adjustments over a gain/attenuation range of more than 100db.

TI also makes a competing line of parts, such as the PGA2310.

Last edited by speakerguy79; 27th December 2007 at 02:55 AM.
speakerguy79 is offline  
Old 27th December 2007, 03:50 AM   (permalink)
Default

I believe microchip do nice simple (and cheap) serial digital pots. Simple SPI-like interface. Failing that...for a more complicated approach, you could use an FET in the feedback loop of an opamp circuit...I believe these can be used as 'voltage controlled varibale resistors' under certain conditions. of course then you would need a 'dac' (R-2R ladder?) driven by either a microcotnroller, or a serial shift register.

Also...there are many digital pots, which are even cheaper, that only have a 'up/down' pin instead of a serial interface. So no absolute control can be achieved, only relative..but you can set the 'default' gain with resistors anyway.

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline  
Old 27th December 2007, 03:23 PM   (permalink)
Default

This is how I would do it, use a CMOS analogue switchs like the 74HC4066 to short across resistors in the feedback loop of an op-amp.

The example shown belowwill give gains between 1 and 16, you could easilly add 160k, 320k, 640k and 1M28 resistors and another analogue switch IC to give a gain between 1 and 256. I wouldn't go over 8 bits per op-amp as the feedback resistors start to get prohibitively high. If I wanted 16 bits of resolution to go from 1 to 65536 then I'd connect two of these amplifiers together.
Attached Images
File Type: png Digital gain select.png (14.8 KB, 40 views)
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 28th December 2007, 02:50 PM   (permalink)
Default

Sorry for this but are you sure that the increase in those chips isn't one by one in level? What you mention, looks to be related the possible addressing of something.

If I am wrong, sorry.
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Old 28th December 2007, 06:56 PM   (permalink)
Default

Digital Pots are you best bet, adjust the feedback loop digitally to adjust the amplification.
Salgat is offline  
Old 28th December 2007, 07:47 PM   (permalink)
Default

Here's another idea:
Code:
Compressor -> Summing amplifier > Expander
                     ^
               Output from DC
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 28th December 2007, 08:10 PM   (permalink)
Default

http://focus.ti.com/lit/ds/symlink/pga2310.pdf
speakerguy79 is offline  
Old 29th December 2007, 05:50 AM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi John,
You can buy digital resistors 64 and 128 step.

Look here:

http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3753
I've always heard them called "digital potentiometers".

Microchip makes some dandy 256 step ones.

You can use it in a voltage divider, or as the feedback resistors of an op amp.

Be aware that unlike a normal potentiometer, there are voltage limits on the pins of the device. IIRC it will likely by limited to Vdd-Vss, or +5v/0v.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.
Oznog is offline  
Old 29th December 2007, 07:19 AM   (permalink)
Default

I weep as no one reads my links
speakerguy79 is offline  
Old 29th December 2007, 08:28 AM   (permalink)
Default

Quote:
Originally Posted by Hero999
This is how I would do it, use a CMOS analogue switchs like the 74HC4066 to short across resistors in the feedback loop of an op-amp.

The example shown belowwill give gains between 1 and 16, you could easilly add 160k, 320k, 640k and 1M28 resistors and another analogue switch IC to give a gain between 1 and 256. I wouldn't go over 8 bits per op-amp as the feedback resistors start to get prohibitively high. If I wanted 16 bits of resolution to go from 1 to 65536 then I'd connect two of these amplifiers together.
hi hero999

Did you build this before, is it work ?, I got interest to build this one .I have this 4066,lm74193 to control 4066,lm741.
__________________
Publish your web page
jumides is offline  
Old 29th December 2007, 09:29 AM   (permalink)
Default

Quote:
Originally Posted by speakerguy79
I weep as no one reads my links
hi,
Ref your link:

Thats the device I would choose, its designed for that function, it logarithmic and its stereo.

I also wonder sometimes, if there is any point in posting links.

Happy New Year...
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 29th December 2007 at 09:31 AM.
ericgibbs is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Variable gain and buffer circuit canadianpoet2012 General Electronics Chat 6 18th December 2007 04:02 AM
Dynamic mic pre-amp into sound card systemloc General Electronics Chat 52 27th September 2006 02:02 PM
Lowpass xover with gain and Linkwitz Transform.Gain question mikee55 Electronic Projects Design/Ideas/Reviews 2 12th January 2006 10:44 PM
Bypass Capacitor sets the gain and AC walters General Electronics Chat 12 21st August 2005 06:24 PM
Measuring Gain walters General Electronics Chat 14 6th June 2005 04:40 AM



All times are GMT. The time now is 03:02 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker