Skip to content
View in the app

A better way to browse. Learn more.

www.Head-Case.org

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Group Buy - Digital Attenuator (Kevin Gilmore)

Featured Replies

  • Replies 223
  • Views 65.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I finally have a simple "ish" solution for the controller on the digital attenuator.  I developed two boards.  The first is a RK50 to Stepped Attenuator adapter board.  It is the same size as the

  • johnwmclean
    johnwmclean

    I am master of this.

  • wokstarr26
    wokstarr26

    No problems at all. I and  members of this forum is indebted to you for the great amount of work you have put into organizing packing shipping etc for these GB. I am now publicly  giving you a BI

Posted Images

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?

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.

 

^ 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.

 

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.

I have something still can't figure it out, while without any buffers, the input impedance of this attenuator board is constant, but how about output z? We take the 50k version as the example, how does output z change?

Thanks JoaMat and Kerry.

I figured as much - the Volumite may work but will need to reprogram the ATtiny85. 

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

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.

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).

Here's the larger controller board up and running :)

Attn-1.JPG

 

The motor works.  I haven't tested the IR yet, but it's pretty straight forward.  I've got a bunch of programming to do to get the IR/motor going.

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

If you're able to control the volume on the display, you'll be able to get the digital attenuator to work too:)

Is there any problem using this board for 4xSE channels as oppose to 2xBAL channels?

No problem

EDIT:  Yes - agreeing with Kevin's comment below.  They are really two stereo SE controls per board in that you can control each stereo pair independently.

Edited by Kerry

you won't be able to do a balance control  that way, but you could 2 x SE and 2 x SE with different gains

Nice :)

I still love that you can make your own boards.  I just haven't had the time to even try.

Yes, those look good. Are they 2-layer? You aren't home brewing more than that are you? (Don't even know if that is possible).

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

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.

  • 2 weeks later...

Folks told me the ladder/shunt type have only two relays in the signal path... Are the two versions pots from Kevin (the orignal version and the v2) the same design as those designs (two relays in the path)?

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

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??

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.