i made a simple board with buttons, its the aux pannel of the f16.  I connected a potentiometer to the arduino and used the BORTcoding.  it works very good? Problem is when i put and rotaryswitch(made like a hornets nest) and connect it to the arduino suddenly 3 or 4 switches starting to turn and go on and of in dcs as i turn the pot.  Can anyone help me.  I put the pot for the hmcs on A0, the rotaryswitch for cmds prog on A2, the rotaryswitch for cmds mode on A4, connected the +of the pot and rotarys on 5 V and the - on the ground, near the 5v .
 
	Am i doing something wrong?
 
	Tryed to solve it but i got stuck.
 
	 
 
	Johan