Solid state R2R attenuator using analog switches or multiplying DAC

I've been testing the DAC8812 based module for the last couple days and it's really good:
- No clicks, pops or any noise.
- Drives my headphones really well.
- Sounds good!

I also used it as a preamp for some UcD180HGs and it sounds and works well.

My current code: dac_level = 65536*(pow(10, (dbLevel/20)));
Gives ~300 steps at 0.25dB or ~160 steps at 0.5dB.
It's not exactly log but it works perfectly fine. It's really fast to make changes, no delay at all.

I also tried to measure it using RMAA but it is beyond the limits of the line input of my computer (which is -87dB noise level, 89dB dynamic range, 0.0041% THD).
 

Attachments

  • IMG_0842.JPG
    IMG_0842.JPG
    202.5 KB · Views: 1,688
  • IMG_0848.JPG
    IMG_0848.JPG
    121.1 KB · Views: 1,629
  • IMG_0850.JPG
    IMG_0850.JPG
    119.2 KB · Views: 1,608
I designed a version with gain in the I/V stage, 12dB. It works really well. I also used an ADUM7440 for SPI isolation from the Arduino. I've taken measurements using my E-MU 0404 USB and it measures better than a PGA2320 :)
 

Attachments

  • MDAC-attenuator.jpg
    MDAC-attenuator.jpg
    198.1 KB · Views: 12,738
  • mdac-schematic.jpg
    mdac-schematic.jpg
    167.2 KB · Views: 13,028
  • mdac-arta.jpg
    mdac-arta.jpg
    126.5 KB · Views: 11,674
Last edited:
True. Never heard of Sim Audio or Moon but yes it looks like they also use the same design:
This volume control circuit is based on the R-2R resistor array configuration and uses high-quality thin metal film surface mount resistors with 0.1% tolerances. The entire process is microcomputer controlled via a discrete relay network.

MOON - Education - Preamplifiers

Their module looks really similar to the Mark Levinson one with IV opamps at one end of a series of analog switches in a row:
An externally hosted image should be here but it was not working when we last tested it.

An externally hosted image should be here but it was not working when we last tested it.
 
Volume control without a DAC

The Germans back right after the war did produce some great audio gear. And faders too. Look at this page
Magnetophon-operation
somewhere on 1/3 of the page, you see the 'Regler'. This thing is a fader, a resistive volume control. From an impedance point of view it is done in such a way that the input impedance *and* the output impedance are similar, NO MATTER where the fader is positioned. The reason is.... Transformers. Often there were transformers as coupling devices (to avoid hum). The performance of transformers is depending of the impedance load or source. This fader solved that problem. And... No electronics. From a mechanical point of view it is horrific to reproduce, of course ;-)
Just wanted to share this.
 
Here's a different idea...
How about using a rotary encoder and code that determine the number of steps by how fast you turn the knob? Get a big heavy knob and it should give a nice tactile feedback while turning it. :)
This way you get all the fine tuning you want by turning it slowly.
 
I'm planning on building your MDAC attenuator design. I just cloned your preamp-two repo on github and am learning how to use KiCad5. Are there any resistors in the MDAC
attenuator circuit that need to be better than 1%? Any chance you have BOM lists with Digikey/Mouser/etc part numbers to speed up the parts order process?