Published:
Barcode scanner is a device designed to read information encoded as barcode. A barcode reader emits light using a laser diode or LED. The beam is reflected by the barcode. 1D codes consist of vertical bars separated by contrasting spaces. Contrary to common belief, a barcode need not be black; black and white are usually chosen for maximum contrast and minimal reading errors.
The reader’s beam directed at a barcode is reflected by the spaces between the bars. A mirror focuses the reflected light onto a photodetector, which converts it into electrical pulses. A microprocessor then converts these pulses into characters displayed, for example, on a computer or portable terminal equipped with a barcode scanner.
Barcode readers can be programmed to suit user requirements. A prefix or suffix can be added before or after the scanned code. A common setting adds ENTER after the scanned character sequence.
The most popular barcode scanners have USB interfaces for straightforward connection to computers and cash registers. Connected to a PC, they usually operate in keyboard emulation mode: scanned barcode data appears at the current cursor position.
This allows a barcode to be entered into a text document, for example in Notepad or Word, wherever the cursor is positioned.
The barcode reader family also includes wireless barcode readers, which improve working comfort without being restricted by a computer cable. Depending on communication type, readers operate 10–100 m from the base station in a straight line, excluding terrain and building obstacles.
Also consider 2D readers, which, in addition to standard 1D barcodes with vertical bars and spaces, read two-dimensional codes such as QR codes. 2D codes store more characters than standard barcodes.