go_away

### Author Topic: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL  (Read 24460 times)

0 Members and 1 Guest are viewing this topic.

#### emmannuel

• Full Member
• Posts: 87
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #30 on: August 13, 2008, 11:35:57 PM »
any idea about converting int to char?

enter: 1110
result: one thousand one hundred ten

more ideas will be appreciated..thanks

I'm not sure why you are trying to do this but char can't hold a value that high.
char is usually defined as -128 to 127, or unsigned (positive) from 0 to 255

When you need to store/use values higher than that you would want to use an int.

So putting a value such as 1110 in a char would mean you'd lose precision it would hold the value 110 not not 1110 I believe.

#### junaid_766

• Beginner
• Posts: 3
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #31 on: September 27, 2008, 01:58:28 AM »

#### benji

• Supreme Robot
• Posts: 832
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #32 on: September 27, 2008, 09:44:08 AM »
hey junaid_766 , do ask us questions and we answer,, i dont think someone is going to send ya more detail,, do your work and ask us and we'd be glad to help
good ol' BeNNy

#### swaroopvg

• Beginner
• Posts: 1
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #33 on: March 02, 2009, 10:04:53 AM »
Hi.... I am new to this forum and new to microcontroller programming

i am  doing a project now ... where i need to move a toy car by a given distance

lets say i need to move it 30cm.... i am planning to use the optical mouse as the odometer  so that i can compare the distance travlled so far and my target distance... can u plz help me with the programming part

#### fiflak666

• Jr. Member
• Posts: 22
• My native language isn't english :P
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #34 on: May 11, 2009, 04:20:24 PM »
hello I'm working with PAN3101 but it hasnt replied yet

tell me please, how did you generate clock and what is that clock frequency because I've found in datasheet that there is no down limit of serial transmission frequency

#### pclark

• Beginner
• Posts: 1
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #35 on: May 18, 2009, 08:25:56 PM »
The following link has information on where to find components for the ADNS-2610 in low quantities, such as the lens and the LED clip. It is MUCH cheaper to buy the components separately than buying an optical mouse.

#### fiflak666

• Jr. Member
• Posts: 22
• My native language isn't english :P
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #36 on: May 22, 2009, 09:50:48 AM »

I have better news

I've found code that works great with PAN3101 !

Here it is (in German)
http://www.roboternetz.de/wissen/index.php/Maussensor

• Beginner
• Posts: 1
##### Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #37 on: June 24, 2010, 08:29:22 PM »
hi benji
i m using PAN3101 optical sensor
and i use to read the motion status register then delta Y and delta X,
i try to read all three delta X & delta Y register but the output is either 0 or 255

the code is correct bcoz i use the same code (only register address change) with the ADNS 2051
it work correctly.

is there any specail sequence to read the register of PAn3101?
plz reply as soon as possible.
c u

• Beginner
• Posts: 1