Jump to content

Group Buy - Digital Attenuator (Kevin Gilmore)


sorenb

Recommended Posts

10 hours ago, Kerry said:

Yes.  It's a standard linear pot rather than an encoder, so the volume is set by it's position. 

I have an I2C header if you want a display, but it's not necessary. 

Hi Kerry: 

Not sure if you are familiar with Twisted Pear Audio's offerings but is this similar to the Volumite they offer for their Buffalo DAC?

Link to comment
Share on other sites

On ‎2016‎-‎10‎-‎15 at 6:45 PM, JoaMat said:

Managed to squeeze the code in ATtiny85. I do think it will be able to control the balanced digital attenuator...

IMG_1549.JPG

...maybe. :huh::wacko:

May I jump in and quote myself?

Volumite consists of  ATtiny85, potentiometer and voltage regulator.

At picture above there is a ATtiny on the breadboard, power supply and potentiometer. The microprocessor is programmed and it seems that I get the correct signals to control the digital attenuator.

I don't believe you can use Twisted Pear Audio's codes with Kevin's digital attenuator.

 

  • Like 1
Link to comment
Share on other sites

^ Agreed and Congrats!

You'd need to program the ATtiny as well.

For mine, I wanted to ability to control a display and leave the potential for additional integration open.  It's based on the ATMega328P and is roughly equivalent to the Arduino Mini Pro.

Link to comment
Share on other sites

 

Thank you.

Programming – that’s my problem. I’ve to keep it simple.

With ATMega328 you will have lots of opportunities – motorized pots., OLEDs, remote control etc. etc.. An AMB OLEDuino version would be great. If you just are able to program it. Excited to see what’s coming.

Link to comment
Share on other sites

I used this link for programming the ATTiny with Arduino Uno.

Maybe you have to change the supply voltage on Volumite so it works with the digital attenuator.

Edit:
Consulting MAX4820 datasheet - looks that 3.3V at Volymite should be sufficient??

Edited by JoaMat
Link to comment
Share on other sites

Thanks JoaMat. This is an area I have much to learn before I build the digital attenuator.

And yes, you are exactly right about the supply voltage. The Volumite can operate on 2.7VDC  - 5.5VDC. It has an on-board, optional LDO 3.3V regulator which enables use of any 3.5VDC - 20VDC supply.

Link to comment
Share on other sites

One thing to note on my board is that I bypassed the 5V regulator for the out supply going to the digital attenuator.  The attenuator board is pretty power hungry, and that could overwhelm the onboard regulator.

Also, I added a 20K pull-up resistor on the pot's wiper for the larger board since the it's a 100K/3B taper.  I've done some mapping work in code to give a smooth/consistent volume across the full dial (modeled after my encoder).

Link to comment
Share on other sites

Excellent work you are doing with the controllers, Kerry.

I’m trying to learn how to program the Arduino. Below is an Arduino UNO with an OLED and a rotating encoder. Turning the encoder - volume goes up/down. Encoder knob pushed toggles mute. If rotation while in mute the volume is changed, but takes effect first when mute is off again. Last volume value is stored in EEPROM and is called back next time controller is powered on and it starts with mute on. I don’t know if this really works - I don’t have a digital attenuator.

IMG_0584.JPG

  • Like 1
Link to comment
Share on other sites

Yes, it’s 2-layer. I think homemade inner layers is too complicated. Making vias is not that funny either.

My board is a bit smaller than the original, no terminal blocks and one ground plane for the entirely board. Kevin’s board have solid inner ground planes which is preferred, but I can’t do that in my kitchen.

By the way I'm retired, gives some additional time for funny things.:D

Link to comment
Share on other sites

Have made some progress programming both Arduino Pro Mini and ATtiny85. My impression is that using 7 relays with 0.5 dB steps is sufficient and the eighth relay mostly contributes to more silent silence.

Opinions from folks that have experience from digital attenuators are welcome.

Link to comment
Share on other sites

  • 2 weeks later...

I don't believe Kevin has posted a schematic, but I think it is similar to Amb's attenuator. Each relay is shunting a resistor to ground. There could be any combination of relays on at a time (8 maximum), for the 256 steps in the attenuator. I guess it depends on how you define "in the signal path".
See http://www.amb.org/audio/delta1/

Please correct me if this is wrong.

Edited by Pars
Link to comment
Share on other sites

Have been struggling with controller for the digital attenuator. Finally the Arduino Pro Mini works OK, both with rotary encoder and with potentiometer. I’ve also tried the little Attiny85 but it didn’t worked with both relay banks so I’ve given that up.

DSC00302.JPG

Power supply is to get an idea of current requirements for the attenuator.

I’ve pops when relays are switching between 7/8, 15/16, 31/32, 63/64 and 127/128 “bit”. At AMB’s forum the pops are discussed and I guess I’ve to live with that??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.