Optical mouse sensor and the Arduino

2314788722_3f6982cc9e_b.jpg
This is a great way to interface an optical mouse with your Arduino. Just make sure your mouse has one of the required optical sensors before you do any permanent damage. If you are interested in a How-To Tuesday based on this project, let me know in the comments. Thanks!

More about connecting an Optical mouse to an Arduino

In the Maker Shed:
Makershedsmall
Arduino Family
Make: Arduino


Recent Entries

Comments

Oldest comments listed first.

Posted by: Todd on July 8, 2009 at 7:29 AM

DBA

I would love to vote YES! for a Tuesday How-To.


Posted by: Marc de Vinck on July 8, 2009 at 8:05 AM

OK, it's added to the list.


Posted by: sburlappp on July 8, 2009 at 12:00 PM

Suggestions for your project

How fast can the image sensor bitmap be read out? You might be able to make a barcode scanner out of one of these. (I'd like a mouse with that built in!)

How fast movement can these things track? You could make a tire-mounted bicycle speedometer/odometer. (Nearer the hub might be easier to keep up with.)

Or, you could improve the repeatable positioning accuracy of a maze-solving robot (and greatly speed up its second run).

Or, by mounting the sensor in the right place, and adding an Arduino and some relays, you could turn almost any electrically powered wheel/pulley/piston into a reasonably accurate continuous servo or linear actuator - for example, three bumper winches could be used to make a nice large-scale X-Y(-Z) positioning system. (I'm thinking: Parking Lot Plotter!)


Posted by: vivi on July 9, 2009 at 3:01 AM

The internal DSP has access to 1500fps image data (or more on newer models). Unfortunately to access this data externally you're forced to use the serial port, which is very slow. 15fps might be the max you can get this way.

Your idea to use it as an odometer is quite good. My G9 gamer mouse has a max speed of only 3.8m/s (about 14km/h) though, so a cheap standard mouse has probably an even slower limit.


Posted by: sburlappp on July 13, 2009 at 9:42 AM

That's why I'm thinking very near the hub would work better, maybe put something with a visible texture in the spokes, and read it from 1/4 of the wheel radius, to measure 1/4 of the tire surface speed.

You could build a nice surveyor's wheel (hodometer) this way, too. (At walking speeds, you could measure directly off the tire, or the ground!)


Posted by: Simon on July 8, 2009 at 10:35 AM

You can also get the actual image off those mouse sensors too. I did it once using the parallel port on the PC and a little C# application. Unfortunately I lost all that code after a hard drive crash :(


Posted by: vivi on July 12, 2009 at 8:36 AM

I made a similar hack using an Arduino and some Java code : www.bidouille.org/hack/mousecam/index.php


Posted by: Marc de Vinck on July 12, 2009 at 8:44 AM

That's awesome!! Thanks for sharing. I'm going to post about this tomorrow. Keep an eye on the blog.


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television
MAKE: en EspaƱol MAKE: Japan


Check out all of the episodes of Make: television

Make: Science Room

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter

    MAKE's RSS feed is here.
    Add MAKE to iGoogle - GoogleGoogle.
    How to add MAKE to your RSS reader - Real simple.
    Add MAKE on FriendFeed




    Maker SHED

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Subscribe to MAKE Magazine!

    Make: Online authors!

    Gareth BranwynGareth Branwyn
    Senior Editor


    Phillip TorronePhillip Torrone
    Senior Editor
    | AIM | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Current Podcast

    itunesdl.gif Weekend Project: Making Char Cloth Learn how to make a cheap and effective fire starter made from an old t-shirt. To download The Char Cloth video click here and subscribe in iTunes. See Char Cloth in action with the Fire Piston from William Gurstelle.... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    MAKE Fascination video series brought to you by Dow

    Make: Education

    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog