Go to Post Some of them look like phone numbers... LETS START CALLING THEM ALL! - akoscielski3 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   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();
 }
  #2   Spotlight this post!  
Unread 05-02-2007, 09:50
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Limited OI Range From Linear Slide Potentiometers

Quote:
Originally Posted by Jake M View Post
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....
It looks like the pot you're talking about is connected to the Robot Controller (because the RC can measure 0 to 1023, the OI can only measure 0 to 254). The original poster is talking about a pot wired to the Operator Interface, which measures analog signals differently than the robot controller. It requires 100K ohm pots (or else some fancy trickery) to work correctly.
  #3   Spotlight this post!  
Unread 05-02-2007, 09:55
Chaychay Chaychay is offline
Registered User
AKA: Jay Shah
FRC #0610 (Crescent Robotics)
Team Role: College Student
 
Join Date: Dec 2003
Rookie Year: 2004
Location: Toronto, Ontario
Posts: 48
Chaychay is on a distinguished road
Send a message via MSN to Chaychay
Re: Limited OI Range From Linear Slide Potentiometers

Thanks for the replies everyone!

Yeah, I was under the impression that the OI needed 100 K ohm resistors as per the manual, however I have 2 reasons to believe otherwise:

1. http://www.chiefdelphi.com/forums/sh...4&postcount=15

2. We have a 10 K potentiometer wired as well, and it works just fine, we get the whole 255-0 range corresponding to the whole range of the pot.

If anyone has any other suggestions, please let me know. Thanks a ton!
  #4   Spotlight this post!  
Unread 05-02-2007, 10:26
Mark Pierce Mark Pierce is offline
Registered User
FRC #0085 (B. O. B.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Zeeland, MI
Posts: 239
Mark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant future
Re: Limited OI Range From Linear Slide Potentiometers

First, there are posts in this thread that are confusing the RC inputs with the OI. This thread is about the operator interface, not the Robot Controller, they are different designs.
Quote:
The wiring is currently: Negative on pot to pin 4 on OI (ground). Positive on pot to pin 1 on OI (+5 V), & signal from pot
The Operator interface is designed to work nominally with a 100 K ohm variable resistance (potentiometer or switched resistors) with only two connections as shown in IF documentation and the 2007_Guidlines_Tips_Good_practices document. It probably will generate values throughout the range of a 120K pot due to various tolerances.

Disconnecting your ground should give you a range of values of around 128 values (I forget if it is 0-128 or 128-255).

By connecting the ground you are drawing more current than intended by IFI and thus messing up their current measuring circuit and software. Connecting a pot in this manner can also cause the OI input to look like a disconnected joystick which will generate a 127 as an output value at one end of the range.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linear slide potentiometers Greg Needel Electrical 4 04-02-2007 15:49
Slide Show from UTC Scrimmage BobC General Forum 2 21-02-2006 18:16
pic: Slide 20 CD47-Bot Extra Discussion 4 14-03-2004 17:28
Limited Vs. Large funds? Mikeman602 General Forum 15 22-03-2002 08:15
poll: should nats be limited? mike o'leary Rumor Mill 10 26-06-2001 15:20


All times are GMT -5. The time now is 11:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi