Go to Post And then, at the end of the match, the drive teams who are being lifted all say at once (in a GOVERNATOR voice)- "GET TO ZE CHOPPER!!!" - Graham Donaldson [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 21-06-2006, 19:55
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Voltage-to-resistance converter for using any joysticks

On maxim/dallas semiconductors website, in one of the app notes, they posted a design for a simple voltage to resistance converter, that doesnt use a pic or other microprocessor like what would normally be used.
http://www.maxim-ic.com/appnotes.cfm...te_number/3284

I think that that would suit our needs pretty well, and maxim stocks a 8-bit up/down digi-pot, the max 5455 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2568 would work, and sparkfun electronics had a cheap breakout board so you can avoid having to make your own board for the tssop 14 package. http://www.sparkfun.com/commerce/pro...roducts_id=498

that would allow us to input an analog voltage from whatever source we want.

I would imagine that you could possibly come up with something using an op-amp and a few FETs to convert voltage to resistance also.

Any thoughts to the legality of this? I don't think they could have an issue with this, like they would have with putting a PIC or other micro controller into a joystick.
__________________
2005 Philly #1 seeded team, highest average points, and semi-finalists
Thanks to 103 and 484 for being alliance mates.
  #2   Spotlight this post!  
Unread 21-06-2006, 21:03
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Jonathon,
If you are thinking of an electronic replacement for a joystick, the OI is already making the conversion. Remember that the joystick resistance is in series with the 5 volt supply and another resistor inside the OI. As the joystick resistance changes, the input voltage changes across the internal resistor. That is what is digitized by the input A/D convertor.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 21-06-2006, 23:11
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Al Skierkiewicz
Jonathon,
If you are thinking of an electronic replacement for a joystick, the OI is already making the conversion. Remember that the joystick resistance is in series with the 5 volt supply and another resistor inside the OI. As the joystick resistance changes, the input voltage changes across the internal resistor. That is what is digitized by the input A/D convertor.
Ahhh sorry, I didn't make it clear, I meant to use that circuit so you can use joysticks with non-100k pots in them (there are issues with using pots that aren't 100k, correct?)
Though, now that you mention the architecture of the internal circuitry, you could just get away with an op-amp with enough output current so that the pull-down resistor doesn't affect the voltage to the ADC.
cool
__________________
2005 Philly #1 seeded team, highest average points, and semi-finalists
Thanks to 103 and 484 for being alliance mates.
  #4   Spotlight this post!  
Unread 14-07-2006, 11:23
Schmitty!'s Avatar
Schmitty! Schmitty! is offline
Ever issue is an opportunity to...
AKA: Mike Schmitt
FRC #0093 (N.E.W. Apple Corps)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Appleton WI
Posts: 7
Schmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to beholdSchmitty! is a splendid one to behold
Re: Voltage-to-resistance converter for using any joysticks

I believe the interface is a little more complex than just measuring a voltage. I believe it's trying to measure an impedance (not just a resistance). The OI inputs use a multiplexed sample-and-hold circuit to measure the impedance.

There is a current sink internally on the OI that sinks a known current from whatever is connected to the OI input. At some point in time later it samples the voltage present on the input. Based on the measured voltage it assigns an appropriate 0-255 value. This method also allows the OI to determine if the input is an 'open' and for safety reasons assigns an 'open' measurement to a value of 127. This is also the reason why if you drive the input lower than 50mV it will register it as a reading of 127.

The resistance range of 0 to 100KOhms is what is typical for these inputs and I believe this is an industry standard for most remote control inputs. So if you use a non-standard value such as a 10K resistor you will only be able to use a small portion of the total range.

I saw a presentation at one time explaining how this standard interface operates, but I haven't been able to find it lately. If someone can find this, I think it would be very beneficial for anybody trying to use non-standard inputs on the OI.

I also contacted IFI last year about more details about this interface and the only response I got was that we should only use 100K pots. We are responsible for any other items we attach to these inputs.
  #5   Spotlight this post!  
Unread 14-07-2006, 11:53
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Schmitty!
...
I also contacted IFI last year about more details about this interface and the only response I got was that we should only use 100K pots. We are responsible for any other items we attach to these inputs.
I thought that only 100K pots were legal per FIRST rules. Am I mistaken?

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #6   Spotlight this post!  
Unread 14-07-2006, 12:02
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

For what it's worth. We use Logitech Dual Action game pads, which have 10K pots. We clamp the "free" end of the pot to ground and the OI interprets that voltage divider in a range from 44 to 210, which we correct in software to get a range from 0 to 254. We've done this for three years and haven't fried anything yet.
  #7   Spotlight this post!  
Unread 14-07-2006, 12:54
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by ConKbot of Doom
Ahhh sorry, I didn't make it clear, I meant to use that circuit so you can use joysticks with non-100k pots in them (there are issues with using pots that aren't 100k, correct?)
Though, now that you mention the architecture of the internal circuitry, you could just get away with an op-amp with enough output current so that the pull-down resistor doesn't affect the voltage to the ADC.
cool
Actually, the OI is looking for a resistance, rather than a voltage, at its inputs. The conversion is made using a simple RC circuit. Capacitance being a constant inside the OI, the time (and this is what's actually read by the OI) it will take for this circuit to reach a certain threshold level (charge/discharge) will be proportional to the resistance that can be changed with joystick movement.
That's why the 100k value is so important, to achieve full scale (see Jack Jones' above post for an example).

That's the concept used, but I'm not sure how it really is implemented inside the OI. Someone willing to void their warranty and snap some pictures?

For reference, the PC game port implementation can be found here and an implementation using an Atmel microprocessor (which I assume is similar to what is done inside the OI) can be found here , courtesy of Larry Barello, mentor of FRC team 492.
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #8   Spotlight this post!  
Unread 14-07-2006, 13:07
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Joe Johnson
I thought that only 100K pots were legal per FIRST rules. Am I mistaken?

Joe J.
That was a rule several years ago (when we were only allowed to use the kit parts, the items from the Small Parts catalogue, or specific additional hardware from FIRST's list). Now, the additional electronics are basically limited to components under $200 (USD) each.
  #9   Spotlight this post!  
Unread 14-07-2006, 14:10
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Tristan Lall
That was a rule several years ago (when we were only allowed to use the kit parts, the items from the Small Parts catalogue, or specific additional hardware from FIRST's list). Now, the additional electronics are basically limited to components under $200 (USD) each.
Really? Teams could have hooked up a PDA to th port for example (assuming it was less than $200US)? Interesting.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #10   Spotlight this post!  
Unread 14-07-2006, 14:11
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Wow,
This is an old issue. The input to the OI is a simple voltage divider where one side of a joystick pot is connected to 5 volts and the wiper is in series with a resistor in the OI. (The other terminal is not connected) As the joystick varies so to does the voltage inside the OI. The A/D convertor is scaled for this value (100K) to produce the 256 steps. The important thing to remember is that OI operation demands a return to zero (PWM=127) if the joystick should get pulled out by accident. This is the failsafe. The rule about the 100K is to insure that the joystick input tracks from joystick to joystick and allows the correct sensing in the event of a joystick failure. It is conceivable that a small value pot could be interpreted as an open joystick. As Jack has dicussed above, a change in value disrupts the A/D conversion and at the very least, does not give the maximum control/resolution that a 100K pot will give.

The common misconception of the RC circuit comes from many years ago, the robot controller (pre IFI) used the Basic Stamp. The Basic Stamp device does use the RC process to read pot values. Hence the confusion.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #11   Spotlight this post!  
Unread 14-07-2006, 14:24
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Joe Johnson
Really? Teams could have hooked up a PDA to th port for example (assuming it was less than $200US)? Interesting.

Joe J.
Yes. I've seen at least one team with a PC on board. (Bought in several sub-$200 parts, then assembled by the team.)

Edit: I thought that was referring to the robot (e.g. through the program port). A PDA may not send information to the OI.

Further to my previous post, the present 100 KΩ limit on joystick ports isn't a rule, it's a just hardware specification for the joystick port (to get the right voltage levels). Previously, control system components (e.g. the OI, joysticks and accessories) were covered by the additional hardware list. Taking 2000 as an example, the KOP included a 100 KΩ potentiometer, Small Parts doesn't sell potentiometers, and there was no entry for a potentiometer in the AHL. Therefore teams were effectively limited to 100 KΩ potentiometers.

Last edited by Tristan Lall : 14-07-2006 at 14:45.
  #12   Spotlight this post!  
Unread 14-07-2006, 14:35
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Joe Johnson
Really? Teams could have hooked up a PDA to th port for example (assuming it was less than $200US)? Interesting.

Joe J.
If by "the port" you mean the joystick port, then NO - portable computing devices may not be connected to the joys - nor may any device that doesn't draw its power from the port.

A PDA may be connected to the RS232 on the OI for "the purpose of displaying feedback."

Last edited by Jack Jones : 14-07-2006 at 14:39.
  #13   Spotlight this post!  
Unread 14-07-2006, 14:40
Cody Carey's Avatar
Cody Carey Cody Carey is offline
,':-)
AKA: C. Carey
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry, PA
Posts: 1,137
Cody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond repute
Send a message via AIM to Cody Carey Send a message via Yahoo to Cody Carey
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Joe Johnson
Really? Teams could have hooked up a PDA to th port for example (assuming it was less than $200US)? Interesting.

Joe J.

I don't believe so... not to the joystick port anyway. You could connect it to the OI for a dashboard program, however.

Basically it just broadens the range of controllers/joysticks you are allowed to use.


EDIT: ^ Beat me to it. Darn you youtube, with your sidetracking...
__________________
  #14   Spotlight this post!  
Unread 14-07-2006, 15:29
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Quote:
Originally Posted by Al Skierkiewicz
Wow,
... As Jack has dicussed above, a change in value disrupts the A/D conversion and at the very least, does not give the maximum control/resolution that a 100K pot will give.

...
I somewhat disagree. It would appear that giving it 83 either side of 127 only uses 65% of the resolution, but the power curve isn't linear, it's quadratic. A PWM value of +-83 applies 90% power. We simply max that out to 100%. So, we're using full range of the stick to control the first 90%, which IMO gives us more resolution where we really need it.

Last edited by Jack Jones : 14-07-2006 at 15:32.
  #15   Spotlight this post!  
Unread 15-07-2006, 12:13
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Voltage-to-resistance converter for using any joysticks

Jack,
When I am thinking of what takes place (pot to input to A/D to software) I look at what most accurately translates hand motion on the joystick to movement. I am stuck in the mindset of audio and video where the smoothest transitions for audio mixing or video shading take place when the operator has the ability to use the maximum travel over a fixed distance. In the majority of the high end audio consoles fader travel is over 100mm. This translates to the approximate actuating distance of the average human hand/fingers without strain or cramping. Dividing the full range of the A/D (256 steps) over that 100mm gives a step change of 0.39mm/value change. What you do with that range in software is up to the user but I think it gives the max range for accuracy at the A/D. We all know that the cheap pots in any given joystick do not travel the full 100K (+/-50k) so either calibrating the speed controlers or using software to approximate the full travel is essential I know we modify range and acceleration with software for all input regardless of the device that is connected. BTW, I still find teams that do not calibrate controllers in the absence of calibration elsewhere in their system. It must be hard for those drivers to try and compensate for the lack of range in their interface.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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
have any teams had any luck approaching local malls for spaces to practice? amos229 General Forum 28 07-01-2006 10:30
USB to Serial converter for controller Ryan Collings Programming 10 22-01-2005 13:14
Any problems using SKINNY 32 pitch gears... Salik Syed Technical Discussion 3 05-11-2004 17:20
Is any team using the gyro chip? Ragin_Kage Kit & Additional Hardware 4 10-04-2002 12:11
Voltage Byte -> True Voltage Ulibrium Technical Discussion 11 01-03-2002 08:55


All times are GMT -5. The time now is 14:57.

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