I am trying to make a simple controller to interface with pure data. The construction is as simple as can be for arduino - 6 potentiometers (analog ins), 8 switches (foot controller, connected to digital pins 2-9)) and 4 buttons (on digital pins 2-13)
All of them seem to work however when i turn more than four pots to maximum last two buttons stop to respond With five knods set to max when i push and hold two buttons (pins 10,11) they work ok but if i try to hold third (12 or 13) there is no signal. If all 6 pots are on max then only one button works (pin 9).
I tried putting buttons on pins 2-5 and then they work fine.
I assume that the problem is that reading all arduino inputs at once drains too much current. When to much current is used on analog ins arduino has problem with powering last analog ins (12 and 13).
Can anyone suggest me some way to improve the circut?
Buttons are connectet with 10k resistors Foot swithes are without ane resistors (first leg to 5v, third to gnd and the seccond one directly to input). I tried connecting pots to input through 10k resistors but it makes no change. Power is from USB port.
Thanks in advance for any help.