ROBOTC.net forums
http://robotc.net/forums/

Analog read of off-the-shelf potentiometer
http://robotc.net/forums/viewtopic.php?f=11&t=7070
Page 1 of 1

Author:  mfletch3141 [ Thu Oct 24, 2013 9:18 pm ]
Post subject:  Analog read of off-the-shelf potentiometer

All of the online resources I have read indicate that a potentiometer on analog 1 should read about 5 to 4095 showing 12 bit resolution. Other sources indicate a 16 kHz
sample rate. I have an off-the-shelf potentiometer which is not a vex sensor. I have it set up in an analog sensor. When the pot is full
right and reads 0 on a meter, it shows 0 as a sensor value in the debug window of RobotC. However, when I turn the pot to the other side, it only reads 61. The sensor reading is
smooth and predictable, but the resolution is very coarse. I want to capture at least a half-degree resolution. I am using the black/white sensor plug and wiring it to the middle and outside leg of the potentiometer. Using the VEX potentiometer is not possible. Any suggestions?

Author:  CARBOT [ Fri Oct 25, 2013 12:16 pm ]
Post subject:  Re: Analog read of off-the-shelf potentiometer

The analog ports have 0V, 5V, and the input.
http://content.vexrobotics.com/docs/VEXnet_Cortex_UserGuide_081811.pdf
One side of the pot goes to 0V, the other goes to 5V, and the wiper goes to the analog input.
The pot should be 5K Ohm.
You should measure from 0V to 5V on the analog input with a DMM as you turn the pot.
Please provide a schematic and pot data if it still does not work.
Good luck!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/