I am mixing two stereo audio signals together and would like to control the output volume using the (0-3.3v) DAC on my microcontroller. I'm wondering if there is a simple modification I can do to this circuit so that it accepts a 0-3.3v reference for volume or would I need an additional opamp stage? If additional stage is needed, what would you recommend as it's configuration?
1 Answer
While you could, with some effort, build a voltage-controlled amplifier, let me suggest a somewhat different way to accomplish volume control + mixing. IC manufacturers provide a rich set of devices for this function as some form of volume control is required in just about every consumer audio product out there.
The Texas Instruments LM1971 is a digitally-controlled audio attenuator. So instead of using your microcontroller's DAC, you would hookup digital signals to the IC's LOAD, DATA and CLOCK pins.
There is no need for your OPA1662 input stage. Simply connect the left and right audio signals to the point labelled Audio Input with 1K to 5K resistors. I'm assuming your audio signals can drive that impedance. You'll still need the 1uF cap.
-
-
-
\$\begingroup\$ The data sheet says the AC GND pins are not connected to the die in any way (no bond wires). If it were me, I would just connect them to GND. \$\endgroup\$ Commented Apr 20, 2019 at 3:07
+In_A
and+In_B
. \$\endgroup\$