|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
We are having a slight problem with our linear slide potentiometers.
They are 50K ohms and have about ~8 cm of linear motion. When connected to a multimeter monitoring resistance, we see the range of resistance go from approximately 0 to just over 50K ohms. However, when connected to the Port 2 of the OI, viewing the value on the dashboard gives us a range from 255 to 0 for only 6 cm of the sliding range; the remaining 2 cm show a value on the dashboard as 0. 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 to the appropriate analog signal pin (sorry, I forget which pin exactly) Any ideas why we are loosing 25% (2cm/8cm) of our motion? The multimeter picks up the full range, so why cant the OI? Any help will be much appreciated. Thanks! NOTE: We have a spare pot which we will try this evening, but what confuses me is that nothing is wrong with this pot seeing as the multimeter detects a full range of resistance change, so I don’t think trying another one will work….but we’ll give it a shot anyway. |
|
#2
|
|||||
|
|||||
|
Re: Limited OI Range From Linear Slide Potentiometers
You say they're 50k ohms; I think the OI wants 100k ohm pots. I'm not an electrical guru, but I think you can put a resistor in the circuit to make them move into the range you want.
Just wait a minute; I'm pretty sure someone who knows more than I do will post. JBot |
|
#3
|
|||
|
|||
|
Re: Limited OI Range From Linear Slide Potentiometers
Yes, for them to work with the RC, they should be 100k
Last edited by tdlrali : 05-02-2007 at 09:52. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
||||
|
||||
|
Re: Limited OI Range From Linear Slide Potentiometers
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.
|
|
#6
|
|||
|
|||
|
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! ![]() |
|
#7
|
||||
|
||||
|
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:
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. |
|
#8
|
|||||
|
|||||
|
Re: Limited OI Range From Linear Slide Potentiometers
The OI doesn't want to see a voltage. It wants to see a variable resistance. You're "tricking" it by using a potentiometer, and you aren't quite tricking it enough. I think you could get it to work better by adding a 22k resistor between the low end of the pot and ground, but that still won't be using the OI input the way it is designed.
Try making the OI a little happier by connecting one end of the 50k pot to +5 through a 22k resistor, connecting the wiper to the joystick input pin, and leaving the other end of the pot open. |
|
#9
|
|||
|
|||
|
Re: Limited OI Range From Linear Slide Potentiometers
Mr. Pierce, we tried disconnecting the ground as well, and got the exact same range of data from the OI. (0-255, but from 80% motion of pot)
Mr. Anderson, what is the "low end" of the pot?, what is the "wiper"?, sorry about my lack of terminology. Why a 22K resistor, why not say, a 50K?Thanks for your help! ![]() |
|
#10
|
|||||
|
|||||
|
Re: Limited OI Range From Linear Slide Potentiometers
When I said "low end", I meant the end of the pot that you had connected to ground (as opposed to the "high end" which you had connected to +5).
The "wiper" is the traveling contact inside the pot that sees a different resistance to the ends of the pot based on its position. I think you called its pin the "signal". I suggested 22k ohms because that way your total resistance will change between about 22k and 72k, with center being approximately 50k. The standard 100k joystick pot also has the center being approximately 50k. You will seea limited range of values being read by the OI, from about 60-190 instead of 0-254, but you should get usable values from the full range of travel on the slider. |
|
#11
|
|||
|
|||
|
Re: Limited OI Range From Linear Slide Potentiometers
Mr. Anderson, Thanks very much for the explanation, it makes things a lot clearer
. We will definitely try this out tonight. |
|
#12
|
||||
|
||||
|
Re: Limited OI Range From Linear Slide Potentiometers
Quote:
Of course this will approximately center the pot's range in the reported A/D value range, it does so at the expense of cutting the resolution in half. I'm not certain that this was clear in your origional post. I do agree that it is an entirely practical and workable solution, but if one is concerned with being able to generate a full range of values, then one end of the pot needs to be lifted with a series resistor to accomplish that goal. Thanks, |
|
#13
|
|||
|
|||
|
Dave,
Thank you very much for your insight! We added a ~1.5K resistor to our 10K pots, and they work a lot better now. (full range of motion w/ full range of values). We discovered yesterday that our slider was actually not linear, it was logarithmic. (WARING: If your buying from a "surplus" store, make sure you are buying a linear one (you can check with a multimeter)). We found another one @ mouser, so that should be ok. Thanks for all the help from everyone! ![]() |
|
#14
|
||||
|
||||
|
Re: Limited OI Range From Linear Slide Potentiometers
Quote:
Read paragraph 3 of page 5 of this document to understand what is happening. Regards, Mike |
|
#15
|
||||
|
||||
|
Re: Limited OI Range From Linear Slide Potentiometers
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |