How Bar code Scanners Work(BCR - Bar-code Reader)
How do Bar code Scanners work?
To understand how a barcode scanner works, we have to explore the different parts of the device. Basically, there are 3 functional parts to the bar code scanner itself, the illumination system, the sensor / converter, and the decoder.

The simple explanation...

Barcode scanners begin by illuminating the code with red light. The sensor of the barcode scanner detects the reflected light from the illumination system and generates an analog signal with varying voltage that represent the intensity (or lack of intensity) of the reflection. Theconverter changes the analog signal to a digital signal which is fed to the decoder. Thedecoder interprets the digital signal, does that math required to confirm and validate that the barcode is decipherable, converts it into ASCII text, formats the text and sends it to the computer the scanner is attached to.

Let's look at each functional part of a barcode scanner in more detail:

Illumination Systems - The illumination system is the method by which the bars and spaces on the barcode are illuminated. There are a variety of illumination systems commonly used in barcode scanners:

Single Point LED - This technology is exclusive to the barcode wand reader and the barcode slot reader. The illumination of the barcode comes from either a single or pair of LED's and is focused through a single ball-type opening.  This technology requires the ball to physically touch the barcode being scanned.

Single Point Illumination in a Barcode Wand               

Since the illumination is on a single point, the operator has to provide motion to the barcode past the light source. In the case of a barcode wand, the operator drags the illumination ball across the barcode. For swipe or slot readers, the barcode is typically printed on a credit-card like media. The operator pulls the card through a fixed slot, past the illuminating head. 

Slot and wand readers are inexpensive, and can accommodate any length of barcode. There are several disadvantages of the single point illumination method. Slot and wand readers require the operator to control the speed at which the barcode passes in front of the illumination head. Because barcodes must be in contact with the illumination head to read, the barcode can easily be damaged by abrasion of the head on the media that hosts the printed barcode. Although the illumination head is hardened, it will wear out and must be replaced regularly.

CCD Barcode Scanner Illumination
Linear Multiple LED - Expanding on the single-point illumination system, placing multiple LED's in a line give the ability to light the entire width of the barcode. This type of illumination is used in CCD scanners and Linear Imagers.
When used in CCD scanners, the LED's are paired with a line of photocells to detect the reflected light from the barcode  Since the LED's are relatively low in power, and the photocells are low in sensitivity, the range of CCD barcode scanners is generally limited from being in contact with the barcode to 1" away.

Laser - This type of illumination method uses a single point red laser diode similar to a laser pointer. The point of light is expanded into a line by oscillating the laser into a stationary mirror, or projecting the point into an oscillating mirror.  This illumination method is very popular because of the working distances typically achieved are superior to the point illumination or linear LED illumination methods. Typical working distances are from 1" to 18". By increasing the power of the laser and decreasing the angle of oscillation, ranges of over 20 feet can be obtained.

LED Imager - The linear and full imager is very similar to the CCD device, with some important changes. In linear imagers, the amount of illumination is increased by using high light LED's, and the sensing photocells are more sensitive. Linear imaging technology mimics both the range and focus of laser scanners.

LED Imager Scan Head Pictures - Illuminated and Scan ZoneFull Imager Sensing Array
In full imagers, high-intensity LED's illuminate a square scanning "target". The light sensors in full imagers are very similar to the light sensors in monochrome cameras. The sensors search the scanning square target for a valid barcode. By pairing the target square with sensors that search the target square for a valid barcode, LED full imagers are omni directional - you don't have to line up the barcode in any way in order for it to be decoded. The target / snapshot method give LED imagers the ability to read 2-dimensional barcodes as well.

Regardless of the method used to illuminate the barcode, the illumination method is causes reflected light to return to the scanner head and be seen by the sensor.

Pen Type Readers and Laser Scanners

Pen type readers consist of a light source and a photo diode that are placed next to each other in the tip of a pen or wand. To read a bar code, you drag the tip of the pen across all the bars in a steady even motion. The photo diode measures the intensity of the light reflected back from the light source and 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 photo diode is an exact duplicate 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 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. Just the same 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 tuned to a specific frequency and the photo diode is designed to detect only this same frequency light.
Pen type readers and laser scanners can be purchased with different resolutions to enable them to read bar codes of different sizes. The scanner resolution is measured by the size of the dot of light emitted by the reader. The dot of light should be equal to or slightly smaller than the narrowest element width ("X" dimension). If the dot is wider than the width of the narrowest bar or space, then the dot will overlap two or more bars at a time thereby causing the scanner to not be able to distinguish clear transitions between bars and spaces. If the dot is too small, then any spots or voids in the bars can be misinterpreted as light areas also making a bar code unreadable. The most commonly used X dimension is 13 mils (roughly 4 printer dots on a 300 DPI printer). Because this X dimension is so small, it is extremely important that the bar code is created with a program that creates high resolution graphics (like B-Coder).  

No comments:

Post a Comment