Log in

View Full Version : hooking up potentiometers


chippermonky
05-02-2007, 19:54
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
05-02-2007, 20:04
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