Go to Post The question is like asking "Is it better to drive by looking at a map the whole time or by remembering where you want to go and watching the road instead?" - lukevanoort [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,825
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: 7,019
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:	63
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: 7,019
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: 7,019
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,370
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 19-01-2008, 18:29
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Those pesky mice...

I attempted this several years ago on a simple robotics project unrelated to FIRST. I ran into several problems.
The mouse must see texture as it compares one image to the next to determine motion and direction. Good imaging is important so before you spend a lot of time make sure the official carpet is not of a nature that treads, dirt or other debris might get caught in the optics as the mouse moves along the floor.
Another test is with the optical mouse you plan to use. There are many makers out there. You may want to plug it into a computer, use a mouse pad, and check repeatability. In other words. pick a spot on the mouse pad. look at the location of the pointer on the screen, move the mouse away and them back to the start point and see what kind of error you get on the screen. This will help you determine max speed your robot can go with that particular mouse.
This doesn't directly address what you are doing but it's an interesting hack and might help.
http://www.contrib.andrew.cmu.edu/~t...ision_Project/
I DID see a small robot that used a mouse for guidance, but that was on a smooth, hard floor with texturing. Parts of the floor I tried to transverse were too smooth for the mouse to pick up the motion and thought it was standing still.

Good luck

Steve
  #13   Spotlight this post!  
Unread 22-01-2008, 12:30
eeeeweeezeee's Avatar
eeeeweeezeee eeeeweeezeee is offline
menace to public safety
FRC #0114
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Los Altos, CA
Posts: 21
eeeeweeezeee will become famous soon enough
Send a message via AIM to eeeeweeezeee
Re: Those pesky mice...

is it possible to use a mouse with the usb chicklet on the OI? i have no idea since I have never used one of the chicklets, but if it is, then you could attach a 15pin connector to the chicklet and solder cut-off PWM cables to the other side of it and attach to the robot controller. it all hinges on if the chicklet can recognize the mouse and work with it then. it says in the .pdf file for the chicklet that it can use a "microsoft inteligent optical mouse" so then, you could make a modification of a backup battery recharge circuit for powering the chicklet and have it all be a custom circuit.

well, so far in my head I have come up with a way to do it. so, it would be just like rigging up a custom OI box, but attaching to the robot instead. use the pinout guide on IFI's website to help you find which pins should be connected to the analog connectors of the robot controller, and which should be connected to the digital pins.

note: I have no experience with using optical mice with the robot or with the chicklet, but I know that if the chicklet is supposed to emulate a joystick, then it can produce the same signal as the stuff in the joystick, which also happens to be the same stuff intended to connect to the robot controller, namely 10k ohm potentiometers.
__________________
EEEEWEEEZEEE
was here
  #14   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

_
  #15   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,825
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

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 21:07.

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