![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| Google "EEPOT" | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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! | |
| |
| | (permalink) |
| 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.
__________________ 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. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| Digital Pots are you best bet, adjust the feedback loop digitally to adjust the amplification. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| | |
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) |
| I weep as no one reads my links | |
| |
| | (permalink) | |
| Quote:
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 | ||
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |