Go to Post FIRST- its a pandemic in all our schools. - Akash Rastogi [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 14-12-2004, 20:22
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Steering wheel issues

I'm experimenting with a Thrustmaster Formula T2 steering wheel, and the feedback I'm getting in Dashboard (using the default code) is not what I would expect. When the wheel is centered, I get a value of 0 from p1_x. All the way to the left is 255. Turning to the right does nothing. p1_y stays stuck on 0 when I push the pedals. I'm getting the impression that perhaps the wheel has a non-standard pinout, but I'm not entirely sure. I know the wheel works just fine otherwise, because I've tested it with racing games on my computer. Has anybody else had this trouble programming a steering wheel to drive their robot?
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #2   Spotlight this post!  
Unread 14-12-2004, 22:29
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Steering wheel issues

I did a little experimenting with a multimeter, and it looks as though the pinout is standard. It even behaves as a standard joystick in Windows (rather than using the custom driver). I still can't figure why I get no feedback from the pedals, and only in one direction on the wheel when I attach it to the OI.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 14-12-2004, 23:24
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,798
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: Steering wheel issues

Joey,
I was not able to find the pinout for this device but what you describe sounds like the interface is using some of the other +5 volt pins in addition to just pin 1. The OI only feeds +5 on pin 1. I would suspect from your description that there is a second pot for right hand turns and that the pedals are also not getting +5 volts. You will need to check all pins with a multimeter. There are a number of places on the web to obtain gameport pinouts. Use one of those as a starting point. There is also the possibility that this is a MIDI device and as such is incompatible with the OI. Many modern audio cards have MIDI enabled game ports.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #4   Spotlight this post!  
Unread 15-12-2004, 01:42
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Steering wheel issues

Quote:
Originally Posted by Al Skierkiewicz
Joey,
I was not able to find the pinout for this device but what you describe sounds like the interface is using some of the other +5 volt pins in addition to just pin 1. The OI only feeds +5 on pin 1. I would suspect from your description that there is a second pot for right hand turns and that the pedals are also not getting +5 volts. You will need to check all pins with a multimeter. There are a number of places on the web to obtain gameport pinouts. Use one of those as a starting point. There is also the possibility that this is a MIDI device and as such is incompatible with the OI. Many modern audio cards have MIDI enabled game ports.
Al,
I didn't realize that the OI didn't properly set up the other +5 and ground pins. In light of this, since pins 8, 9, and 15 are supposed to be +5, and pin 5 is supposed to be ground, I set Pwm1_green, Pwm1_red, and Pwm2_green high, and Pwm2_red low. This should accurately simulate the appropriate voltages in the wheel. I still only get feedback when turning the wheel to the left. However, I am now getting feedback from the gas pedal. When no pedals are depressed, I get 0. I can ease the gas pedal up over 200, and pressing the brake brings it back down to 0. Pressing the brake by itself does nothing. This seems to be a mirror of what's going on in the wheel. I will be making an adapter to connect pins 5, 8, 9, and 15 appropriately, but this should help me troubleshoot until then. Based on this new info, what's your hypothesis?
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #5   Spotlight this post!  
Unread 15-12-2004, 07:42
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,798
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: Steering wheel issues

Quote:
Originally Posted by jgannon
Al,
I didn't realize that the OI didn't properly set up the other +5 and ground pins. In light of this, since pins 8, 9, and 15 are supposed to be +5, and pin 5 is supposed to be ground, I set Pwm1_green, Pwm1_red, and Pwm2_green high, and Pwm2_red low. This should accurately simulate the appropriate voltages in the wheel. I still only get feedback when turning the wheel to the left. However, I am now getting feedback from the gas pedal. When no pedals are depressed, I get 0. I can ease the gas pedal up over 200, and pressing the brake brings it back down to 0. Pressing the brake by itself does nothing. This seems to be a mirror of what's going on in the wheel. I will be making an adapter to connect pins 5, 8, 9, and 15 appropriately, but this should help me troubleshoot until then. Based on this new info, what's your hypothesis?
I need more input. I am guessing from your description of throttle-brake that they are mechanically interconnected. Pressing the brake when you have not run up the throttle would do nothing. I am more in favor of making an adapter box where the +5 from the OI gets wired over to the four supply pins and the other wires go straight through then to modify the OI porting. A small box, two 15 pin connectors and a little wire should do it. You might also add in a "Y" adapter so that you can get to two joystick inputs on the OI. I am also more inclined to open the wheel and see what's inside than most people so that would be where I would go next.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #6   Spotlight this post!  
Unread 15-12-2004, 10:14
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Steering wheel issues

Quote:
Originally Posted by Al Skierkiewicz
I need more input. I am guessing from your description of throttle-brake that they are mechanically interconnected. Pressing the brake when you have not run up the throttle would do nothing. I am more in favor of making an adapter box where the +5 from the OI gets wired over to the four supply pins and the other wires go straight through then to modify the OI porting. A small box, two 15 pin connectors and a little wire should do it. You might also add in a "Y" adapter so that you can get to two joystick inputs on the OI. I am also more inclined to open the wheel and see what's inside than most people so that would be where I would go next.
There is only one potentiometer inside the wheel. The wiper is connected to +5 (pin 1), and one of the sides is connected to the x-axis (pin 3). Also connected to the wiper is a 12.5k resistor connected to a gray wire, but I haven't been able to determine where that leads to yet. When I test the pedals in Windows, pushing the gas by itself is like pushing a stick towards +y. Pushing the brake by itself is like pushing a stick towards -y. I can't really reach the actual contacts of the two potentiometers inside the pedals, but testing the connector indicates that they get their power from pin 15. I assume that's why they work now that I'm putting +5 to that pin. However, I do indeed plan to build an adapter like you described.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
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
Globe gear box Pat Roche Motors 9 25-05-2004 22:50
Four Wheel, all steering, non-omniwheel, ONE power/motor source drive FizMan Technical Discussion 31 27-04-2004 12:12
how can you use a gyro in autonomous mode magical hands Programming 3 02-01-2004 13:31
need glp programing steering with a steering wheel Matchew Programming 2 10-02-2003 14:20
4 wheel steering/ Crab Huey_Da_X-cat Technical Discussion 3 11-02-2002 22:49


All times are GMT -5. The time now is 04:13.

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