Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

interface between optical mouse and PIC microcontroller

Status
Not open for further replies.

romagdinio

Newbie level 4
Newbie level 4
Joined
Oct 28, 2007
Messages
5
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
Egypt
Activity points
1,315
optical mouse microcontroller

hello all:
i want to ask if i can interface usb optical mouse to a pic microcontroller. i want to use the mouse to detect the position of a robot (i want to use it instead of line tracking sensor as it will be faster, as i want to tell the robot the x-y coordinates to go and the optical mouse will increments its x-y registers and send a feedback to the microcontroller which will use this feedback to control the robot's motors)
but i don't know how can i read these registers from the mouse.
so please if anyone can help i will appreciate it so much.
 

optical mouse interface

Hi,
I am also in the same track and have made some progress. First of all you cannot use USB protocol since a USB device can only be connected to a host like a PC which is very complex to implement in software.
You have two options either hack the mouse sensor or use a PS2 mouse.
I used a PS2 mouse and my communication with it is Ok I am getting data on x and y axis.
I have not yet tried it on a real robot and have some doubts on the complete fesibility of the idea.

We can be of mutual help if You are interested any more
 

optical mouse sensor

thanks for your information, but i am wondering if you can send documents on this interface between the ps2 mouse and the controller or any document that describes the commands and the registers of the mouse.
 

mouse usb interface pic

I heard there was an article on optical mouse sensors in May 2004 Nuts and Volts.

Here's a thread on optical mouse sensors **broken link removed**. Feel free to revive, if you'd like.
 
  • Like
Reactions: sherazi

    sherazi

    Points: 2
    Helpful Answer Positive Rating
I have a project that will be using an optical mouse and a PIC16F877A to display the distance covered using an LCD when I drag the mouse from point A to point B. Can anyone help me on this? Thank you.
 

http://kronosrobotics.com/
or Google:Interface to optical Mouse Sensor+athena port1

- - - Updated - - -

**broken link removed**
**broken link removed**

- - - Updated - - -

http://vortex.embedders.org/data/Athena%20to%20Optical%20Mouse.pdf
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top