Author Topic: Mouse sensor as Robot motion/proximity sensor?  (Read 3611 times)

0 Members and 1 Guest are viewing this topic.

Offline RedcapTopic starter

  • Full Member
  • ***
  • Posts: 80
  • Helpful? 11
Mouse sensor as Robot motion/proximity sensor?
« on: November 18, 2010, 05:21:02 AM »
I was wondering if it was possible to use the sensor from a mouse as a crude motion/proximity sensor to tell when the robot is close to, but not touching an object?
(sensor I'm thinking of using pictured below)


edit: better picture added

If this is possible, great  ;D


But...

that brings up another problem.

It's a PAN3512DK-TJZA. I've tried looking for information on this chip, found out from the only site mentioning it that the manufacturer is PixArt Imaging, but the PixArt website no longer lists anything about it.

Its a 12 pinned chip, but have no clue of the pin layout.

Any feedback (help/suggestions/flames) is greatly appreciated.


If it cannot be used/isn't possible, that's 100% ok, just trying to find out info before starting with it.
« Last Edit: November 18, 2010, 05:52:19 AM by Redcap »

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: Mouse sensor as Robot motion/proximity sensor?
« Reply #1 on: November 18, 2010, 08:55:13 AM »
If its a PS/2 mouse, you can easily interface it using the connector.

All mice work on velocity, and not position, however.

Offline RedcapTopic starter

  • Full Member
  • ***
  • Posts: 80
  • Helpful? 11
Re: Mouse sensor as Robot motion/proximity sensor?
« Reply #2 on: November 18, 2010, 07:52:46 PM »
Unfortunately this one's from a USB mouse.

The way I'm thinking about using it is to have the chip mounted vertically so when it gets within a few inches of an object, or an object moves within a few inches of it, the robot can sense an object is "too close" and acts accordingly.

Due to the lack of info on this chip, I'm beginning to think it'd be a better idea just to go with IR style Sensors, but was hoping to try something a little different.

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Mouse sensor as Robot motion/proximity sensor?
« Reply #3 on: November 18, 2010, 08:16:53 PM »
Hi,

An optical mouse sensor is a low resolution camera 16x16 pixels or slightly larger (some up to 32x32 AFAIK) and as such doesn't give any distance info unless you do some math on the frames in real time.
It would not be the best way to make an obstacle/bump detector.
Regards,
SÝren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline Metal Slug 2

  • Supreme Robot
  • *****
  • Posts: 333
  • Helpful? 11
Re: Mouse sensor as Robot motion/proximity sensor?
« Reply #4 on: November 18, 2010, 08:49:06 PM »
This guy was able to get meaningful data back from an optical mouse using an arduino.  Although his mouse used a different sensor, yours may function similarly...

Offline RedcapTopic starter

  • Full Member
  • ***
  • Posts: 80
  • Helpful? 11
Re: Mouse sensor as Robot motion/proximity sensor?
« Reply #5 on: November 18, 2010, 09:53:05 PM »
Thanks for the link Metal Slug.
After reading through it, I'd have to agree with Soeren that it won't be the best way to go about creating an obstacle sensor, mainly due to where I'm at at the moment in regards to robotics.

Much thanks for your replies/time :)

 


Get Your Ad Here

data_list