Go to Post It's official: we've run out of things to talk about. - Jessica Boucher [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 03-12-2008, 06:21 AM
eng_tarekwaheed eng_tarekwaheed is offline
Registered User
no team
 
Join Date: Mar 2008
Location: egypt
Posts: 6
eng_tarekwaheed is an unknown quantity at this point
Red face help please

i wanna to know how can i use the optical mouse as position feed back in details quiclu please
  #2   Spotlight this post!  
Unread 03-12-2008, 06:43 AM
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
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?
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
  #3   Spotlight this post!  
Unread 03-12-2008, 07:44 AM
eng_tarekwaheed eng_tarekwaheed is offline
Registered User
no team
 
Join Date: Mar 2008
Location: egypt
Posts: 6
eng_tarekwaheed is an unknown quantity at this point
Re: help please

i wanna know how can i put the mouse and get its power
  #4   Spotlight this post!  
Unread 03-12-2008, 07:56 AM
eng_tarekwaheed eng_tarekwaheed is offline
Registered User
no team
 
Join Date: Mar 2008
Location: egypt
Posts: 6
eng_tarekwaheed is an unknown quantity at this point
Re: help please

i wanna know also the circuits contact with the mouse
  #5   Spotlight this post!  
Unread 03-12-2008, 09:01 AM
eng_tarekwaheed eng_tarekwaheed is offline
Registered User
no team
 
Join Date: Mar 2008
Location: egypt
Posts: 6
eng_tarekwaheed is an unknown quantity at this point
Re: help please

Quote:
Originally Posted by eng_tarekwaheed View Post
i wanna to know how can i use the optical mouse as position feed back in details quiclu please
i wanna know also the circuits contact with the mouse
  #6   Spotlight this post!  
Unread 03-12-2008, 11:59 AM
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
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.
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
  #7   Spotlight this post!  
Unread 03-21-2008, 03:15 PM
DarkJedi613's Avatar
DarkJedi613 DarkJedi613 is offline
Running Riot
AKA: Patrick Cloke
FRC #0358 (Hauppauge Robotic Eagles) FRC #1493 (RPI/Albany High School)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2003
Location: Hauppauge, N.Y.
Posts: 455
DarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to beholdDarkJedi613 is a splendid one to behold
Send a message via AIM to DarkJedi613 Send a message via MSN to DarkJedi613 Send a message via Yahoo to DarkJedi613
Re: help please

Quote:
Originally Posted by Lostmage333 View Post
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.
Depends what kind of mouse too. A PS/2 Mouse just has a Data, Ground, Power and Clock lines (source: Wikipedia).

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.
__________________
2003 - 2006 President, Coach, Webmaster Team358.org
2008 Mentor, Team 1493

Team Search | (Updated: 1-16-08)

FIRSTsearch

Last edited by DarkJedi613 : 03-21-2008 at 03:16 PM. Reason: Source for USB pinout
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
pic: please help us please mortals CD47-Bot Robot Showcase 5 01-25-2004 11:03 AM
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 09:46 PM
please help us, pretty please :) archiver 2001 0 06-24-2002 03:13 AM


All times are GMT -5. The time now is 08:07 PM.

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