Help With Volume Adjustment Digital Potentiometer

Status
Not open for further replies.
I am a beginner with wiring microchips and have never used a digital potentiometer.

What my project requires is taking audio through a 3.5mm plug and then adjusting the volume and outputting it through another 3.5mm plug (ranging from silence to original volume).

Coding the arduino itself will not be an issue, but I have no clue what to do for wiring.

What is a good digital potentiometer to purchase?

Also, would a friendly member here guide through what resistors or capacitors I need for wiring? I am extremely confused why resistors or capictors are even necessary for wiring the digital potentiometer to the arduino, but I've seen photos of similar projects with people using them.

Thanks!
 
I am a beginner with wiring microchips and have never used a digital potentiometer.

What my project requires is taking audio through a 3.5mm plug and then adjusting the volume and outputting it through another 3.5mm plug (ranging from silence to original volume).

Coding the arduino itself will not be an issue, but I have no clue what to do for wiring.

What is a good digital potentiometer to purchase?

Also, would a friendly member here guide through what resistors or capacitors I need for wiring? I am extremely confused why resistors or capictors are even necessary for wiring the digital potentiometer to the arduino, but I've seen photos of similar projects with people using them.

Thanks!

It's not too clear from your post whether you plan to route the audio through the arduino or just use the arduino for control.

I wonder if you are confusing rotary encoders with digital potentiometers?
A rotary encoder is usually used as a control interface and these are used with capacitors and resistors to form a hardware debouncing circuit, the same debouncing can be run in software.

A digital potentiometer is usually a chip that can be controlled via serial or i2c. Analog devices make good ones. A good rotary encoder is the Bourns PEC11 series.

This page describes the wiring of a digital potentiometer for arduino
https://www.arduino.cc/en/Tutorial/DigitalPotentiometer

There are projects where the arduino has been used to control a motorized analog potentiometer and this would work with your audio routing from one connector to another and controlling volume.

You could also use a rotary encoder for input to the arduino which would send code to control a digital potentiometer.

If you can be a bit clearer what you need the circuit to do and what it is for, it will be easier to get help.
 
It's not too clear from your post whether you plan to route the audio through the arduino or just use the arduino for control.

I wonder if you are confusing rotary encoders with digital potentiometers?
A rotary encoder is usually used as a control interface and these are used with capacitors and resistors to form a hardware debouncing circuit, the same debouncing can be run in software.

A digital potentiometer is usually a chip that can be controlled via serial or i2c. Analog devices make good ones. A good rotary encoder is the Bourns PEC11 series.

This page describes the wiring of a digital potentiometer for arduino
https://www.arduino.cc/en/Tutorial/DigitalPotentiometer

There are projects where the arduino has been used to control a motorized analog potentiometer and this would work with your audio routing from one connector to another and controlling volume.

You could also use a rotary encoder for input to the arduino which would send code to control a digital potentiometer.

If you can be a bit clearer what you need the circuit to do and what it is for, it will be easier to get help.

I think that I need a digital potentiometer, because I have seen similar projects but they don't really explain the circuit details.

The audio will not go through the arduino. My project consists of a 3.5mm plug that goes into an audio source, then an output 3.5mm jack where the user can plug in headphones to listen to the input source, just at a modified volume (ranging from lower to original volume).

The issue is that I don't really know where to start. I have been having a little difficulty understanding how a digital potentiometer is wired, and even then, I don't understand why various resistors or capacitors would be needed in this situation.
 
I think that I need a digital potentiometer, because I have seen similar projects but they don't really explain the circuit details.

The audio will not go through the arduino. My project consists of a 3.5mm plug that goes into an audio source, then an output 3.5mm jack where the user can plug in headphones to listen to the input source, just at a modified volume (ranging from lower to original volume).

The issue is that I don't really know where to start. I have been having a little difficulty understanding how a digital potentiometer is wired, and even then, I don't understand why various resistors or capacitors would be needed in this situation.

If all you want to do it change the volume the why not just use an analog pot between the input and output?

Fully clockwise will be full volume, counter clockwise will gradually turn it down.

Unless you need specific steps or want to control it through an arduino a simple analog pot will do what you describe.

The resistors in the link I posted are pull up resistors that are used on the supply lines, this is fairly standard for arduino circuits. The other resistor is used as a dropping resistor for the led to limit the current.

As I said before I think you are are seeing a rotary encoder and thinking that this is a digital pot, they are not the same.

If you use a digital pot then you will still need some way to control it either with switches for up and down or a rotary encoder.

Does this make more sense?

If you have an image of the layout you are confused about, post it and it might be easier to see why you are confused.
 
Also, would a friendly member here guide through what resistors or capacitors I need for wiring?

You can connect the digital volume control just like an analog one. No other (analog) parts are needed.
Blocking capacitors at the input and/or output may be useful in some circuits, if DC is present.
The input goes to the top of the control, the output comes from the wiper, and the bottom is grounded.
An example of hook-up (drawing is for stereo analog control): http://pi-amp.com/Pi-Amp/images/59.jpg
 
Last edited:
Status
Not open for further replies.