Slashdot Mirror


Optical Mice as Cheap Barcode Scanners?

Ikester asks: "I've been evaluating a couple of barcode scanners including the CueCat (which some of you may recall from the failed off- online marketing stint by Digital Convergence) for a cataloging application. However, getting ahold of these 'free' wands is not that easy these days and it occurred to me that an optical mouse's hardware may be able to perform a similar function with the right mouse driver. For example, it could work as a regular mouse until it 'recognizes' a valid barcode. It could then send the code as if the user had typed it. I Googled the web and newsgroups but I didn't find anything relevant. I'm wondering if anybody from the Slashdot crowd has come across such an approach. With the recent proliferation of optical mice I'm thinking this could be the next best input device for linear barcodes. I have limited knowledge about mouse drivers and the actual design of these mice. Is this even possible?"

72 comments

  1. How do they work? by Rick+the+Red · · Score: 2
    I've got one, and it works OK, but I haven't a clue how it works -- and I'm an engineer! I thought I knew how it worked until I noticed it seems to work on any surface, including a sheet of plain white paper. What does it see? Perhaps it sees in infrared.

    Anyway, mine works with a mouse pad that's got a picture on it, the desktop, magazines, etc. -- I don't see how it can tell it's now on a barcode and to switch "modes." I think the barcode reader software is going to have to work with the mouse's output and you'll have to manually tell it when it's over a barcode.

    I'd suggest writing an app that logs the stream of mouse movements sent from the mouse driver to your OS, and see what the stream looks like when you pass your mouse over a barcode. It could be made to work, but you'll probably have to do it yourself. Good luck, and let us know if you get it working.

    --
    If all this should have a reason, we would be the last to know.
    1. Re:How do they work? by topham · · Score: 3, Informative

      It takes an image/picture from 300-1000 times per second, runs an algorithm looking for significant features on a very small pixel area, and compares. Very little detail is required to actually work as any contrast at all is enough. (between 2 or more frames)

    2. Re:How do they work? by Rick+the+Red · · Score: 2
      Well, that's what I thought. I guess it can see details in a plain (black or white) surface that my eyes can't.

      After some thought I now retract my earlier statement. I now think this is impossible without hacking the mouse itself. If it works on plain black and it works on plain white, it will simply give a steady stream of mouse movement commands as it passes over a barcode and you won't be able to tell when white ends and black begins, etc.

      --
      If all this should have a reason, we would be the last to know.
    3. Re:How do they work? by Anonymous Coward · · Score: 0

      I've used a mouse like this on a wood grain table. It had strips of wood whose grain met at a "V". Moving the mouse around on the table you could often tell where the two strips of wood met.

    4. Re:How do they work? by crath · · Score: 2

      I agree, it's impossible without severly hacking the mouse; however, the idea is excellent. Now that it's been thrown out on the table, maybe one of the mouse manufacturers will incorporate the concept into one of their mice.

    5. Re:How do they work? by Anonymous Coward · · Score: 0

      Ive noticed that they work very well on a plain, white sheet of paper, and very poorly on glossy surfaces (like a heavily laquered desktop), especially dark-colored glossy surfaces.

  2. Too bad optical mice don't really work that way... by Speedy8 · · Score: 4, Informative

    Too baad optical mice don't send back data telling the computer the "color" or "opacity" of the serface they are on, they just tell the computer how long it stayed in the same place.

  3. Just don't make a "bar code" mouse pad! by mikehoskins · · Score: 1

    Actually, it sounds pretty cool.

    However, is the mouse too unwieldy? I can't imagine putting it up next to some of those bar codes on the side of small packages or on some that isn't flat.

    1. Re:Just don't make a "bar code" mouse pad! by neuroticia · · Score: 1

      The mouse is so unweildy that I can't imagine being able to navigate it over a large flat piece of paper with a barcode--The "optical" part of the mouse isn't the whole bottom of the mouse, and because the mouse is so big, it's difficult to mentally picture where the mouse must be in order to scan the code.

      Of course, if there were "guide lines" on the mouse, that would make it easier.

      After the failure of similar devices, why would a manufacturer want to jump into a project like this? Perhaps because a mouse is something everyone has, you wouldn't have to put down your mouse and hunt around on your desk through the clutter to find a little stick that would scan the code--just grab and slide under your mouse..

      It's definitely an interesting idea. Don't know if I'd buy into it, though. I'm pretty comfy with my ancient logitech mouse. =]

      -Sara

  4. Won't work by Eagle7 · · Score: 5, Informative

    Think about it... when you plug in an optical mouse, you don't need a special driver. So all the optical vs. wheel circuitry must be in the mouse, not the driver. All the mouse is sending over the USB cable is position information, same as a wheeled mouse. All the "take a picture and evaluate the changes" happens inside the mouse.

    As a side note, I'll sell you my Cue Cat for $50.

    --
    _sig_ is away
    1. Re:Won't work by BlurryEyed · · Score: 1

      Just wait for someone to come out with a "WinMouse" with a 10 meg driver and no smarts inside.

  5. A Link to start you out. by Merlin42 · · Score: 4, Interesting

    How does an optical mouse work

    I doubt this could be done (at least with any kind of reliability) at the driver level. It definately could be done with a little creative rewiring, but I would not be the right person to ask how to actually accomplish this.

    1. Re:A Link to start you out. by Anonymous Coward · · Score: 0

      Sure, you go to howstuffworks, but you definitely need to visit dictionary also.

  6. Answer by PD · · Score: 2

    Sorry, no. The mouse would have to scan the data for you, and the hardware just isn't capable of doing that. There's no way to change the way the mouse works with a driver.

    1. Re:Answer by Liquor · · Score: 1
      Sorry, no. The mouse would have to scan the data for you, and the hardware just isn't capable of doing that. There's no way to change the way the mouse works with a driver
      Well, the hardware in any optical mouse IS capable of doing this - it's the firmware to actually do it thats lacking - unfortunately, I don't think that any optical mouse's firmware is accessible for rewrite, even with a hardware hack - I presume that being unable to rewrite the firmware is what you mean by being unable to change the way the mouse works with the drivers.

      If the firmware were rewritten by any means, though, the way that the mouse interacts with the driver wouldn't have to change, either - it would be sufficient to provide an extra 'button' signal (button 6 maybe - definitely not 'middle') that corresponds to whether the center of the sensor area last became lighter or darker.

      The addition of such a 'button' singal would be sufficient for application software to determine the presence and content of any barcode - assuming that the user was able to move the correct portion of the mouse over a valid portion of the barcode.

      Frankly, though, the easiest device to turn into a barcode scanner would be a simple top-of-the-monitor type webcam :)
      --

      Liquor
      Sanity is a highly overrated commodity.
  7. Not that easy to get a CueCat? by immanis · · Score: 1

    Tried an Auction Site?

    I make 34 entries on alone. 24 individual sales, 2 lots of 2, 2 lots of 5, 1 lot of 8, 3 lots of 10 and 2 lots of 100. Ranging in price from around a buck each to 5 bucks each.

    How many do you need? More than 276?

    1. Re:Not that easy to get a CueCat? by Rick+the+Red · · Score: 2
      Yeah, right! I wouldn't pay the shipping and handling some of these guys are asking, let alone the minimum bid they want. $5 each for something they got free? No wonder nobody's bid yet! LOL!

      As for the lots of 100, read the auction -- are they lots of 100 or 25? The description is very confusing, and these are not for auction, they're for Buy Now. eBay isn't an auction site anymore, it's a flea market.

      --
      If all this should have a reason, we would be the last to know.
    2. Re:Not that easy to get a CueCat? by pjl5602 · · Score: 1
      As for the lots of 100, read the auction -- are they lots of 100 or 25? The description is very confusing, and these are not for auction, they're for Buy Now.

      I didn't think it was that hard to understand. They have 25 lots of 100 CueCats each. Am I missing something?

  8. Ugh by Wrexen · · Score: 1, Troll

    I think this is proof that the function representing the quality of "Ask Slashdot" questions over time is a strictly decreasing function

    1. Re:Ugh by ChaoticLimbs · · Score: 1, Insightful

      flame on 1. There are NO stupid questions. 2. Your answer is less helpful and creative than the post your griping about. 3. This post is exactly within /.'s mode of operation. He wants to take object A and make it do X function outside its normal operation. The purpose of function X is irrelevant, as is the time/effort factor. 4. You were unkind to the poster who did nothing to you, and sought to build yourself up by taking him down. Every geek hates this, has dealt with this, and I, to name one geek, won't sit quiet for it. /flame

    2. Re:Ugh by walt-sjc · · Score: 2

      Oh, I HAVE to disagree with you here. Yes, there ARE stupid questions. This one isn't however, and I agree with that point. It's an interesting idea, but would require hacking the mouse hardware which isn't really feasable. But there ARE stupid questions.

      There also are questions where the answer is TRIVIALLY found in Google. Probably at least half the Ask Slashdot questions fall into this category. They have NO BUSINESS being posted. It's stupid to post an Ask Slashdot question if the answer is so easily found in Google.

      Finally, there are the questions that are totally inappropriate for Ask Slashdot, and therefore it's stupid to ask them here. For example, this week someone who apparently was a co-owner in a business was asking an income tax question. HELLO, this is NOT H&R Block! It's News for Nerds! If you are running a business you already HAVE an accountant / tax person who would be the appropriate authority on the subject. Would you REALLY trust a bunch of random nerds to give you good solid advise to an important financial question? Be REAL!

      To sum up, this particular case isn't a stupid question, but we have had a LONG string of really bad / stupid / inappropriate questions on Ask Slashdot lately. The flamming poster is probably just frustrated that the quality of questions has been pathetic and was taking his frustrations out on the wrong person.

    3. Re:Ugh by Enry · · Score: 2

      The submission process for "Ask Slashdot" should include the warning:

      Have you searched google for this answer yet?

      This question is kinda silly, but at least it isn't one where the answer can be easily found on google.

    4. Re:Ugh by Hast · · Score: 1

      "There are no stupid questions; only stupid people" - Dogbert.

  9. Time/Effort by droyad · · Score: 1

    Now even if it could work (which it wouldn't) It would be cheaper buying a scanner then writing the software to so this sort of thing.

    1. Re:Time/Effort by krinsh · · Score: 1

      It would be enormously cheaper; and has been done hundreds of times over already http://www.microimagesys.com

      There are a few specialized (very) small businesses out there; this being one, that do this type of work for inventories, workflows, invoice cataloging, ad infinitum. Mr. Lunglhofer happens to do a lot of this with DocuShare and (*gasp* don't hurt us please) SharePoint in mind, but it is good stuff. If you have any $100 MFD out there in Wal-Mart or OfficeMax you should be able to find a cheap or free barcode reader for it. I have a few here [but I won't share - I don't work for or even with MIS right now but I have great respect for them].

      --
      I think with the interesting people, their lives can't possibly be wrapped up into a nice little package.
  10. How Optical Mice Work by droyad · · Score: 0, Redundant

    Optical mice work by sending out pulses (not constant) of light and analysing the way it comes back (angle, phase, brightness) and uses that do determine how the mouse has moved.

    The mouse then turns this signal into a standard "mouse" signal to send to the computer. As far as the computer is concerned it doesn't care how the mouse works out how it moves. An analogy is inheritence and polymorphism in OO programming. ie, "I don't care how you implement this datastructure, as long as I can do x,y,z and get r)."

    So as far as the computer is concerned it cannot tell the difference from the mouse going over a desk, barcode or picture of Claudia Schiffer. (On a side note, optical mice do not work on mat black surfaces as the light does not reflect.)

    I am getting more and more annoyed at the morons that are allowed to post to slashdot, yet alone post to Ask Slashdot.

    1. Re:How Optical Mice Work by Anonymous Coward · · Score: 0
      Considering you are wrong about how optical mice work, calling others morons is a bit strong. Here's what I recommend you do to relax: (a snippet of Basic code)


      POKE BUTT,PENIS


      It's like OO programming, as long as the BUTT gets poked by the PENIS and gets result CUM, BUTT doesn't care were it gets PENIS from.

  11. What would it be called? by thelinuxking · · Score: 1

    If an optical mouse was programmed to be a barcode scanner...it would be a CueMouse of course! That is assuming that the fat cats who run the CueCat company don't sue...

    1. Re:What would it be called? by Anonymous Coward · · Score: 0

      The company which owned and produced the CueCat has long been out of business. This is due to giving away free working bar code scanners, then getting upset when people hack them and use them for other purposes than to visit some company's lame web page. Thus they tried to sue programmers of CueCat programs and lost. Unfortuantely for them, the DMCA wasn't around to protect their "intellectual property" if you could call it that.

  12. Ill sell you some wands. by lostindenver · · Score: 1

    I worked for a P.O.S. Company (in more meanings than one) Ill sell you a few or just go Borrow a couple a couple from your locale c-store.

  13. How about a webcam instead? by dozer · · Score: 3, Interesting

    check out SDLcam. I haven't used it yet but it looks sweet.

    Screen Shot

    1. Re:How about a webcam instead? by Ikester · · Score: 1

      I does look sweet. I've seen this approach and, although very cool, I think optical mice have a much higher potential of becoming ubiquitous peripherals than webcams (even though you can get a cam for as little as $20-$30).

  14. It can be done by Anonymous Coward · · Score: 0

    Perhaps not the way you intend however. I own two logitec optical mice (30 snaps and works really well) What I've noticed however, is that dragging the mouse over disparate color regions i.e. bright blue and subsequently bright green causes the mouse to jump. My guess is that the mouse jump corresponds to the "difference" (luminocity or hue perhaps?) between the colors. in the case of black and white, it is very great and therefore easily detected. Your task would be to rewrite the mouse driver to detect and process these jumps. Provided the data was valid - you could "easily" route the information off to where you needed it and have the mouse continue on it's business of being a mouse. A beep or some other audible notification would probably help reduce the users frustration with the interface. I think it's a great idea!

    1. Re:It can be done by Ikester · · Score: 1
      Are these "jumps" fairly consistent? I am not able to reproduce (or perceive) this behavior with my Microsoft Intellimouse (on a black & white pattern).

      After reading a couple of other posts, I think the first challenge is to extract the actual "light" data from the mouse. If all we're getting is decoded mouse movements the graceful "all software" solution may not be possible.

    2. Re:It can be done by Anonymous Coward · · Score: 0

      The jumps are easily reporduceable with the logitech mouse that i own. i suspect that it is either a hardware or driver bug that allows them to be registered. alternatively you could try drawing a black line on a while piece of paper and see what happens.

  15. Mature answer? Please? by Ikester · · Score: 2, Insightful
    Thanks for the explanation in the first scentence. However, I don't see why you need to insult.

    You may know about peripheral hardware but based on your "analogy" with OO programming comment, it is clear that you have a lot to learn in that field. I promise that if you ever post a question about OO, I'll give you an honest and mature answer, and I won't call you a moron for asking (even if you are one).

    1. Re:Mature answer? Please? by Anonymous Coward · · Score: 0

      mice won't work, that's been covered. why not build your own? all you need is a farchild qrb1134 reflective optical detector, a PIC/AVR controller for the logic and a MAX232 for the rs232 voltages.

  16. Highly unlikely by TheSHAD0W · · Score: 3, Insightful

    It's a nice idea... Unfortunately, optical mice do all their processing onboard. They don't send any raw data to the PC. I also doubt any use flash memory, and so are capable of a firmware upgrade; and even if they were, it's unlikely they'd have sufficient space to be able to handle both tasks. I suppose the right firmware could make the mouse simply dump raw data upstream and let your PC do the decoding, but that'd also make it incompatible with regular mouse drivers.

  17. An offtopic FYI about optical mice... by krinsh · · Score: 1

    The original was invented at Xerox PARC. I learned this five years ago as a Docutech Production Publisher technician. You can still see them - old blocky looking things - attached to those big 1500 'aircraft carrier' looking machines. Some of the earliest "desktop publishing" concepts came from the Docutech, from what I've read, learned and heard.

    --
    I think with the interesting people, their lives can't possibly be wrapped up into a nice little package.
  18. Won't work all the time- by ChaoticLimbs · · Score: 1

    Your optical mouse works by reflecting the light from the LED to the surface and getting a reflection (angle of incedence, etc) from the surface. It works on paper but not on a perfectly smooth surface. It "sees" bumps and irregularities in surfaces and interprets their movements as mouse movement. Unfortunately, not all printing methods produce any irregularities that can be read by a mouse. Try this: set your mouse on a large barcoded printout. Move the mouse very slowly past the bars and see if it jumps as it crosses a bar. Unfortunately, I tried it and it didn't jump. This means that there are still enough surface anomalies for the mouse to see. It just ignores the barcode. Disassembly of the mouse is your best bet. Change the angle that the LED strikes the paper with. It's a good idea, and can be made to work, but it'll probably make the mouse a little jumpy.

  19. Raw data by Ikester · · Score: 1

    I agree. Getting the raw data would probably be the most likely scenario. I wonder what kind of bandwidth we're talking about. Integrating the decoding function done by the hardware in the mouse driver itself will probably be too resource consuming. But if it's possible, the driver would have to accomplish both tasks: decode movement AND barcode data (if present).

  20. Three things. by FreeLinux · · Score: 2

    1. It can't be done with an optical Mouse.

    2. Even if it could be done why all the trouble for a crappy scanner. Do yourself a favor, go to eBay and search for "barcode scanner" find one you like and spend $20.

    3. Just so you know, CCD scanners are Ok. Laser scanners are far more accurate but, they cost a bit more. Oh, don't forget a splitter for your keyboard cable, if it doesn't come with one.

  21. SALT AS CHEAP SUGAR SUBSTITUTE? by Anonymous Coward · · Score: 0


    Makes just as much sense.

  22. Anything is possible by xagon7 · · Score: 1

    Don't listen to the nay-sayers Bubba. You will probably have to perform your own mod to the hardware, but the general optical hardware would work EXTREMLY well as a scanning platform .. for roll over or scan over uses. You will probably have to write your own USB driver, or if you could get the specs on the cue-cat you will have to mod the hack the mouse to emulate the cue-cat and use it's driver.

    "Anything is possible, its all just a matter of time." - me

    1. Re:Anything is possible by doofusclam · · Score: 1

      Agreed, this isn't a stupid question at all. Maybe the USB mouse could expose two devices to the USB controller (generic mouse plus barcode scanner). A problem is that they usually only scan when the mouse is pressed down on a surface (there is a microswitch on the base) and I think the IR beam is fixed, so you would have to run it over the barcode fully rather than wave the barcode in front like is done with a normal barcode scanner. It's gonna be a hardware / firmware mod but isn't a big development and would be a unique selling point - maybe one of the smaller taiwanese companies will develop it.

    2. Re:Anything is possible by Anonymous Coward · · Score: 0

      A problem is that they usually only scan when the mouse is pressed down on a surface (there is a microswitch on the base)
      dunno about this - i can hold my mouse up and wave my finger close to it and the cursor will jerk around a bit - not as good if my finger is over the optical reader bit, but it doesnt have to be pressed down (it's a packard bell one - maybe its just the brand/design of your mouse that means it has to be pressed down...)

  23. I hate to sound like a commercial, but by jhines · · Score: 2

    Have you tried Pricewatch? It now has a barcode selection for input devices. I find wands with keyboard wedges starting at USD$55.

  24. free cuecat by BigBir3d · · Score: 2

    email me your physical address and i will send it to you, i never did use it for anything. it is still in the original packaging.

    chris at punchit dot net

  25. Not as a replacement by Ikester · · Score: 1
    Regarding #2, I didn't think about it as a replacement for a good scanner. But it could be a way to get barcode scanning to "the people". Instead of asking people to install a crappy piece of hardware that drains miliamps most of the time, get them to install crappy software :)

    If it ever got massified, barcodes could have a renewed life for consumers.

  26. Cheap? Free? by Anonymous Coward · · Score: 0

    Huh. I suppose you get all your music off Napster too.

  27. Mainstream barcode scanning by Ikester · · Score: 1

    That's more in line with what I thought when I posted. Not that it would make a great scanner, but that if it becomes ubiquitous, new and cool applications could be devised for barcodes at the consumer level. Getting people to install yet another peripheral just to scan barcodes doesn't work, as proven by the CueCat. But if the functionality is there, it will be used!

  28. Madison Meetup! by Aetrix · · Score: 0, Offtopic

    Random posting from the Slashdot Meetup in Madison, Wisconsin!!!

    -Aetrix
    -hurtfulpotato
    -zImage
    -laweinberger

    See you folks later!!

    --

    "One touch of Darwin makes the whole world kin." George Bernard Shaw
  29. Could work by Wonko42 · · Score: 1

    You don't need a special driver in most cases, but nothing is stopping you from writing one. Barcode scanners work on the exact same principles as optical mice, and all the hardware is there; it's just a matter of writing a driver that'll do the trick.

    1. Re:Could work by uradu · · Score: 2

      > Barcode scanners work on the exact same principles as optical mice

      No they don't, unless you mean 2D barcodes. Several posters have already pointed out how modern optical mice work: they compare successive pictures of the mousepad surface, taken many hundreds of times per second. Then they compute motion vectors and transmit those over the wire. You simply have to do the math to see that sending the raw pictures over the wire would overload the bandwidth of the PS/2 connector (PS/2 and USB optical mice send exactly the same type of data over the wire). So no, you couldn't just write a fancier mouse driver, unless you also included your own fancier optical mouse that worked differently.

  30. Modified CueCat by Kizzle · · Score: 3, Informative

    You can get a Modified CueCat for pretty cheap on ebay. They plug into your PS2 port and type out the bar code as plain text as soon as you swipe somthing. No special driver needed, your computer thinks its just a keyboard.

    1. Re:Modified CueCat by Anonymous Coward · · Score: 0

      The cuecat doesn't need to be modified to send out plain text in the first place... it's in-line with your keyboard..

    2. Re:Modified CueCat by Anonymous Coward · · Score: 0

      Except it's plain text would be encrypted.

  31. Whats the point? by danielrose · · Score: 1

    What's the point of using a mouse? I've seen Barcode scanners for around AUD$15, where as the cheapest optical mouse i've seen is AUD$35 or so. Seems to be easier and cheaper the buy the wand and get the driver, rather than buy a mouse and kludge it together. It's like using a hairdryer to dry dishes, it might work but a hairdryer costs more than a tea towel!

    --
    i hate pansy republicans
  32. Scanners or Webcams by p7 · · Score: 1

    I would bet it is a lot easier to design software for either a webcam or a handheld scanner and they would be much cheaper and accurate.

  33. Could, maybe still work... by SpotBug · · Score: 1


    Yes, the optical mouse just sends "movement" information, but it might be possible to write a driver that would recognize a special, purposely-erroneous set of movement data and then begin interpreting the following data as barcode information which it (the driver) then, somehow, types like a keyboard. It would probably need to be a mouse/keyboard driver pair.

    Yes, no?

    --
    cygnuhchur
    1. Re:Could, maybe still work... by SpotBug · · Score: 1


      Wow, am I a dumbass. Good thing I don't work for NASA. We'd have all sorts of spacecraft going missing.

      Anyway, obviously, my maybe solution (parent post) would still require a special mouse.

      --
      cygnuhchur
  34. Hacked Cuecats are easy to get on eBay for $5 by Smack · · Score: 2

    Which is cheaper than any optical mouse I've seen.

  35. Dirty by Alcohol+Fueled · · Score: 1
    I Googled the web and newsgroups...
    *Snicker*
    --
    Ah am not a crook! (\(-__-)/)
  36. What's the point? by checkyoulater · · Score: 1

    Realistically, what is the point of even trying this hack? Just to see if you can do it? Why not just spend the 50 or so dollars it would cost to buy an actual barcode scanner? They are simple to use, and simple to install. All you need to do is plug the thing into a PS/2 keyboard port. You can even connect your keyboard at the same time. Scan a barcode when you need to, and type when you need to. I don't know how much an optical mouse is worth these days, but I would imagine it is probably the same cost as a cheap barcode scanner.

    Obligatory link - www.pscnet.com

    --
    Is that a real poncho? I mean, is that a Mexican poncho or is that a Sears poncho?
  37. one more question by cpex · · Score: 1

    Why the hell would you even want a barcode scanner?

    1. Re:one more question by pyrote · · Score: 1

      for inventory. sometimes eve for insurance tracking of hardwae...heck, they are just fun to tinkerwith

      --
      THE WORLD IS GOING TO END!!!! eventually.
  38. Easy to do... by cybermace5 · · Score: 2

    ...just not with an existing mouse.

    This would be possible to implement in the mouse firmware.

    I spent last year programming a USB peripheral...the power of USB gives it complexity, but great flexibility. You can configure any USB device to look like a standard HID (human interface device) with minimal effort. Many cheap USB microcontrollers, such as those found in optical mice, have several endpoints available. You can configure a mouse to identify both as a mouse, and a USB keyboard. From there, the mouse just has to find barcodes and send them as if from a keyboard. No special drivers, as HID should be standard for practically all currently used computer.

    On a side note, having programmed a USB device gives you a whole new perspective on peripheral development. I could, if I wanted to, build a Mechwarrior cockpit with two integrated joysticks, system volume control, buttons and switches mapped to keys, all running off one microcontroller and USB port. Maybe someday when I have a LOT more time! :-)

    --
    ...
  39. Points Vs Lines by ClickNMix · · Score: 1

    I dont think this would work, an Optical Mouse works on a tiny area, where as if you look at bar code scanners, they need to see the whole bar code in one go, (Which is why they can work out if you scan upside now, or at an angle as well).

    What might work is one of those old hand scanners people had before flatbed became cheap for all. Perhaps, Im not sure but it seems more likely then a mouse.

    --
    I saw the light at the end of the tunnel... But it was just someone with a flashlight bringing more work.
    1. Re:Points Vs Lines by The+Other+White+Meat · · Score: 1

      WRONG.

      Barcodes are not read that way. Laser scanners sweep a beam across the barcode, and read the changes in reflected intensity serially.

      Handheld barcode wands use a LED, and read the data, using algorithms to adapt to the changing speed at which the user passes over the barcode.

      Technologically, an optical mouse is _very_ similar to a barcode wand. The only limitation would be the mouse firmware. Optical mice don't send the raw data back to the PC, just the decoded data. You would need to modify the mouse's firmware to have it be capable of decoding barcodes.

      --

      --- Generation X: The first generation to have SIG lines inferior to their parents... ---
  40. This is Ask Slashdot in a nutshell: by Wakko+Warner · · Score: 2

    "With the recent proliferation of optical mice I'm thinking this could be the next best input device for linear barcodes. I have limited knowledge about mouse drivers and the actual design of these mice."

    I will let this speak for itself.

    - A.P.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"
  41. MODERATORS ON CRACK by Anonymous Coward · · Score: 0

    Troll? I mean, what the hell? Cracktards.