PDA

View Full Version : hooking up potentiometers


chippermonky
02-05-2007, 07:54 PM
Hi, I'm currently using Kevin's ADC code.I hooked up a potentiometer to channel 1 with just the white and black wires coming from the analog inputs. I call Get_ADC_Results(1) and print the output. Regardless of what place the potentiometer is at, it always reads zero. However, if I hook up the accelerometer, then I get the raw accelerometer data. Am I hooking up the potentiometer incorrectly, Can someone help? Thanks in advanced.

Joe Ross
02-05-2007, 08:04 PM
Page 8 (Section 9) of the Robot Controller Reference Guide shows how to correctly hook up a potentiometer. All three wires are required.

http://ifirobotics.com/docs/rc-ref-guide-6-13-2006.pdf