go_away

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

0 Members and 1 Guest are viewing this topic.

Offline emmannuel

  • Full Member
  • ***
  • Posts: 87
  • Helpful? 0
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.


Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • Helpful? 0
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

Offline swaroopvg

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
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 

Offline fiflak666

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
  • 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

Offline pclark

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
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.

http://pwc.theclarkwebsite.com/adns2610.php

Offline fiflak666

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
  • My native language isn't english :P
Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #36 on: May 22, 2009, 09:50:48 AM »
your link seems to be dead  ???

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

Offline sarmadshams

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
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
sarmad

Offline andrea0206

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Re: PAN3101 OPTICAL MOUSE SENSOR HACKING TUTORIAL
« Reply #38 on: October 26, 2010, 02:02:42 PM »
I'm going to try this solution, but I'm not sure about the errors that will be done by the system...Are this sensors suitable for a precise positioning?Has anybody some information about the error that occours?

 


Get Your Ad Here

data_list