Go to Post Team newb: To expect any average group of high schoolers to build and develop a robot in less than six weeks is...madness! Me: Madness? THIS IS FIRST! Newb: Yeah, I just walked into the Pit of Death with that one. - MishraArtificer [more]
Home
Go Back   Chief Delphi > Technical > Programming
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-2004, 17:12
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Exclamation Analog in on OI: Heads Up!

Heads up: The OI will output 127 for what it perseves as infinate resistance. I'm not sure of the exact threshold, but my theory is that when volts <= 0.1, it outputs 127. But noise (flickers between 0 and 127) goes until about 0.110 or 0.115.

So if, as an example, you wire a potentiometer to p4_aux, when the pot. is all the way down, p4_aux=127. when it's a little higher, p4_aux=0.

also, 127 appears in it's "normal" position (midway 'round). So you can't just put in an if statement.

I hear this is by design. So watch out!
  #2   Spotlight this post!  
Unread 05-02-2004, 17:30
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: Analog in on OI: Heads Up!

Quote:
Originally Posted by Astronouth7303
Heads up: The OI will output 127 for what it perseves as infinate resistance. I'm not sure of the exact threshold, but my theory is that when volts <= 0.1, it outputs 127. But noise (flickers between 0 and 127) goes until about 0.110 or 0.115.

So if, as an example, you wire a potentiometer to p4_aux, when the pot. is all the way down, p4_aux=127. when it's a little higher, p4_aux=0.

also, 127 appears in it's "normal" position (midway 'round). So you can't just put in an if statement.

I hear this is by design. So watch out!
This is by design (so that when you unplug your joystick when the robot is still running, it doesn't start running it's motors full speed backwards).

If you're wiring a pot such that it can pull the analog input on the OI down to less than 0.05 volts (the spec which is stated in the OI documentation from IFI), then that means you have ground connected to the pot. Check the OI reference - this is not the correct way to wire a pot to the OI.

Besides, you already asked this question and I already answered it. Why are you posting this same thing twice?
  #3   Spotlight this post!  
Unread 05-02-2004, 17:39
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Analog in on OI: Heads Up!

A sure sign your posting too much: You forget what you posted already and then post the same thing again.

But thanks on the wiring thing, I'll check that. but our solder boy won't be happy.

Good call, though. I should remember these things.
  #4   Spotlight this post!  
Unread 05-02-2004, 17:40
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Analog in on OI: Heads Up!

Quote:
Originally Posted by Astronouth7303
Heads up: The OI will output 127 for what it perseves as infinate resistance. I'm not sure of the exact threshold, but my theory is that when volts <= 0.1, it outputs 127. But noise (flickers between 0 and 127) goes until about 0.110 or 0.115.

So if, as an example, you wire a potentiometer to p4_aux, when the pot. is all the way down, p4_aux=127. when it's a little higher, p4_aux=0.

also, 127 appears in it's "normal" position (midway 'round). So you can't just put in an if statement.

I hear this is by design. So watch out!
This is designed this way, I asked the people at Innovation First they said when there is 0 volts on the input, the default is 127. We tested ours and voltage level of 0.3 or so will get you 0 for that input less than that voltage and results vary. We are using 15K pots with 560 ohms feeding the ground side of two pots. Ie 7.5 k in series with the 560. Hope this helps.
  #5   Spotlight this post!  
Unread 05-02-2004, 17: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: Analog in on OI: Heads Up!

Quote:
Originally Posted by Biff
We are using 15K pots with 560 ohms feeding the ground side of two pots. Ie 7.5 k in series with the 560. Hope this helps.
You're only allowed to use 100K ohm pots on the OI inputs. Check the OI Reference Guide page 5. There's a good reason for this, and it's related to the the fact that there's a pulldown internally inside the OI (to force the 127 condition when the joystick is unplugged).

It sounds like your setup looks like this:
Code:
 
         15k                   15k
+5v ---/\/\/\/\------+-------/\/\/\/\----- +5v
                    |
                    \
                    /
                    \ 560 ohm
                    /
                    \
                    |
                  Gnd
If this is the case, check the wiring diagram again on Page 5. This isn't the right way to connect to the analog inputs.
  #6   Spotlight this post!  
Unread 05-02-2004, 17:55
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Analog in on OI: Heads Up!

Quote:
Originally Posted by Dave Flowerday
You're only allowed to use 100K ohm pots on the OI inputs. Check the OI Reference Guide page 5. There's a good reason for this, and it's related to the the fact that there's a pulldown internally inside the OI (to force the 127 condition when the joystick is unplugged).

It sounds like your setup looks like this:
Code:
 
         15k                   15k
+5v ---/\/\/\/\------+-------/\/\/\/\----- +5v
                    |
                    \
                    /
                    \ 560 ohm
                    /
                    \
                    |
                  Gnd
If this is the case, check the wiring diagram again on Page 5. This isn't the right way to connect to the analog inputs.
Thanks it's a case of Re RTM
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
Allegro ACS750 Current Sensor 150uF Heads Up Dale(294engr] General Forum 0 04-02-2004 21:14
OI and analog: Zero value Astronouth7303 Programming 1 02-02-2004 16:00
Failing analog inputs? Phasmatis568 Control System 5 22-01-2004 13:28
Bouncing heads.... archiver 2001 2 24-06-2002 00:14
DC Motor current to an Analog Input junkyarddawg Motors 43 04-04-2002 15:53


All times are GMT -5. The time now is 05:59.

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