I'm building a midi controller with a bunch of switches and potentiometers.
The switches are working fine. I installed one potentiometer and - after quite a bit of debugging - got that to work too.
The never resting geek in me told me to install a second potentiometer. That causes problems, cause now I'm getting crosstalk between the two analog inputs. When I change value A, I will get (more or less) the same value on B.
The potentiometer is not installed on my arduino board. I use an external expression pedal with a 20k pot that is connected to my arduino via jack inputs. (Like a wah wah pedal wit a stereo jack - I have to connectors on my controller and was just using one pedal so far, unplugging it and connecting to the second connector when I wanted to try the second analog port)
Here's the code snippet I'm using to debug
int sensorAValue = analogRead(A0);
int sensorBValue = analogRead(A6);
When I check the output, I can see that both A & B change their values, although I only have one expression pedal connected. The other jack input is not connected to anything.
I checked all the connections and I think that's not the problem:
Pot CW goes to Arduino ground
Pot CCW goes to Arduino A6
Pot SL goes to Arduino 5.5 volts
I suspect that the problem the 20k Ohm that the expression pedal / pot is providing. But I can't just replace the pot in the expression pedal.
- Am I getting crosstalk because the potentiometer is too strong?
- If that's the case: Is there a way to resolve that without having to replace the potentiometer in my expression pedal?
Thanks for your help,