Hey guys, I'm pretty new to all of this. I'm not normally a programmer and have a fairly basic understanding of electronics.
But I've made a few projects with arduinos, and am working on an Arduino Radio right now using the TEA5767 module.
I'm going to be hooking up the radio to an amp, so I can use speakers, not just headphones. This amp was recommended by a few people.
It comes with a ribbon cable and a potentiometer that also includes a click to switch the power off. I'd like to wire in a separate switch for the power. The first and second wires/pins on the ribbon cable are actually separate red and black wires. So I think I can hook those up directly to a standard switch to control the power?
I'm also wondering if there's a way I could control the volume via the arduino, through PWM? I have a rotary encoder hooked up to change the station currently, which includes a push button, and I'd like to use the push to change the mode to volume control. But I admit I'm not fluent enough in reading electronics diagrams to understand what the other 5 pins of the ribbon cable are doing?
Is there a way to wire this up to the arduino to control the volume?
Thanks
Edit: It looks to me (super layman) like the ribbon cable is actually going to two potentiometers? Pins 4 and 6 going to one, and pins 3 and 7 going to the other. With Pins 6 & 7 being Vcc and Pins 3 & 4 being output? I don't understand why there would be two potentiometers built into this? Maybe left and right channel? If 3 and 4 are the outputs of the potentiometer(s), does that mean I could hook those pins up to PWM on the Arduino to control the volume?
I'm also wondering if there's a way I could control the volume via the arduino, through PWM?
Could you use a digital potentiometer? Usually via I2C
Tumerboy:
It comes with a ribbon cable and a potentiometer that also includes a click to switch the power off. I'd like to wire in a separate switch for the power. The first and second wires/pins on the ribbon cable are actually separate red and black wires. So I think I can hook those up directly to a standard switch to control the power?
Can you check if the potentiometer is used as a variable resistor or if it is used as a voltage divider?
If it is the latter, you migh use pwm and some capacitor to emulate a variable tension. Otherwise you might need to use a programmable resistor.
Thanks for the suggestions guys. I'll poke around with my multimeter tonight and see if I can tell what it's doing. I didn't even know that digital potentiometers were a thing.
And for clarity, this is the kind of thing that is decidedly not helpful, even in PM form, even from someone of the Shannon level. If the response you are typing looks something like this, please save yourself the keystrokes:
Edit: It looks to me (super layman) like the ribbon cable is actually going to two potentiometers? Pins 4 and 6 going to one, and pins 3 and 7 going to the other. With Pins 6 & 7 being Vcc and Pins 3 & 4 being output? I don't understand why there would be two potentiometers built into this? Maybe left and right channel?
It's called stereo. Two channels, therefore two potentiometers.
If 3 and 4 are the outputs of the potentiometer(s), does that mean I could hook those pins up to PWM on the Arduino to control the volume?
You actually have no idea whatsoever what "PWM" means, do you? 
Tried poking around with my multimeter tonight, but couldn't find any voltages that changed by the position of the potentiometer.
I did try hooking up a switch between 1 and 2, but that didn't work. The pot's switch still turned the amp on and off.
Poking around what? Give us some diagram, at least of how the pot is connected, or how are we supposed to know if you measured something useful? How many cables are connected to the pot? Two or three? Are any pins of the pot shorted between themselves? Are they connected to Vcc, ground, or some other potential?
Sorry, the diagram was in the PDF I linked to earlier, I thought that was clear, but I guess I never stated it outright. Here it is again, with the pot in the lower left.
As I read it, pins 3 and 4 should be the outputs, pins 6 and 7 should be audio inputs (left and right). And the 3rd pin on each pot goes to ground. I think that means it's a voltage divider, yes?
I tested between various points on the back of the pot's ribbon cable connector, trying to see if the voltage changed between the same two points, when the volume knob was turned down, but I didn't find any voltage changes.