Slashdot Mirror


Turn an Optical Mouse into a Scanner

John H. Doe writes "This student was bored one day, so he decided to see what the world looked like from the bottom of his optical mouse. He jury rigged a few wires to his parallel port and wrote a program to take a look. And seeing as how one thing a mouse does is to detect motion, made it into a ghetto b&w handscanner. "

38 of 191 comments (clear)

  1. And this is what he saw through that mouse's eyes: by roman_mir · · Score: 3, Funny

    Nothing for you to see here. Please move along.

  2. I envy by Irashtar · · Score: 5, Funny

    I envy this hacker's skills, B+W? I'd only see red.

  3. groovy by Anonymous Coward · · Score: 3, Insightful

    Groovy .. may come handy in places where scanners need special permissions.

  4. Hey cool ! ... by bushboy · · Score: 5, Funny

    ... He even used it to create his web page.

    --
    A slashdotting - you get the stick first and then the carrot !
    1. Re:Hey cool ! ... by amembleton · · Score: 2, Informative
      The text got warped under his pictures

      I thought that at first too, but soon realised that it was just some text at the bottom of one of his screen shots.

  5. Wow by Q-Hack! · · Score: 4, Insightful

    This is definatly the ultimate in low tech.

    Still, it is ingenuis.

    --
    Some days I get the sinking feeling Orwell was an optimist.
    1. Re:Wow by non0score · · Score: 2, Interesting

      Yeah...this low tech thing also reminds me of someone trying to use a sound card as an oscilloscope (through the mic)...or how someone used the sensor on a logitech trackball device to track how a fly walks (the fly walks on a light ball colored in such a way that the sensor could still read it).

    2. Re:Wow by ian_mackereth · · Score: 3, Insightful
      Low tech? You're using an 18x18 pixel video camera that takes over a thousand snapshots a second of the shadows of your desk, then uses a DSP to calculate the differences between those images and thus how far and in what direction the mouse has moved, and you call it LOW TECH?!!

      And all this in a chip that costs the manufacturer about a buck.

      Perspective!

  6. Well by Z00L00K · · Score: 5, Interesting
    At least this hack is a little funny. I have been wondering about a mouse with force-feedback and then I can't wait until I see the mouse wander over the edge of the table when infected by some strange virus...

    What resolution is it possible to get with the laser mice that you can get?

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
  7. a spy scanner! by roman_mir · · Score: 5, Funny

    Just use any sensitive document as a mouse pad......

  8. more of the sam? go here: by Anonymous Coward · · Score: 3, Informative
  9. confused by digitalsushi · · Score: 4, Funny

    Are we supposed to send him a gift scanner? Clothes? Food? Matches for starting fires? :D

    --
    slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
  10. Scan-mouse by massivefoot · · Score: 5, Funny

    It was promtply purchased by DARPA on a hunch that it might be able to see through concrete...

  11. But the real question is... by EdipisReks · · Score: 5, Funny

    could he turn a flatbed scanner into an optical mouse?

    1. Re:But the real question is... by pesc · · Score: 5, Interesting

      Or turn a camera-equipped mobile phone into an optical mouse? Preferrably with bluetooth support using the built-in phone BT chip! It should only be some programming to get it to work, right? Finally a sensible use for cameraphones.

      --

      )9TSS
  12. Re:ya..Verry impressive and all... by Musteval · · Score: 3, Funny

    The program is written in Visual Basic. So no.

    --
    Note to mods: I'm probably being sarcastic.
  13. Re:Repost from hack-a-day by Linker3000 · · Score: 3, Interesting

    Yes, via the digg.com front page, it would appear.

    --
    AT&ROFLMAO
  14. Re:ya..Verry impressive and all... by Helios1182 · · Score: 4, Informative

    It was a quick and dirty hack. He even said he doesn't like VB, but for a simple GUI it is easy. The source is available so you are welcome to port it to whatever language/plaatform you like.

  15. It's useful enough... by Anonymous Coward · · Score: 3, Insightful

    ...to make a cheap barcode scanner. Barcodes have checksums, and if every other pass works it's good enough.

    1. Re:It's useful enough... by ZorroXXX · · Score: 3, Interesting
      A bar code reader also stuck me as a useful modification. I wrote C code for interpreting the pulse from a bar code pen/wand as part of a project the last year of my engineering education, and replacing the pen with an optical mouse will more or less give an identical project, so this should by all means doable.

      Because of that I did learn a bit about the different types of bar codes. This was in 1995 so the following is just based on memory, I might have some minor errors in the following. The bar code type that is used to identify products is called EAN-13 (European Article Numbering, 13 digits). An EAN-13 bar code usually looks like the following (footnote 1):


      9 || 780201 || 708424 ||

      Both the black and "white" lines in the bar code are used. Lines are either thin or thick (as far as I remember thick lines are either exactly two times the width of the thin ones or slightly thicker (maybe it was 2.5 times?)). The bar code start with three thin lines (start sync) and the the black sync lines are usually printed slightly longer than the rest. In the middle there are some additional sync lines as well as at the end.

      Each digit is encoded as five bars (black and white) in a 2+3 mix of thick/thin. There are defined three groups of different 2+3 combinations, Number Group A, B and C, i.e. Number Group A contains 10 different 2+3 combinations, B contains 10 others and C yet 10 others, The six first digits are either number group A or B, the six last are always number group C. The 2+3 combinations in number group C is the same as those in A but backwards. This means that if the six first digits decoded from the pulses from the bar code reader all are number group A, then you know that you are reading the bar code backwards.

      The combination of A and B used on the six first digits determines the 13th digit, so only 12 of the digits are coded directly with bars.

      Footnote 1
      Originally I wrote an ascii art drawing here, but slashdot complained "Lameness filter encountered. Post aborted! Reason: Please use fewer 'junk' characters." so I had to remove it... :(

      --
      When you are sure of something, you probably are wrong (search for "Unskilled and Unaware of It").
  16. The "sun-like mark" on the chip... by CMiYC · · Score: 5, Informative

    ... is from Agilent Technologies (which just spun off its semiconductor business). For 65-years Agilent was also known was "Hewlett-Packard." In late 1999, HP spun everything but computers and prnters off into Agilent. (This past Dec 1, Agilent's semiconductors became Avago.)

    Just thought I'd throw that out there.

  17. Further modifications=Barcode scanner? by Gizmoguy · · Score: 2, Interesting

    With a bi more tweaking to the code, the mouse could possibly be made into a linear, perhaps even 2D :-)) barcode scanner. Barcode scanners can be expensive. Optical mice don't come cheap, but cost significantly less than a barcode scanner, could this be the next generation of the CueCat, made at home? Also, your killing two birds with one stone, as it's multifunctional. Mind you, it still isn't as good as that MP3 playing toothbrush I got for Christmas :-))

    --
    -- There are 10 types of people in the world: Those who understand binary, And those who don't.
  18. Re:ya..Verry impressive and all... by DrSkwid · · Score: 4, Informative

    see :

    http://wxpython.org/

    it's even cross platform

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  19. It would appear... by Robber+Baron · · Score: 5, Funny

    ...that his mousepad is white and has the number "4", followed by a "0", and another "4" on it

    --

    You're using her as bait, Master!

  20. What about barcodes by Senzei · · Score: 2, Insightful

    When I first saw this I thought it would be useful to turn the mouse into a barcode reader. A quick look at prices shows them starting at around forty bucks. If this could be made to work roughly as well as the barcode readers it might be pretty useful.

    --
    Slashdot: Where anecdotes and generalizations can be freely substituted for facts, logic, or intelligence
  21. Cue Cat by bangzilla · · Score: 3, Interesting

    I seem to recall that something similar was done with that unmitigating disaster known as cue cat :-) Y'know - I don't really care how crap the images are - the point of this execise is all about hacking because it's there. I think this is pretty cool. Would I every replicate this hack or have value for it? -- probably not. But it's cool just for coolness sake. And one never knows when a cool hack will be something you would use (if not today, maybe tomorrow...)

    --
    Rich people are eccentric. Poor people are strange. Me, I'd be happy with odd.
  22. Seeds? by adolfojp · · Score: 2, Interesting

    I wonder if this could be a cheap way to gather random seeds...

    Off I go to tie my wireless mouse to my cat!

  23. what ever happened to hand scanners by wcb4 · · Score: 4, Interesting

    Its a shame really. Hand scanners seemed to ahve peaked in popularity before their time. I understand that they were popular because they were a lot cheaper to build that flatbeds, and as flatbeds came down in price, the hand scanners died away. Seems perfectly reasonable since the handscanner was a pretty ppor match for a desktop computer anyway. The only problem with this was that as the price of flatbeds fell, so did the price of laptops, now a lot of folks have laptops, and hand scanners would be perfect to throw in the laptop bag.... If you are in a library or somehwhere and need a quick scan, the hand scanner would have been perfect. But I have not been able to find a single color hand scanner that will run with XP, which is what I run on my laptop. If I could find one, I'd buy it in a heartbeat. The last time I needed a scan of something when I was not at home, I ended up puling out my digital camera (which I had with me for another reason, and snapping a picture. This was not the ideal situation, but it worked for what I needed. How often do you have a good digital camera with you (not the crappy one in your cell phone)

    Does anyone know of a handscanner compatible with XP? I'd still like to have one.

    --
    I reject your reality ... and substitute my own.
    1. Re:what ever happened to hand scanners by Laplace · · Score: 2, Informative
      Does anyone know of a handscanner compatible with XP? I'd still like to have one.

      Yes. My digital camera. (seriously, I've made digital copies of pages from books, contracts and artwork with my camera).

      --
      The middle mind speaks!
    2. Re:what ever happened to hand scanners by SharpFang · · Score: 4, Insightful

      Handscanners had LOTS of disadvantages compared to flatbeds. Poor resolution resulting from uneven movement speed (flatbed can go as slow as you desire. User moves the handscanner slightly faster and data gets lost.), small width - need for "stitching", poor absolute distance/shape quality (turn it a little, let it slide a bit etc), poor tollerance for uneven surfaces (try to scan a page in a thick book, the roll of the scanner falls off the book when the scanning element is still 5cm into the text) and quite a few other serious disadvantages. The guy advising you a camera is right. I have a Logitech handscanner and a cheap Canon camera, and the camera produces better images than the scanner. Not to mention it's vastly faster :) In great most cases camera suffices. Only if you need -huge- image in good resolution (I mean like 10000x10000px) the scanner makes sense, but you rarely do. And definitely not with a laptop, on a travel.
      One more handy thing. You won't scan a 2mx3m train schedule hanging on the wall, no matter if you use handscanner or a flatbed. Camera is just right for that.

      --
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    3. Re:what ever happened to hand scanners by modecx · · Score: 2, Interesting

      Absolutely, works fine, even with my 3.0MP P&S camera, so it dosen't require anything fancy. 10pt and up seriff fonts are no problem, though if there was very small text, it might not get that. I need to test it some more. The single most important thing is good light for good contrast, even better if the light isn't aligned very close to the len's axis. Flash tends to wash it out.

      --
      Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
  24. I know ghetto gets thrown around a lot...... by i_want_you_to_throw_ · · Score: 4, Funny

    but I live in the ghetto you insensitive clod!!!!!

  25. Optical Mouse Chips by Stigmata669 · · Score: 5, Interesting

    You can use the chips for optical navigation too. I played around with one for an introductory robotics class, here.

    --
    Yawn.
  26. Re: It has been done. by chrestomanci · · Score: 3, Interesting
  27. Re:Nevermind. by SharpFang · · Score: 3, Interesting

    Actually, that's what the sensor+optics is. The mouse is likely to report movement by one pixel reliably, unless it does some good sub-pixel image comparison (which isn't impossible...).

    Thing is you can get about any DPI you desire (up to the limit of light wave length) from such a rig by replacing the optics. You're still stuck with readout area of some 16x16 pixels though, so lower resolution = better, meaning less waving your hand to "wipe" whole area of the document.

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  28. Re:Server seems a bit slow by fatphil · · Score: 2, Funny

    That's because he turned his old Zip drive into a web-server.

    --
    Also FatPhil on SoylentNews, id 863
  29. This is what the original design was for: Capshare by steve_l · · Score: 4, Informative

    This is very funny from a historical note.

    Most optical mice have a chipset from agilent (look for the * logo on the bottom). It was originally designed for a portable scanner, HP Capshare, that had battery+scanner+IR link on it.

    The trick in the box is stiching software; you would scan back and forth, turning it on a page without lifting it, and the firmware would work out what the content was. Like optical mice, it doesnt work on shiny pages.

    The product crashed and burned, but at least the silicion could be turned into mouse silicon instead, and in the process actually increasing the selling price of a mouse. Who wants a no-good ball mouse, the junk you get bundled with a PC?

    I still have a capshare scanner; its actually quite useful for discreetly scanning bits of books at the local university.
    I have an inherited

  30. Re:ya..Verry impressive and all... by DrSkwid · · Score: 3, Informative

    is this enough bindings ?

    for actual links see
    http://en.wikipedia.org/wiki/WxWidgets

            * [1] binding wxBasic for the BASIC programming language
            * [2] binding wxPerl for the Perl programming language
            * [3] binding wxPython for the Python programming language
            * [4] binding wxRuby for the Ruby programming language in September 2004 "early beta"
            * [5] binding wxSqueak for the Smalltalk programming language
            * wxLua for Lua; a Sourceforge.net project is also available here
            * wx4j for Java
            * wxJS for JavaScript
            * wxHaskell for Haskell
            * wxEiffel for the Eiffel programming language
            * wx.NET for C#/.NET
            * wxCL (formerly wxLisp) for Common Lisp

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter