Go to Post ...FIRST was created to change that world for the better. To presume that FIRST is simply here for your enjoyment is to demote it to nothing more than an expensive game... - RogerR [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 19-01-2008, 14:00
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Those pesky mice...

This year knowing where you are would be muy importante. Thus, our team has kind of decided to use optical mice, two of them, to determine position and direction. After doing some searching I have cleared up some of my questions but I still have two:

1) Does anyone have a brand they might recommend and a way to (semi) easily wire both mice to the Robot Controller? (e.g. a converter)

2) If not, with a recommended brand could you include specs on the wires so I could (hopefully) do it myself?

Thanks.
  #2   Spotlight this post!  
Unread 19-01-2008, 14:04
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,787
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Those pesky mice...

Quote:
Originally Posted by Altainia View Post
This year knowing where you are would be muy importante. Thus, our team has kind of decided to use optical mice, two of them, to determine position and direction. After doing some searching I have cleared up some of my questions but I still have two:

1) Does anyone have a brand they might recommend and a way to (semi) easily wire both mice to the Robot Controller? (e.g. a converter)

2) If not, with a recommended brand could you include specs on the wires so I could (hopefully) do it myself?

Thanks.
The Chiklet is the only legal way to do a USB conversion to the controller ports. It does need its own power, though.

Barring that, you would need to wire your own connection.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 19-01-2008, 14:44
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Those pesky mice...

I think he means to mount the mice on the robot; in such a case the chiklet/etc restrictions would not apply.

I can't help with the mouse interface though. But, do keep in mind that it is essentially dead reckoning, so errors are cumulative and significant (meaning important).

Don
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 19-01-2008, 15:10
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Re: Those pesky mice...

Quote:
Originally Posted by Don Rotolo View Post
I think he means to mount the mice on the robot; in such a case the chiklet/etc restrictions would not apply.
Yes, that is what I mean. I realize we cannot use the chicklet, though. However, by searching these forums I get the distinct impression teams from past years have managed to do what we plan to do. Looking at diagrams is helping me some but to anyone with experience doing this... Please help!
  #5   Spotlight this post!  
Unread 19-01-2008, 15:16
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: Those pesky mice...

Using mice is what robot enthusiasts have tried in the SRS robotic groups. I have heard of one person doing that with small robots. My concern for these fast moving robots is that you would go faster than the mice could record and keep up with.
__________________
Doug Leppard
  #6   Spotlight this post!  
Unread 19-01-2008, 15:45
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Re: Those pesky mice...

Quote:
Originally Posted by Doug Leppard View Post
My concern for these fast moving robots is that you would go faster than the mice could record and keep up with.
That's where the whole "we kind of decided it" comes into play... Really it was me and an engineering mentor. Our head and secondary engineers are currently gone on a scout camp out, so I haven't talked to them about our maximum speed. But really, I've got to start pursuing this now because if it does work it'll be great and if it doesn't I've got to learn how to use the quad optical encoders and gyroscope in unison...

Speaking of which, I've found a diagram I can use to wire a USB optical mouse myself. Unfortunately, I need to know what D+ and D- correspond to. I'm guessing one means data in and the other data out, but which way? (As in does D+ mean data going into the mouse or into the microcontroller?) Here's the diagram, courtesy of Wikipedia.
Attached Thumbnails
Click image for larger version

Name:	700px-USB.svg.png
Views:	62
Size:	23.5 KB
ID:	6066  
  #7   Spotlight this post!  
Unread 19-01-2008, 15:48
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Those pesky mice...

No, USB uses two wires for data, so they are both carrying the same signals exactly, except one is inverted from the other. Google "Differential Signaling"
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 19-01-2008, 15:59
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Re: Those pesky mice...

...
Ah.
Because I so would've got that if left to my own devices, because of course that makes sense that D+ and D- would mean Differential Signaling.
...
That's why I stick to computers. And because I would've never been able to find that out on my own, Arigato, Don Rotolo.

