Go to Post just flat out, full force, take no prisoners driving - spears312 [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 05-03-2007, 10:35
Total Meltdown Total Meltdown is offline
Programming Mentor
AKA: Sean Edwards
FRC #0172 (Northern Force)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2002
Location: Maine
Posts: 21
Total Meltdown is an unknown quantity at this point
Send a message via AIM to Total Meltdown Send a message via Yahoo to Total Meltdown
Question USB Specification (Don't hit me!)

I just had a really freaky idea.

Suppose, using a few of the digital IO ports on the robot controller, one was able to implement the USB specification, which is outlined at http://en.wikipedia.org/wiki/USB#Technical_details and written in detail at http://www.usb.org/developers/docs/

Besides being wicked cool, it may serve as an interesting method for new input devices (imagine dead-reckoning with a mouse?)

As far as I know, a USB port would only take up 4 DigIO ports, so if you were to add a non-powered USB Hub in there you could have... man, that would just be cool.

Just throwing ideas out there. What do you guys think? Doable on the hardware provided, or would the requirements be too large?
  #2   Spotlight this post!  
Unread 05-03-2007, 10:43
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: USB Specification (Don't hit me!)

The USB interface is too fast to be processed using digital IO pins on the RC. The USB chicklet is a good basis for what you want to do, but you need the chicklet software to be able to expand its capabilities.
  #3   Spotlight this post!  
Unread 05-03-2007, 10:51
Total Meltdown Total Meltdown is offline
Programming Mentor
AKA: Sean Edwards
FRC #0172 (Northern Force)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2002
Location: Maine
Posts: 21
Total Meltdown is an unknown quantity at this point
Send a message via AIM to Total Meltdown Send a message via Yahoo to Total Meltdown
Re: USB Specification (Don't hit me!)

Hmm... Well, for one, I actually wanted to just be able to say I did something so random, and for two, I actually wanted to have the USB port on the Robot controller, rather than on the OI. Specifically for the sake of using a) using a webcam, or b) using two mice for dead-reckoning.

Practical purpose? Perhaps not, but you gotta admit, it'd be pretty awesome just to say you did

What about interrupts? Those are polled in the fast loop, are they not?
  #4   Spotlight this post!  
Unread 05-03-2007, 14:20
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: USB Specification (Don't hit me!)

What about using an outboard processor from the PIC18F4550 family. It includes the much of the USB h/w needed. Use a Tx/Rx bus between the two processors either the standard 232 ttl port or using digital pins.
  #5   Spotlight this post!  
Unread 05-03-2007, 14:29
buddy.smith buddy.smith is offline
Master Control
FRC #1795
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: atlanta
Posts: 20
buddy.smith is an unknown quantity at this point
Re: USB Specification (Don't hit me!)

Quote:
Originally Posted by Total Meltdown View Post
I just had a really freaky idea.

Suppose, using a few of the digital IO ports on the robot controller, one was able to implement the USB specification, which is outlined at http://en.wikipedia.org/wiki/USB#Technical_details and written in detail at http://www.usb.org/developers/docs/
Well, USB has a "device" and a "host". Making a "device" is easy, but still non-trivial without hardware support. To plug in a mouse though, you'd need a host. This is NOT trivial, and is in fact quite hard.

The USB chicklet is a host. So no, you can't bit bang a USB port from the RC. Nice try though

It'd be better to take those mice apart and use the pieces.

ttyl,

--buddy
  #6   Spotlight this post!  
Unread 05-03-2007, 15:01
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: USB Specification (Don't hit me!)

The suggestion to disassemble the mouse and tap the output from the CCD chip or the bridge chip is a good one. Also, you could put a computer onboard and use its USB ports to talk to the mouse, and its other ports (e.g. serial) to talk to the RC.
  #7   Spotlight this post!  
Unread 05-03-2007, 21:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: USB Specification (Don't hit me!)

Quote:
Originally Posted by buddy.smith View Post
...It'd be better to take those mice apart and use the pieces.
Indeed. We did exactly that a couple of years ago, bypassing the USB device hardware and achieving direct communication with an optical mouse's sensor chip. (We had some success in using that communication to track how much carpet was going by the sensor, as long as the height above the carpet was absolutely constant. The slightest variation -- a millimeter one way or the other -- changed the pixel-to-distance relationship, and threw off the tracking accuracy to the point where it was no longer useful. We gave up on the concept, but perhaps someone else can come up with a solution that we didn't think of.)
  #8   Spotlight this post!  
Unread 05-03-2007, 21:59
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 454
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: USB Specification (Don't hit me!)

The Chicklet does support a mouse and can connected to the R/C. The mouse outputs on the x and y axes. These axes could be connected to the R/C analog ports. You will only get .5 to 5 volts but that is enough to do what you are asking. What you need and what will be available shortly is the USBeak. The USBeak is an HID to RS232 converter. In streams the raw data from the device into any USART. Unfortunately it won't be available until after this season.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
  #9   Spotlight this post!  
Unread 07-03-2007, 20:26
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: USB Specification (Don't hit me!)

I was looking up parts for an unrelated project and cam across MAX3421. It's a USB controller that can act as a host. I didn't really read it in detail, but the datasheet specifically mentions using bit banging methods for its SPI interface. It's effectively a USB to SPI adapter. I have a feeling that the software will still be a challenge though.

I think it said that it only comes in QFN though (surface mount with pads on the bottom rather than leads). It might be hard to work with.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
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
Gameport to Usb cable vrs. Usb Chicklet haywirerobotics Control System 4 25-01-2007 19:03
Specification for timing belt pulley on large CIM? Larry Barello Motors 10 15-01-2006 12:21
Offical:2006 FIRST Robotics Competition Kit of Parts Specification Sheets Conor Ryan General Forum 0 08-01-2006 21:47
Don't Do What Seanny Don't Does Mike Iantorno General Forum 38 05-02-2003 23:56
And then it hit me.... Joe Johnson General Forum 12 07-02-2002 22:29


All times are GMT -5. The time now is 19:35.

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