|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i wanna to know how can i use the optical mouse as position feed back in details quiclu please
|
|
#2
|
|||
|
|||
|
Re: help please
All the mouse really consists of are two encoders, one along x, one along y. Wire both of them (to dig IO, set to in) and then set up an interrupt to count their ticks. Figure out how many ticks/inch or ticks/foot or there are (drive the robot 10 feet, and have the robot printf the ticks).
Then use that data to tell the robot to go n ticks. If you only want to travel along x, then use the y axis as "error", and if the robot picks up travel along y, have it autocorrect. Did that make sense? |
|
#3
|
|||
|
|||
|
Re: help please
i wanna know how can i put the mouse and get its power
|
|
#4
|
|||
|
|||
|
Re: help please
i wanna know also the circuits contact with the mouse
|
|
#5
|
|||
|
|||
|
Re: help please
i wanna know also the circuits contact with the mouse
|
|
#6
|
|||
|
|||
|
Re: help please
Unfortunately, I am not familiar with which pins do what on a mouse. You should probobly either contact a manufacturer or dissassemble an old one to figure out what goes where. You will need to definately wire up the power (prob 5 volts) and ground. There should be 2 digital lines for the encoders, and (at least) 2 digital lines for the clicks (maybe one more for the wheel). You will not need to use the clicks or the wheel, so do not wire them.
To test, check for continuity or resistance through the mouse as you move it back and forth, and see if the line ever reads high. It wont be easy. I know (at least) one team used a mouse, so they may know better than I do. |
|
#7
|
|||||
|
|||||
|
Re: help please
Quote:
If its USB there are four pins: Power, Ground and Data+, Data- (source: Pinouts.ru). So either way I don't think its as simple as just see which lines go high, I'm pretty sure its all encoded as pulses along the data lines. Last edited by DarkJedi613 : 21-03-2008 at 15:16. Reason: Source for USB pinout |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: please help us please mortals | CD47-Bot | Robot Showcase | 5 | 25-01-2004 11:03 |
| hey need some help with writing a code please help me here | magical hands | Programming | 9 | 01-01-2004 21:46 |
| please help us, pretty please :) | archiver | 2001 | 0 | 24-06-2002 03:13 |