
John Graham-Cumming (JGC), author of The Geek Atlas, wrote in to let us know about a fun conversion he did with a cheap optical mouse:
For a small robot project I’m working on I needed a way to measure the robot’s progress across the floor. There are various possibilities, such as: use stepper motors (expensive and am recycling some old continuous run servos), add an encoder to the wheels (would need to go buy some parts for that), or use the optical sensor for a mouse.
I had a really old PS/2 optical mouse lying around which contains an MCS-12085 optical sensor that has a rather simple serial interface suitable for connection to a microcontroller. Inside there are two separate areas of components. On the right in the picture above is the PS/2 interface chips and four nice extras that I desoldered for later use (three microswitches and a quadrature encoder)…
This is a great example of repurposing something that might otherwise go to a landfill; and to top it off, JGC has posted some code you can use as an Arduino interface to the optical mouse sensor. Read all about his conversion at his blog.

The Geek Atlas
128 Places Where Science and Technology Come Alive
The history of science is all around us, if you know where to look. With this unique traveler’s guide, you’ll learn about 128 destinations around the world where discoveries in science, mathematics, or technology occurred or is happening now. Travel to Munich to see the world’s largest science museum, watch Foucault’s pendulum swinging in Paris, ponder a descendant of Newton’s apple tree at Trinity College, Cambridge, and more.










this is superb. I believe this is just what I needed. Thank for sharing!
The old Apple usb optical mice had a direct pulse output. I had the same idea but unfortunately mechanical issues put the robot on hold.
Pingback: Torrent News » Convert a Cheap Optical Mouse Into a Robot Odometer [Robotics]
Pingback: Mengkonversi Optical Mouse Murah Ke Odometer Robot [Robotika] [lifehacker-on.blogspot.com] | .
Pingback: Convert A Mouse Into A Robot Odometer | Lifehacker Australia
Reblogged this on Gigable – Tech Blog.
// What's Trending
Raspberry Pi Design Contest
Dad Builds Son an Iron Man Arc Reactor
Teardrop Camper Trailer
Seventeen Sneaky Secret Hides
What to do with an 800 Lb Eucalyptus Slab
10 Things to Connect to Your Raspberry Pi
80-Ruxpin Art Installation
3D Printed Kinetic iPhone Cases
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
Plastic Bags into Plastic Blocks: Revisited
10 Hot New Boards to Watch
Why the Maker Movement is Here to Stay
MAKE Asks: Roadside Hacks
Ten Tips for Hand Saws and Blades
DIY Hacks & How To’s: Convert From Battery Power to AC
How To Make Your Own Laundry Detergent
What to do with an 800 Lb Eucalyptus Slab