Go to Post Right, play to win. Play to win the event or play to win one match? This year, unfortunately, they are not the same thing. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 02-11-2004, 17:03
663.keith 663.keith is offline
Registered User
FRC #1493 (Falcons)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Whitinsville Massachusetts
Posts: 250
663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all663.keith is a name known to all
Send a message via AIM to 663.keith
usb to db15

for the off season, my team was looking at converting an xbox controller to fit the operator interface. so far we have been unable to find a USB female to db15 male converter (we have found an adapter to get the xbox controller to work on USB). Is there any way to accomplish this?
__________________
http://www.wcsrobotics.com
team 663
team 1493
  #2   Spotlight this post!  
Unread 02-11-2004, 17:25
Billfred's Avatar
Billfred Billfred is offline
...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,547
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: usb to db15

Truth be told, you're going to have a hard time finding a converter to DB15. They (being the DB15 connectors) just aren't that common anymore.

However, the way that an XBox controller is designed, you are definitely looking at two of the gameports on the OI for the one controller (because of the two thumbsticks).

Perhaps it would be a better bet to gut the innards of the controller, and rewire it yourself.
__________________
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

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,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.
  #3   Spotlight this post!  
Unread 02-11-2004, 18:20
Marc P. Marc P. is offline
I fix stuff.
AKA: βetamarc
no team
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Watertown, CT
Posts: 997
Marc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond reputeMarc P. has a reputation beyond repute
Send a message via AIM to Marc P.
Re: usb to db15

It wouldn't be possible to directly use the Xbox controller without some sort of digital to analog converter. I believe a USB connection is a digital signal (4 conductors- +5v, signal+, signal-, ground), while the OI's 15 pin inputs are analog. There has been a bit of discussion around here about using USB joysticks with the OI, and the general consensus seems to be it can't be done using simple connectors, but you can potentially crack open the controller and manually wire the potentiometers and buttons to associated db15 pinouts (as per IFI documentation).

Team 38 did something similar this past season, with a playstation controller. We ended up ripping out the entire thing, building our own board with our own buttons and controls in the PSX controller's shell. It had a few bugs at first, but once everything was securely soldered together, it worked out pretty well.
  #4   Spotlight this post!  
Unread 02-11-2004, 18:33
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: usb to db15

I had an idea as to how this could be done with USB. It involves writing a driver for a laptop.

You need the laptop to interpret the USB signals from the gamepad and run the driver for the gamepad. Then you send a data stream to a microcontroller. The microcontroller uses it's digital and analog outputs to output to the joystick inputs on the Operator Interface.

Very complicated. You would definitely get major props for creating this and bonus points for a white paper.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #5   Spotlight this post!  
Unread 02-11-2004, 18:41
Kyle Fenton Kyle Fenton is offline
GET IT ON!!
FRC #0121 (Rhode Warrior)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 2000
Location: Middletown, R.I.
Posts: 785
Kyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud of
Send a message via AIM to Kyle Fenton
Re: usb to db15

I have seen controllers like this but involved cutting off the connecter at the end and doing some weird wire mapping. But I am guessing that you don't want to do that. There is a possibility of building your own converter, but you would have to know the pin-out of the x-box controller.
__________________
121
Rhode Warriors
NAVSEA/Raytheon/URI/Middletown, Portsmouth, Tiverton, Mt. Hope HS
Quality Robots Since 1996
  #6   Spotlight this post!  
Unread 02-11-2004, 18:47
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: usb to db15

You may be interested in this thread here:
http://www.chiefdelphi.com/forums/showthread.php?t=22845&highlight=sega+genesis+cont roller

And this photo: http://www.chiefdelphi.com/forums/pictures.php?s=&action=single&picid=5818&direction =DESC&sort=date&perrow=5&trows=5&quiet=Verbose

And the accompanying discussion about that photo here:
http://www.chiefdelphi.com/forums/sh...threadid=22852
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #7   Spotlight this post!  
Unread 02-11-2004, 19:19
aaronbr28040's Avatar
aaronbr28040 aaronbr28040 is offline
Registered User
AKA: Aaron Bradshaw
#0900 (Team Infinity)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Raleigh, NC
Posts: 135
aaronbr28040 is just really niceaaronbr28040 is just really niceaaronbr28040 is just really niceaaronbr28040 is just really nice
Send a message via AIM to aaronbr28040
Re: usb to db15

There was an article on the Parallax website on how to use a playstation controller to control a basic stamp robot. I have a modified version of the basic code that i found online for the project somewhere. It might be easier to use a playstation controller as there is a ton of information available on them and there is already pbasic code written for it. I found out about this in a Nuts and Volts article and was planning on doing a project with it my senior year in high school but ended up working on FIRST stuff the entire time.
-Aaron
__________________
@North Carolina State University
Team 900
North Carolina School of Science and Mathematics
AIM:aaronbr28040

  #8   Spotlight this post!  
Unread 02-11-2004, 20:29
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: usb to db15

Quote:
Originally Posted by 663.keith
for the off season, my team was looking at converting an xbox controller to fit the operator interface. so far we have been unable to find a USB female to db15 male converter (we have found an adapter to get the xbox controller to work on USB). Is there any way to accomplish this?
What everyone else said is correct. USB consists of GND, +5v-ish, Tx, and Rx. I'm pretty sure that most modern game controlers use serial in some way (and seeing the size of the Xbox to USB converters, I'm sure it's just wiring).

However, the DB15 Gameport (which the OI ports are based on) has 4 analog channels, 4 digital ones, 2 +5v and 2 Gnd (or +5v, gnd, MIDI Tx, and MIDI Rx). It was originally based on a 2 stick design (XY and 2 buttons each).

Of course, the IFI has modified this a little for the purposes of the OI.

It isn't impossible, but it does make it more difficult.
  #9   Spotlight this post!  
Unread 02-11-2004, 21: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,792
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: usb to db15

I would like to remind everyone that USB requires two way communication. The device needs to exhibit a serial name in addition to the serial data so it can be identified by the host and know when it is sending (or ready to send) data. There is also a requirement to have some interpretor in the host device that will issue and receive data packets from the USB device. That is a lot of work just to use a USB joystick. I know that Innonvation First is working on the problem of fewer gameport joysticks being available but when we first asked the question, they thought that the USB took too much to implement. They were continuing to watch the problem
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #10   Spotlight this post!  
Unread 03-11-2004, 11:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: usb to db15

I suppose the easiest (cheapest) implementation might be a variation of Mike's solution above. Use that USB-to-serial converter more and more team have to buy for their new laptops, and couple it to the serial port on an old EDU controller (or for example a PIC) with a program to interpret the XBox control commands and output via the analog and digital outputs on the EDU to the db15 gameport on the OI.

The use of a microprocessor driving the gameport will probably be against the rules though, but it would open up a lot of interesting control possibilities!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-11-2004 at 12:48. Reason: typo
  #11   Spotlight this post!  
Unread 03-11-2004, 11:57
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: usb to db15

Quote:
Originally Posted by Mark McLeod
Use that USB-to-serial converter more and more team have to buy for their new laptops, and couple it to the serial port on an old EDU controller (or for example a PIC) with a program to interpret the XBox control commands and output via the analog and digital outputs on the EDU to the db15 gameport on the OI.
Unfortunately even that won't work. USB devices (such as USB-to-serial converter as well as the Xbox controller) need a USB host to communicate with - it is not possible for two USB client devices to communicate directly with each other. You'd need a microprocessor of some kind (one capable of acting as a host, which most smaller microcontrollers aren't) sitting in between the USB-to-serial and the Xbox controller.
  #12   Spotlight this post!  
Unread 03-11-2004, 12:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: usb to db15

Quote:
Originally Posted by Dave Flowerday
Unfortunately even that won't work. USB devices (such as USB-to-serial converter as well as the Xbox controller) need a USB host to communicate with ...
So it sounds like a laptop has to get thrown into that mix anyway.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #13   Spotlight this post!  
Unread 03-11-2004, 12:09
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: usb to db15

Quote:
Originally Posted by MikeDubreuil
I had an idea as to how this could be done with USB. It involves writing a driver for a laptop.

You need the laptop to interpret the USB signals from the gamepad and run the driver for the gamepad. Then you send a data stream to a microcontroller. The microcontroller uses it's digital and analog outputs to output to the joystick inputs on the Operator Interface.

Very complicated. You would definitely get major props for creating this and bonus points for a white paper.
And going by the rules FIRST has set for as long as I can remember, this is effectively illegal, because you have some sort of computer controlling the robot, besides the RC. This idea, while neat, is overly complicated and completely illegal for use during a FIRST competition, and honestly, I think it's a lot easier to rewire a joystick if that's the only joystick you can use.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #14   Spotlight this post!  
Unread 03-11-2004, 22:39
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Re: usb to db15

Quote:
Originally Posted by Ian W.
And going by the rules FIRST has set for as long as I can remember, this is effectively illegal, because you have some sort of computer controlling the robot, besides the RC. This idea, while neat, is overly complicated and completely illegal for use during a FIRST competition, and honestly, I think it's a lot easier to rewire a joystick if that's the only joystick you can use.
This was my assumption as well. We were considering creating a Playstation controller drive system (just for fun) but decided that, even if we did (which I believe we probably will in the upcoming month or two), it would be illegal if it went through a PC.

The alternative to PC control, which I do believe is allowed, would be to create the interpreter using digital circuitry, transistors, and/or logic gates. For the most part, the circuit can be done simply through basic logic although a microcontroller may be necessary to communicate with certain serial-type controllers (PSX included). For more info on how console controllers communicate (systems from NES to N64 - not only Nintendo! ) check out http://www.arcadecontrols.com/Mirror...pro/index.html and http://www.gamesx.com/controldata/psxcont/psxcont.htm. Following instructions on their site, and one other, I was able to create a PSX->Parallel interface and simple driver which could be easily converted to work with separate circuitry rather than a computer.

Feel free to PM me if you have any more questions. I'll be sure to post a thread and pictures as soon as our team gets working on the controller project in the next weeks.

**EDIT
Now that I think about it, I seem to be having a Déja-vu about this topic. I think I may have posted this same information last year (or possibly the year before). I'm too lazy to search right now but if anyone wants to, feel free.
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic

Last edited by Adam Shapiro : 03-11-2004 at 22:47.
  #15   Spotlight this post!  
Unread 03-11-2004, 23:21
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: usb to db15

In any case, be VERY careful about using anything that could be considered a computer in your controls. Unless you can hook everything up with wires, resistors, capacitors, etc, anything simple and that doesn't have logic in it, you'll almost definitely be safe, because it's not a computer. But if you're doing any sort of programming, don't count on that control system being legal in FIRST.

As always, don't take anything said here for 100% truth, you'll all have to do your own research, but that won't happen tilll January. If you want to prototype now, great, but just don't put all your eggs in one basket.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
Using USB with Serial Tower Mick Lego Mindstorm Discussion 11 07-11-2006 09:54
USB to Serial -- Working Device Found! Eko Programming 10 23-02-2004 12:56
USB to 9-pin serial port (HELP!!) n00b Technical Discussion 10 01-02-2004 21:25
Connecting USB webcam to pbasic stamp? JasonStern Programming 15 14-02-2003 23:45
DB15, Male 15 pin connector. AdamT Technical Discussion 8 06-02-2002 17:17


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

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