Serial Barcode Scanner
Duane Degn
Posts: 10,588
I've been using barcode scanners in my chemistry lab for several years.
They have been immensely useful.
I've mainly used the scanner SparkFun sells but I have since found a less expensive scanner on eBay that will work as a serial device (single data pin).
I've posted details of how to make a cable to use the scanner in serial mode in the product page's comments and in SparkFun's forum.
Since my post in SparkFun's forum isn't likely to be seen by the majority of you, I thought I'd post a link here in case it could help a fellow forum member.
I've used the scanners with a Propeller, but they should also work with a Basic Stamp.
Edit: The eBay scanner I have is no longer listed. This one looks like it should work the same way.
They have been immensely useful.
I've mainly used the scanner SparkFun sells but I have since found a less expensive scanner on eBay that will work as a serial device (single data pin).
I've posted details of how to make a cable to use the scanner in serial mode in the product page's comments and in SparkFun's forum.
Since my post in SparkFun's forum isn't likely to be seen by the majority of you, I thought I'd post a link here in case it could help a fellow forum member.
I've used the scanners with a Propeller, but they should also work with a Basic Stamp.
Edit: The eBay scanner I have is no longer listed. This one looks like it should work the same way.
Comments
IMO, the ebay scanner works better (recognizes the barcode faster) than the one SparkFun sells.
apologies Duane I seem to have replied to the older thread and confused things, now we have two threads about the same thing.
It does say "LED array". I don't know why is says that that though since it uses a laser.
You'll need to make your own cable to use with a microcontroller. Follow the links in post #1 for instructions on how to make a cable.
a. Portable data logging. If you have your bar codes printed on sheets of paper, it is easier to input data that can be logged into an SDcard
b. Simpler input interface. You don't have to fumble with buttons and menus to select input.
I don't really think that bar code scanning would be worthwhile with a BasicStamp. It might be made to work, but limits of speed and capacity are likely to be too much.
In some cases, you can use the Spinnerette to have barcodes evoke routines that are sent over a LAN. That would be more cost effective than a whole computer being dedicated to such a task.
If a database is really working well for you, it just may expand and it is much more pleasant to scan barcodes than to have to key in tedious details. One can create a book of entries with pages and pages of cataloged bar code.
Another option is to have a wireless link, such as an Xbee wireless serial.
Them's fightin' words, Loopy!
Another advantage is by adding a small Propeller board, RF module and battery to bottom of the barcode reader, it becomes a wireless barcode reader.
I use my barcode readers for data logging. I scan the barcode on a vial and then weigh the vial. The balance has a RS-232 port so that also gets logged to the same SD card. (Lots of scientific instruments have serial ports.)
I also use barcodes to indicate transfers from one container to another container (usually for diluting). Barcodes have made my work much faster and much more accurate.
It's made keeping track of data so much easier in my lab. I also don't have to try to decipher my employee's handwritten notes in a notebook anymore.
After all the data has been recorded to a SD card I transfer it to a PC to do the number crunching. I may move the number crunching aspect over to the Propeller to make my job a bit easier.
I use a Brother label printer to print barcodes. There are lots of much less expensive ways to print barcodes than using a Brother label printer but the Brother labels are very durable. I have bottles and vials (which are frequently washed) that have had a Brother label on them for several years without any sign of the labels coming off.
Last time I computed how much the labels cost me, I figured they were about 3.5 cents per five character label. Some paper barcode labels cost less than a penny each but you wouldn't be able to wash them.
Edit: I missed erco's post. Since erco joined the thread, I'll mention my intention to use the Propeller to control a robot arm for weighing samples and moving cuvettes to and from the spectrometer.
What is "this"? Loopy mentioned a lot of things in the post you quoted.
If you want to use a barcode scanner with a microcontroller with a serial (TTL) interface then this scanner looks like the one I use with a Propeller.
To use the scanner with a TTL interface rather than the USB interface, you'll need to make a cable to connect the scanner to your microcontroller. The links in post #1 lead to instructions to make this cable. You can't modify the cable that comes with the scanner since there aren't wires in the correct positions in the connector that plugs into the scanner. The connector is actually a ten position connector but the eight position connector on ethernet cables will work.
The file is too large to attach to the forum but for now it can be found in my Dropbox.
If anyone wants to find a copy in the future and the above link doesn't work, just send my a private message and I'll make it available again.
Here are a few quotes from the SparkFun product page about how to use the scanner.
I explain which wires to use with a serial connection in this post.
Here's a post about configuring the scanner with barcodes from the manual.