
What is a barcode reader and how does it work
A barcode reader, also called a price scanner or point-of-sale ( POS ) scanner, is a hand-held or stationary input device used to capture and read information contained in a bar code . A barcode reader consists of a scanner , a decoder (either built-in or external), and a cable used to connect the reader with a computer.
Because a barcode reader merely captures and translates the barcode into numbers and/or letters, the data must be sent to a computer so that a software application can make sense of the data. Barcode scanners can be connected to a computer through a serial port , keyboard port , or an interface device called a wedge .
A barcode reader works by directing a beam of light across the bar code and measuring the amount of light that is reflected back. (The dark bars on a barcode reflect less light than the white spaces between them.) The scanner converts the light energy into electrical energy, which is then converted into data by the decoder and forwarded to a computer.
There are five basic kinds of barcode readers — pen wands, slot scanners, Charge-Couple Device ( CCD ) scanners, image scanners, and laser scanners.
- A pen wand is the simplest barcode reader. It contains no moving parts and is known for its durability and low cost. A pen wand can present a challenge to the user, however, because it has to remain in direct contact with the bar code, must be held at a certain angle, and has to be moved over the bar code at a certain speed.
- A slot scanner remains stationary and the item with the bar code on it is pulled by hand through the slot. Slot scanners are typically used to scan bar codes on identification cards.
- A CCD scanner has a better read-range than the pen wand and is often used in retail sales. Typically, a CCD scanner has a “gun” type interface and has to be held no more than one inch from the bar code. Each time the bar code is scanned, several readings are taken to reduce the possibility of errors. A disadvantage of the CCD scanner is that it cannot read a bar code that is wider than its input face.
- An image scanner, also called a camera reader, uses a small video camera to capture an image of the bar code and then uses sophisticated digital image processing techniques to decode the bar code. It can read a bar code from about 3 to 9 inches away and generally costs less than a laser scanner.
- A laser scanner, either hand-held or stationary, does not have to be close to the bar code in order to do its job. It uses a system of mirrors and lenses to allow the scanner to read the bar code regardless of orientation, and can easily read a bar code up to 24 inches away. To reduce the possibility of errors, a laser scanning may perform up to 500 scans per second. Specialized long-range laser scanners are capable of reading a bar code up to 30 feet away.
Types of barcode scanners.
Pen-type Scanners
Pen-type readers consist of a light source and photodiode that are placed next to each other in the tip of a pen or wand. To read a bar code, the person holding the pen must move the tip of it across the bars at a relatively uniform speed. The photodiode measures the intensity of the light reflected back from the light source as the tip crosses each bar and space in the printed code. The photodiode generates a waveform that is used to measure the widths of the bars and spaces in the bar code. Dark bars in the bar code absorb light and white spaces reflect light so that the voltage waveform generated by the photodiode is a representation of the bar and space pattern in the bar code. This waveform is decoded by the scanner in a manner similar to the way Morse code dots and dashes are decoded.
Laser scanners
Laser scanners work the same way as pen type readers except that they use a laser beam as the light source and typically employ either a reciprocating mirror or a rotating prism to scan the laser beam back and forth across the bar code. As with the pen type reader, a photo-diode is used to measure the intensity of the light reflected back from the bar code. In both pen readers and laser scanners, the light emitted by the reader is rapidly varied in brightness with a data pattern and the photo-diode receive circuitry is designed to detect only signals with the same modulated pattern.
CCD readers (also known as LED scanners)
CCD readers use an array of hundreds of tiny light sensors lined up in a row in the head of the reader. Each sensor measures the intensity of the light immediately in front of it. Each individual light sensor in the CCD reader is extremely small and because there are hundreds of sensors lined up in a row, a voltage pattern identical to the pattern in a bar code is generated in the reader by sequentially measuring the voltages across each sensor in the row. The important difference between a CCD reader and a pen or laser scanner is that the CCD reader is measuring emitted ambient light from the bar code whereas pen or laser scanners are measuring reflected light of a specific frequency originating from the scanner itself.
Camera-based readers
Two-dimensional imaging scanners are a newer type of bar code reader. They use a camera and image processing techniques to decode the bar code.
Video camera readers use small video cameras with the same CCD technology as in a CCD bar code reader except that instead of having a single row of sensors, a video camera has hundreds of rows of sensors arranged in a two dimensional array so that they can generate an image.
Large field-of-view readers use high resolution industrial cameras to capture multiple bar codes simultaneously. All the bar codes appearing in the photo are decoded instantly (ImageID patents and code creation tools) or by use of plugins (e.g. the Barcodepedia used a flash application and some web cam for querying a database), have been realized options for resolving the given tasks.









