In a series of earlier projects, I was working on things like serial port interfacing for Propeller, Arduino, and even old ALTAIR computers, written entirely from scratch. So why not tackle some more challenging problems, like supermarket scanners, voting machines, casino betting systems, or anything else that uses a barcode or a QR code? The Git repo for this project WILL help you get started, with whatever it is that YOU want to do with it, whether you are counting chickens before they hatch, or launching ICBMs - or "whatever". In the meantime, "Let's get cooking!"
I could not believe how simple that was. Someone loaned me a "Zebra" brand USB-style barcode scanner, and I learned that to "test" it, all that I had to do was plug it into any USB port and launch an application such as Microsoft Word, or Notepad - that accepts text input.
So naturally, I had to try out my very own version of "Propeller Debug Terminal" which I was using for doing experiments with the Propeller P2 Eval board, that I wrote back in 2019. And low and behold, the Debug Terminal application sees the scanner as if it were just another "keyboard", and I get line after line of numbers when I scan things! Oh, LA, LA!
Then I found a website called "barcodelookup.com" and sure enough, when I copy and paste the digits of one of my scans, I get not only a description of the product but a picture of the product - now how cool is that?
Now let's be honest - I haven't checked whether this particular site, or any site offers an API, which could get interesting, really fast, Otherwise, there is still the idea of manual product entry. Or of printing "custom bar codes" - since I found that an old betting slip from William Hill seems to scan just fine!
Or else, "How I need a drink, alcoholic of course, after the long lectures in quantum mechanics". If you know what I am talking about.