Go to Post I would rather Andy Baker be at champs than Will.i.am. - Grim Tuesday [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
  #46   Spotlight this post!  
Unread 31-01-2005, 20:46
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Question about controller/joystick method.

I am not sure where you can get a diagram of the serial port, hopefully you will get it, and I am almost certain that you can use an Xbox controller legally.
But USB is digital isnt it... and the serial port is analog.
__________________
- from B B frank


Last edited by AIBob : 31-01-2005 at 21:49. Reason: typi
  #47   Spotlight this post!  
Unread 31-01-2005, 20:49
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Question about controller/joystick method.

Yeah, the digital/analog swith would be enough to steer me towards playstation, but i dunno
__________________
  #48   Spotlight this post!  
Unread 31-01-2005, 21:14
iwearshoes iwearshoes is offline
Registered User
#1648 (Gearbox Ganstas)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta
Posts: 5
iwearshoes is an unknown quantity at this point
Send a message via AIM to iwearshoes
Re: Question about controller/joystick method.

I thought Serial cables were both digital and analog.

If you need it the wiring for USB is as follows:

5V / Red

D+ / Green

D - / White

Ground / Black

Lets say we forget about the pressure sensetive buttons (255 levels of sensitivity to be exact) and just wanted to use them as toggels. I know I can get a driver for it, the only thing I need is a way to wire it to a serial port.

Does anyone know of an adapter or crossover that would work?

I thought about PS2 but everyone knows xbox is superior.

Alright, thanks for the help so far.

(P.S. If you want your game system modified [LEDs, Paint Jobs, other crazy stuff, Preformance Xbox mods, etc.] let me know.)
  #49   Spotlight this post!  
Unread 31-01-2005, 21:21
Billfred's Avatar
Billfred Billfred is online now
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,475
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Question about controller/joystick method.

Search before you post:

http://www.chiefdelphi.com/forums/sh...+controlle rs

But since I'm a nice guy, I'll tell you--unless you are up for some serious hacking and programming, you are not going to get an XBox controller to interface with the 2005 FRC OI to much success. It's mainly because the DB15 (gameport) connector used is rather old-school.

Many others have looked for a way to do it. None have done it yet. Don't take this as bashing--take it as a challenge. (And of course, IFI provides some resources to aid you in your effort.) Every good thing in FIRST has happened because someone wanted to do a particular task a better/cheaper/faster/more interesting way. (Hence we have the kitbot this year!)
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #50   Spotlight this post!  
Unread 31-01-2005, 21:34
iwearshoes iwearshoes is offline
Registered User
#1648 (Gearbox Ganstas)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta
Posts: 5
iwearshoes is an unknown quantity at this point
Send a message via AIM to iwearshoes
Re: Question about controller/joystick method.

Sorry about not searching for the post guys...... I just assumed this was kinda random and not many people would talk about it... oh well....


Well, if anyone knows the wiring schematics of the DB15 than let me know.
__________________
"Caligraphy and Writing is good for the soul"
  #51   Spotlight this post!  
Unread 31-01-2005, 21:38
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Question about controller/joystick method.

Quote:
Originally Posted by iwearshoes
ok, I want to rig an Xbox controller as the main interface for our robot. I have converted them to USB before and have a USB driver and i was wondering if any of you had wiring diragrams of serial ports so i can figure out how to power it and where all the handshakes are. If so please let me know where i can find them. Thank you. Also is it legal to make an xbox controller the interface?
This question comes up at least once every year, and there have been multiple threads about it. No offence, but if you are even asking this question i don't think you should attempt this. You CANNOT directly connect USB stuff to the OI no matter what kind of crazy software you right. This is a hardware restriction and there is no way around it without making a USB to gameport converter. This is not an easy task even for a seasoned hardware developer. USB is an extremely in depth and bulky protocol that is not for the faint of heart. I speak from experience. I have developed USB peripherals in the past. In order to interface with an Xbox controller, you would have to make a device that could act as a USB host. This is far worse than a peripheral. If you absolutely feel you need to to have an Xbox controller then i would rip it apart and see if you can bypass all of the control electronics. I have never opened one up but it probably boils down to mess of switches and potentiometers. If this is the case, you can just hook some wires up to the bottons/axis slap the proper DB15 connector on it and plug it directly into the OI.

BTW yes it is legal
__________________
1139 Alumni
  #52   Spotlight this post!  
Unread 31-01-2005, 22:25
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Question about controller/joystick method.

Quote:
Originally Posted by AIBob
I am not sure where you can get a diagram of the serial port, hopefully you will get it, and I am almost certain that you can use an Xbox controller legally.
But USB is digital isnt it... and the serial port is analog.
The serial port on the OI is not analog. Perhaps you are confusing it with the gameports(joystick imputs) on the OI which are Analog. BTW the serial port on the OI is also unidirectional. It can only recieve information from the robot. It can't transmit anything to the robot.
__________________
1139 Alumni
  #53   Spotlight this post!  
Unread 31-01-2005, 22:33
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Question about controller/joystick method.

Quote:
Originally Posted by Rickertsen2
The serial port on the OI is not analog. Perhaps you are confusing it with the gameports(joystick imputs) on the OI which are Analog. BTW the serial port on the OI is also unidirectional. It can only recieve information from the robot. It can't transmit anything to the robot.
The reason that I would automatically consider the 'Serial Port' as a Joystick by the way they said it, and knowing the serial ports unidirectional. That is why I had said that it is analog, I am sorry for the confusion.
__________________
- from B B frank

  #54   Spotlight this post!  
Unread 31-01-2005, 22:46
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Question about controller/joystick method.

Quote:
Originally Posted by AIBob
The reason that I would automatically consider the 'Serial Port' as a Joystick by the way they said it, and knowing the serial ports unidirectional. That is why I had said that it is analog, I am sorry for the confusion.
Its ait. Don't worry about it.
__________________
1139 Alumni
  #55   Spotlight this post!  
Unread 02-02-2005, 12:34
ElCrazon ElCrazon is offline
Programming Guru
AKA: Rusty
FRC #1538 (The Holy Cows)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 2
ElCrazon is an unknown quantity at this point
Send a message via AIM to ElCrazon
Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)

Well, we're a rookie team and I just wired up a playstation controller to our robot yesterday. It took about an hour and a half once I got the d-sub conectors in the mail. Anyway, it's really cool to drive the robot with.
  #56   Spotlight this post!  
Unread 02-02-2005, 14:02
Bremma's Avatar
Bremma Bremma is offline
That crazy girl
AKA: Heather Selbe
#0404 (Distant Rage)
Team Role: Electrical
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Franklin, VA
Posts: 22
Bremma is on a distinguished road
Send a message via AIM to Bremma Send a message via MSN to Bremma Send a message via Yahoo to Bremma
Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)

I'm trying to figure out how to wire and program a non joystick device for controlling the robot. I'm not sure how many switches we would use, though it will probably be 3 or 4, depending on what exactly we use for/on our arm. Does any know if I need to take any special considerations when deciding where to wire these on a serial port and what pins match up for the different controls on the ports? Any help is appriecated, and if a thread already exists for this, I can't find it, so point me there.
__________________
Yay! New team name! We are now Distant Rage!

Robotics team #404 - Team Not Found
  #57   Spotlight this post!  
Unread 02-02-2005, 14:04
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,763
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: Using non joystick controls with Operator Interface (Hacking Various Controllers)

Quote:
Originally Posted by Bremma
I'm trying to figure out how to wire and program a non joystick device for controlling the robot. I'm not sure how many switches we would use, though it will probably be 3 or 4, depending on what exactly we use for/on our arm. Does any know if I need to take any special considerations when deciding where to wire these on a serial port and what pins match up for the different controls on the ports? Any help is appriecated, and if a thread already exists for this, I can't find it, so point me there.
Heather,
Switches are connected and mapped through the four joystick ports on the OI not the serial port. If you check in the OI manual you will find the pinout for the four ports and the buttons they call in the OI and default software.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #58   Spotlight this post!  
Unread 02-02-2005, 14:17
Bremma's Avatar
Bremma Bremma is offline
That crazy girl
AKA: Heather Selbe
#0404 (Distant Rage)
Team Role: Electrical
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Franklin, VA
Posts: 22
Bremma is on a distinguished road
Send a message via AIM to Bremma Send a message via MSN to Bremma Send a message via Yahoo to Bremma
Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)

OK, so will I need to ground all of my switches on 4 and 12? Or do I just need to connect the ends of the switches to the pins?
__________________
Yay! New team name! We are now Distant Rage!

Robotics team #404 - Team Not Found
  #59   Spotlight this post!  
Unread 02-02-2005, 15:56
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,763
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: Using non joystick controls with Operator Interface (Hacking Various Controllers)

Quote:
Originally Posted by Bremma
OK, so will I need to ground all of my switches on 4 and 12? Or do I just need to connect the ends of the switches to the pins?
In looking at section 4 of the OI manual...
"Digital Inputs (see pinouts on pages 7-10)
To utilize these inputs, wire buttons or switches between the desired digital input signal pin and any ground pin. A digital input senses a connection to ground to become active. Do not connect switches or digital inputs to 5V. Do not use lighted switches."
Any switch will have one side wired to the desired digital input on one of the four ports and the other side of the switch will be wired to either/both pin 4 and/or 12 on any port. If you search you will find a reference that allows you to construct a "y" cable that will connecto two of the ports so that you can have a button box that has more switches than one port can provide. Also note that digital inputs are duplicated on two ports. See port 2 & port 4 pinout tables.
__________________
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
Changing 1 joystick code to 2 (rookie team) Brawler006 Programming 5 20-02-2004 17:00
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
Joystick controllers archiver 2001 6 24-06-2002 00:57
joystick problem archiver 2000 12 23-06-2002 23:08


All times are GMT -5. The time now is 21: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