Electronic – Controlling audio signal with digital potentiometer

amplifierbiasdcoperational-amplifier

I am very confused about how to go about using my digital potentiometer to control an audio signal. I have a MCP4231 digital pot and I would like to use it as a MCU controlled variable resistor for gain control of a headphone amplifier. I know there are much better ways of doing this (such as special op-amps) but I would like to try this using the digital potentiometer.

So here is my quesiton. Why in this video there is no mention of biasing the input signal, where as over here it is necessary?

Additionally, the answer to this question about DC biasing of audio signal says that the method mentioned here should not be used due to noise from the input signal!

So basically, I am VERY confused. Do I need a DC bias for the chip I am using? Why can the YouTube lady get away with no biasing? Should I use the method in the first link of the second one? THEN finally, once I choose a method, how do I choose my resistor values?

By the way, this is the circuit I am trying to control. The analog potentiometer that I want to replace is circled in red.

enter image description here

Best Answer

This is not 100.00% complete:

schematic

simulate this circuit – Schematic created using CircuitLab

Re: comments
The YouTube lady cut this out of a larger circuit to demonstrate the potentiometer's function, not necessarily how to use them correctly for audio applications. We aren't shown the input or output stages. The pot should be grounded at or below the lowest voltage expected on the input. As per the comments, her diagram also shows input and output swapped. Her setup was "good-enough" to demonstrate the pot doing work.

Take all internet advice with a grain of datasheet-salt.

See figures 13 and 14 in this selection guide.
Figure 13 is referenced to 0V and is decoupled after the pot.
Figure 14 is referenced to -15V and is decoupled immediately.