Hi,
I am having problems with a seemingly very simple problem.
I have programmed a pic, to output audio, encoding it on 4 digital outputs, and using a resistor ladder to convert a digital signal to an analogue signal.
The I am putting the sound through a capacitor, as the PIC chip can only create positive voltages, and I want the signal to be AC.
I get decent sounds, and am pretty happy with that. To create some more volume, I used the LM386 amplifier. This also works pretty well.
Now to the problem. I am also outputting additional volume information on the wave, using a resistor ladder, I create a volume control signal is between 0 and 5 volts.
Now the problem is using this voltage to control the volume of the output.
I thought I just run the signal through a transistor, and control the transistor with this value. However whatever I tried, the transistors I am using either seem to be open, or closed, I cannot seem to use it as a sound volume
controller. I tried before the amplifier, after, and instead. It's not getting me anywhere.
So I am basically looking for tips, transistor recommendations (Which is better for this application MOSFET or regular transistor?), or perhaps links to how to use a dc signal to control volume of an audio signal.
Any help appreciated.
Thanks and regards
DaC
I am having problems with a seemingly very simple problem.
I have programmed a pic, to output audio, encoding it on 4 digital outputs, and using a resistor ladder to convert a digital signal to an analogue signal.
The I am putting the sound through a capacitor, as the PIC chip can only create positive voltages, and I want the signal to be AC.
I get decent sounds, and am pretty happy with that. To create some more volume, I used the LM386 amplifier. This also works pretty well.
Now to the problem. I am also outputting additional volume information on the wave, using a resistor ladder, I create a volume control signal is between 0 and 5 volts.
Now the problem is using this voltage to control the volume of the output.
I thought I just run the signal through a transistor, and control the transistor with this value. However whatever I tried, the transistors I am using either seem to be open, or closed, I cannot seem to use it as a sound volume
controller. I tried before the amplifier, after, and instead. It's not getting me anywhere.
So I am basically looking for tips, transistor recommendations (Which is better for this application MOSFET or regular transistor?), or perhaps links to how to use a dc signal to control volume of an audio signal.
Any help appreciated.
Thanks and regards
DaC