|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
Re: Those pesky mice...
Quote:
Barring that, you would need to wire your own connection. |
|
#3
|
|||||
|
|||||
|
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 |
|
#4
|
|||
|
|||
|
Re: Those pesky mice...
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
|
||||
|
||||
|
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.
|
|
#6
|
|||
|
|||
|
Re: Those pesky mice...
Quote:
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. |
|
#7
|
|||||
|
|||||
|
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"
|
|
#8
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||||
|
|||||
|
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 |
|
#11
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Those pesky mice...
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.
|
|
#13
|
|||||
|
|||||
|
Re: Those pesky mice...
Quote:
|
|
#14
|
||||
|
||||
|
Re: Those pesky mice...
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.
|
|
#15
|
|||||
|
|||||
|
Re: Those pesky mice...
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?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |