View Single Post
  #4   Spotlight this post!  
Unread 05-02-2007, 09:43
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: Limited OI Range From Linear Slide Potentiometers

Well, we're currently using a 20K ohm rotating pot and we can get values from 0 to 1024 without any other resistors. Don't ask me how, but that's what happens. Just to clarify, is your wiring something like this....

Potentiometer Diagram
------------------------
(1)________________(3)
(2)________|
------------------------
Pin 1 on pot to red +5V pin on analog input.
Pin 2 on pot to white signal pin on analog input.
Pin 3 on pot to black ground pin on analog input.
__________________
Code:
void function(void)
 {
  function();
 }