Next question...

Is there any way to do the whole Differential Signaling before going to the RC? Because if I do my math correctly, 3 pins do not equal 4 wires.
  #9   Spotlight this post!  
Unread 19-01-2008, 16:03
Binome's Avatar
Binome Binome is offline
Programmer/Electronics/CAD
AKA: Patrick
FRC #2273 (SHIM)
Team Role: Leadership
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Surrey,BC
Posts: 105
Binome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of light
Re: Those pesky mice...

Your definitly up for a challenge, if you want to use a USB mouse as a position sensor.

You are going to most definitly need an external co-processor, with a USB host chip, and appropriate firmware to decode the HID stream from the mouse to something the RC can understand, like a simple TTL serial stream.

If you can get a hold of some ps/2 mice, it can make your job MUCH easier, and you can easily decode ps/2.

Good luck!
  #10   Spotlight this post!  
Unread 19-01-2008, 16:18
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Those pesky mice...

I agree: USB is not as simple as connecting it to the robot controller and decoding data. There is a LOT more in there...

I suggest some web searches, see if anyone else has done it.

Don
__________________

I am N2IRZ - What's your callsign?
  #11   Spotlight this post!  
Unread 19-01-2008, 16:42
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,363
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Those pesky mice...

Some mice use an Avago optical mouse controller chip and a Cypress microcontroler. On these mice you can by pass the micro controller and interface with the chip by SPI. That part will work. The problem is with the optics. Others have tried with custom optics. I don't think any one had success with FRC scale and carpet.
  #12   Spotlight this post!  
Unread 22-01-2008, 13:46
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: Those pesky mice...

Quote:
Originally Posted by Altainia View Post
I realize we cannot use the chicklet, though.
Why not? It's legal, and it will do all the trouble of decoding the USB protocol into analog voltages for the two axes. Then all you need is an adapter to go from gameport to three-pin headers, which is pretty much a ten-minute strip-and-solder job. You may have to buy the specific mouse that the Chicklet supports, but that is by far the easiest way to approach the interface problem... much better than trying to bit-bang.
__________________
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

_
  #13   Spotlight this post!  
Unread 22-01-2008, 13:58
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,787
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Those pesky mice...

Quote:
Originally Posted by jgannon View Post
Why not? It's legal, and it will do all the trouble of decoding the USB protocol into analog voltages for the two axes. Then all you need is an adapter to go from gameport to three-pin headers, which is pretty much a ten-minute strip-and-solder job. You may have to buy the specific mouse that the Chicklet supports, but that is by far the easiest way to approach the interface problem... much better than trying to bit-bang.
They're trying to use the mice as position sensors on the robot, not as driving tools on the OI.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #14   Spotlight this post!  
Unread 22-01-2008, 14:02
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: Those pesky mice...

Quote:
Originally Posted by EricH View Post
They're trying to use the mice as position sensors on the robot, not as driving tools on the OI.
I know that. That's why I'm describing the process of adapting the Chicklet to mate with the three-pin headers on the RC.
__________________
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

_
  #15   Spotlight this post!  
Unread 22-01-2008, 14:12
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,787
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Those pesky mice...

Quote:
Originally Posted by jgannon View Post
I know that. That's why I'm describing the process of adapting the Chicklet to mate with the three-pin headers on the RC.
Ah, OK. The fun begins...Now, how do you power the Chicklet on the robot? Direct connection to the 7.2V battery, or will a three-pin header tranmit enough power?
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

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
Hmmm, those lyrics....... Stillen General Forum 2 06-01-2004 22:11
Pesky New Virus, Please Read AdamT Chit-Chat 6 26-10-2003 22:39
Those Crazy Bins Alexander McGee Inventor 14 14-01-2003 20:56
Those 5 minutes archiver 2001 7 24-06-2002 00:30
snatching up all the little mice asher Rules/Strategy 4 25-03-2002 21:55


All times are GMT -5. The time now is 12:44.

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