Are you using an optical mouse right now? Ever wanted to see your desktop through the eye on the bottom of it? Me neither, I already know I have to clean my desktop
People get bored sometimes, and when I get bored I sometimes open up stuff to find out what makes it tick. One time, I did this with an old optical mouse. Well, a mouse only has 2 chips inside: the optical sensor and a chip for the usb/ps2-interfacing. I looked up the datasheet of the optical sensor (which is an ADNS2610) and it told me the sensor has a tiny 18x18 CCD, which can be read out using the serial port (the one which normally interfaces to the PS2/USB-chip).
So I start Visual Basic (I usually do my stuff under Linux, but I'm no star at using anything graphical like QT or GTK, so for this quick'n'dirty project I fell back in my old habits) and hack something up using a few wires to the trusty ole parallel port. The result: crisp lo-res b&w imaging

As you can see, the mouse was over some text with an 'e' in it.
One of the more obvious features of a mouse, however, is that it can detect movement. Combine this with the just-aquired imaging features, and we have a ghetto b&w handscanner. This is a 'scanned' piece of a receipt:

can understand you can't wait to have such a handy scanner yourself. And now, you can! The software is downloadable here.
Code:
http://sprite.student.utwente.nl/~jeroen/projects/mouseeye/readmouse.zip
pp: adns-2610:
25-----------------GND
12----------+------SDIO
5 -----|<|--+
9 -----------------SCK
Plug in the USB/PS2-plug (or apply 5V to the Vcc-pin of the sensor), run the software and you should be OK
No comments:
Post a Comment