Go to Post Put on shows. Start new teams, FRC, FVC, or FLL. It doesn't matter. But I know that being on the robotics team has given me some of the best memories of my life, and I wouldn't want anybody else to miss out on that. - irishninja [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 07-02-2008, 19:24
ubermeister's Avatar
ubermeister ubermeister is offline
Registered User
AKA: Eric VA
FRC #0449 (The Blair Robot Project)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Silver Spring
Posts: 48
ubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the rough
Strange OI potentiometer problem

I'm trying to put a POT into our teams custom OI box, but I can't seem to get it to work properly. Here's the setup:

A 100k linear-taper Radio Shack POT is connected between pin 1 (+5) and pin 6 (Y-axis) of port 3. The wiper (center tab of POT) goes to pin 6, and the left tab goes to pin 1.

When hooked up to a program to repeatedly print out the value, it only prints 254.

Now heres the strange part-
I took a multimeter to the pins of the 15-pin connector. The custom POT sweeps between 0 and ~97k ohms between pins 1-6, and a commercial joystick does the same thing. The catch is that the commercial joystick works (value varies between 0 and 254) while the custom POT doesn't (stays at 254).

I have read the OI reference manual, and as far as I can tell have wired it exactly how it specifies.

Am I missing a pin somewhere? Is there something stupid I'm missing or is everybody else as confused as I am?
__________________


  #2   Spotlight this post!  
Unread 07-02-2008, 20:36
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,019
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Strange OI potentiometer problem

Pin 1 to Pin 6 is correct, 100k is correct, center wiper and one end are correct...Schematic

Are you sure about the pin numbers? 6 and 9 look similar and are on the same side. Oh, you measured.

Try putting a 47k (fixed) resistor (or similar, anything between 10k and 82k) across those pins and see if that gives you a non-254 reading.

Strange, it's probably something simple. Have someone completely unfamiliar with it check it over, draw a simple schematic showing what you think it is, and have them check it for you. This works more often than you think.

Don
__________________

I am N2IRZ - What's your callsign?
  #3   Spotlight this post!  
Unread 07-02-2008, 20:44
ubermeister's Avatar
ubermeister ubermeister is offline
Registered User
AKA: Eric VA
FRC #0449 (The Blair Robot Project)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Silver Spring
Posts: 48
ubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the rough
Re: Strange OI potentiometer problem

Quote:
Originally Posted by Don Rotolo View Post
Strange, it's probably something simple. Have someone completely unfamiliar with it check it over...
Tried that- I quickly explained what it was supposed to be, and they tested it while I worked on other things, but when I came back they had no better conclusions than me.

I will try the fixed resistor idea, I can probably dig one up somewhere.

And I just thought of this- is it possible that the processor in the OI needs both an X and Y axis to register either correctly?
__________________


  #4   Spotlight this post!  
Unread 07-02-2008, 20:51
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,744
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Strange OI potentiometer problem

The OI will work fine with just one pot, as it polls each pin separately. I'd go with Don's suggestion of making certain you're not on the wrong pin. Then I'd check your pins, joints, and pot contacts to make certain you're not shorting two pins together or something. One of those pins shorting to another with throw things off, but be completely undetectable when the connector is off the OI.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #5   Spotlight this post!  
Unread 07-02-2008, 23:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Strange OI potentiometer problem

Everything you describe indicates that things should be working properly. So what else aren't you telling us?

The symptom hints that the +5 pin on the joystick port is being overloaded. Has another part been connected to pin 1, and is that other part doing something silly like shorting it to ground?
  #6   Spotlight this post!  
Unread 08-02-2008, 07:47
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Strange OI potentiometer problem

Here is a silly question - do you have all the pins backwards?

My team was wiring up buttons and I had to explain to them that the joystick pinout is actually the pins on the OI, you have to reverse them when you look at the connector on the end of the joystick.
  #7   Spotlight this post!  
Unread 08-02-2008, 20:02
ubermeister's Avatar
ubermeister ubermeister is offline
Registered User
AKA: Eric VA
FRC #0449 (The Blair Robot Project)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Silver Spring
Posts: 48
ubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the roughubermeister is a jewel in the rough
Re: Strange OI potentiometer problem

Quote:
Originally Posted by Alan Anderson View Post
The symptom hints that the +5 pin on the joystick port is being overloaded. Has another part been connected to pin 1, and is that other part doing something silly like shorting it to ground?
Thank you for this information!

Like a good scientist, I decided to change all the variables at once. I took a new connector and new wire and put it together, and it worked!

Then I examined the old connector- between two pins, on the bottom, there was a solder bridge between two pins. Not globby and noticable- less than a hair's thickness. I'm assuming this is what was causing the problem. It was an old crappy connector from past years, and I checked it for bridges before using it, but obviously missed this one. The new ones just as old and just as crappy, but it's a different design and the pins are more visible and farther apart.

Again, thanks for the help!
__________________


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
Strange system problem Bill Becker Control System 16 12-04-2005 17:19
Strange Multi-Turn Potentiometer Problem Yellow Eyes Electrical 10 24-02-2005 13:53
Strange Encoder Problem AIBob Electrical 3 20-02-2005 22:20
Strange Auto Problem NotQuiteFree Programming 6 20-02-2005 17:12
Potentiometer Problem Greg General Forum 1 15-02-2003 18:10


All times are GMT -5. The time now is 21:06.

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