Barcode Technology

Barcode History

Barcode Label Paper

Barcode Printer

Barcode Application

Inventory Management

AI Barcode QRCode

Barcode Scanner

Barcode Software

Barcode Software B

Barcode Software C

Barcode Software D

Barcode Software E

New Technology A

New Technology B

Robot Technology

Barcode Types

Barcode Types B

Barcode Types C

Barcode Types D

Barcode Types E

Barcode Types F

Electronic Technology

Psychology at Work

Barcode Technology and Barcode Software Related   <<< Back to Directory <<<

The Barcode Reader Decoded: Principles and Practical Circuit Design (P1)

The Barcode Reader Decoded: Principles, Practical Circuit Design, and Real-World Applications

Executive Summary

This article provides a comprehensive, accessible exploration of the electronic circuitry behind barcode readers. We begin by establishing the fundamental challenge---translating printed black and white patterns into reliable digital data---and then walk through each stage of the signal chain, from the light source and photodetector to the final decoding microprocessor. Rather than focusing on abstract theory, we ground every concept in concrete design examples and real products from industry leaders including Texas Instruments, Microchip Technology, Analog Devices, and others. We examine how these companies have solved practical problems like noise cancellation, ambient light rejection, power management, and adaptive thresholding in their commercial offerings. The article covers both traditional laser scanners and modern imaging-based readers, with special attention to the transimpedance amplifier---the critical circuit that converts tiny photodiode currents into usable voltages. Throughout, we emphasize the mixed-signal nature of the challenge: digital processing must coexist with sensitive analog circuits, and successful designs master the art of keeping them from interfering with one another. The closing summary synthesizes the key lessons and offers guidance for anyone undertaking their own barcode reader design.

Chapter 1: The Basic Mission - What a Barcode Reader Actually Does

At its core, a barcode reader is a remarkably straightforward device with an exceptionally difficult job. Its mission is to look at a pattern of parallel black bars and white spaces, figure out which widths correspond to which numbers or letters, and send that information to a computer or point-of-sale system. The simplicity of the concept, however, belies the complexity of the electronics required to make it work reliably in the real world.

Think about what happens when you scan a barcode at the supermarket. The cashier waves a handheld reader across the package, and within a fraction of a second, the product name and price appear on the screen. Behind that seamless experience lies a carefully orchestrated chain of events: light must be projected onto the barcode, the reflected light must be captured and converted into an electrical signal, that signal must be cleaned up and digitized, and finally, the digital pattern must be decoded according to the rules of whatever barcode symbology is being used (UPC, Code 39, QR Code, and so on).

The fundamental challenge is that the raw signal coming from the optical sensor is tiny, noisy, and easily corrupted by ambient light, reflections, and variations in print quality. The electronic circuitry must perform what amounts to a minor miracle of signal processing, all while consuming very little power and fitting into a handheld package. In the chapters that follow, we will examine how this is accomplished, using real design examples from major semiconductor manufacturers to illustrate the principles at work.

Chapter 2: The Signal Chain - A Roadmap of the Electronics

Before diving into individual circuit blocks, it is helpful to understand the complete signal chain of a typical barcode reader. Think of it as an assembly line where each station performs a specific operation on the signal, gradually transforming raw optical information into clean digital data.

The chain begins with the illumination source---usually an LED or a laser diode. This light shines onto the barcode. The reflected light is collected by a photodetector, typically a photodiode. The photodiode generates a tiny current that is proportional to the amount of light it receives. This current then enters the transimpedance amplifier, or TIA, which converts it into a voltage. Next comes a series of amplification and filtering stages that boost the signal and remove noise. A digitizer then converts the analog signal into a stream of ones and zeros. Finally, a microcontroller or processor measures the widths of these pulses and decodes them according to the barcode standard being used.

Each of these stages introduces its own challenges. The TIA must handle extremely small currents without adding too much noise. The filters must reject ambient light without distorting the barcode signal. The digitizer must set a threshold that correctly separates black from white, even when the contrast is poor. The microcontroller must accurately measure pulse widths, even when the scanning speed varies. And through it all, the analog and digital circuits must coexist on the same circuit board without interfering with each other.

This chain is essentially the same whether the reader uses a laser scanner that sweeps a beam across the barcode or an imager that captures a picture of the entire barcode at once. The difference lies in how the light is projected and collected, not in the fundamental signal processing that follows.

Chapter 3: The Illumination Source - LED Drive Circuits

The first active element in the signal chain is the light source, almost always an LED or a laser diode. This component must produce enough light to be reflected back to the photodetector, but it must also be driven in a way that keeps its output stable and predictable. For LED-based readers, the goal is to maintain a constant light output regardless of changes in temperature or battery voltage.

Texas Instruments, in various application notes, emphasizes the importance of using a constant-current drive rather than a simple voltage drive for LEDs. The reason is simple: the forward voltage drop of an LED varies with temperature and from device to device. If you apply a fixed voltage, the current---and therefore the light output---will fluctuate. A constant-current source, on the other hand, forces a precise current through the LED, ensuring consistent illumination.

A simple constant-current driver can be built with a transistor, a resistor, and an op-amp, but many commercial designs use dedicated LED driver ICs. These chips often include features like pulse-width modulation for dimming, overcurrent protection, and thermal shutdown. In battery-powered handheld readers, efficiency is paramount; the driver must convert the battery voltage to the LED current with minimal losses.

Some designs, particularly those that must operate in bright sunlight, use pulsed illumination. The LED is turned on for very short bursts, typically tens of microseconds, and the photodetector is synchronized to capture light only during those bursts. This technique, known as synchronous demodulation, dramatically reduces the effect of steady ambient light. The pulsed approach also reduces average power consumption, which is crucial for battery-powered operation.

Chapter 4: The Photodetector - Converting Light to Current

Once the light has been reflected from the barcode, it must be captured. The photodetector performs this task, converting optical power into an electrical current. In barcode readers, the photodetector is almost always a photodiode, although some older designs used phototransistors.

Photodiodes are preferred over phototransistors for several reasons. Their response to light is linear over a wide range, meaning the output current is directly proportional to the incoming light intensity. Phototransistors, while offering higher gain, are notoriously non-linear and suffer from slow response times due to their internal capacitance. As Microchip Technology explains in their application notes on transimpedance amplifiers, the photodiode's output current is tiny---often in the nanoamp range---and must be handled with care.

Photodiodes can be operated in two modes: photovoltaic and photoconductive. In the photovoltaic mode, the diode is unbiased, and the output voltage is directly related to the light level. This mode offers the lowest noise but is relatively slow. In the photoconductive mode, the diode is reverse-biased, which reduces its junction capacitance and increases the speed, but at the cost of higher dark current---a current that flows even when no light is present. For most barcode readers, which require high-speed response and can tolerate some dark current, the photoconductive mode is the better choice.

The choice of photodiode also affects the overall performance. The BPW34, a common PIN photodiode, is frequently used in barcode readers due to its fast response and low capacitance. Its active area is large enough to capture sufficient light, and its spectral response is well-matched to red LEDs and laser diodes.

Chapter 5: The Transimpedance Amplifier - The Heart of the Reader

If any single circuit is the heart of a barcode reader, it is the transimpedance amplifier, or TIA. The TIA takes the tiny current from the photodiode and converts it into a usable voltage. The gain of the TIA is set by a feedback resistor: the output voltage is equal to the photodiode current multiplied by the resistance value. A feedback resistor of 100 kilohms, for instance, will produce 0.1 volts from a 1 microamp current.

The TIA is a classic application of an operational amplifier, but it presents several unique challenges. First, the photodiode's capacitance, combined with the amplifier's input capacitance, creates a pole in the frequency response that can cause instability and oscillation. Second, the feedback resistor itself adds noise, and larger resistors produce more noise. Third, the op-amp must have sufficiently low input bias current and offset voltage so as not to swamp the tiny signal from the photodiode.

Microchip's application note on transimpedance amplifiers provides a concrete example using their MCP6001U op-amp and a Panasonic PNZ334 PIN photodiode. In this design, the feedback resistor is 64.9 kilohms, chosen so that the output reaches 4.5 volts at the maximum photodiode current of 70 microamps. The challenge is stabilizing this circuit, because the photodiode's 24 picofarads of capacitance, combined with the amplifier's input capacitance, would otherwise cause peaking and ringing.

The solution is to add a small capacitor in parallel with the feedback resistor. This capacitor, typically just a few picofarads, compensates for the phase shift caused by the input capacitance and stabilizes the amplifier. However, it also limits the bandwidth. The larger the compensation capacitor, the slower the circuit becomes. There is always a trade-off between stability and speed.

Texas Instruments has published reference designs for photodiode amplifiers suitable for barcode scanning, such as the TIPD176, which achieves a bandwidth of over 1 megahertz with a single-supply op-amp. This design uses a small bias voltage to prevent the output from saturating at the negative rail when no light is present, a clever trick that simplifies single-supply operation.

Chapter 6: Compensation and Stability - Preventing Oscillation

The stability of the TIA is crucial for reliable barcode reading. If the amplifier oscillates, the output will be a jumble of noise and signal, and the digitizer will produce meaningless data. Compensation is the process of adding components to the feedback network to ensure that the amplifier remains stable while still providing sufficient bandwidth.

Stability analysis of a TIA is often done using Bode plots, which show the gain and phase of the amplifier as a function of frequency. The photodiode's capacitance introduces a pole in the loop gain, and without compensation, this pole can cause the phase margin to drop to zero, leading to oscillation. The compensation capacitor, placed in parallel with the feedback resistor, introduces a zero that cancels the effect of the pole, restoring stability.

Microchip's application note provides a step-by-step approach to compensation. First, calculate the total capacitance at the input, which includes the photodiode's capacitance and the op-amp's input capacitance. Then, select a compensation capacitor that places the zero at a frequency that ensures adequate phase margin. The result is a stable amplifier with predictable bandwidth.

In real-world designs, the compensation capacitor is often tuned empirically. A value is chosen based on the calculations, but the final value is adjusted by testing the circuit with a known signal and observing the response. If the output rings, the compensation is too small; if the bandwidth is too low, it is too large.

Patent documents from the 1990s reveal some of the early thinking on TIA design. One patent, WO1996004609, describes a transimpedance amplifier with a compensation capacitor of just 10 picofarads, used to stabilize the amplifier for barcode signals over a wide frequency range. The patent notes that the compensation capacitor is small enough that it does not affect the barcode signal frequencies, which are much lower than the instability frequencies.

Chapter 7: Dark Current and Offset Cancellation

Even in complete darkness, a photodiode produces a small current, known as the dark current. This current is due to thermal generation of electron-hole pairs within the semiconductor material and can be on the order of nanoamps to microamps. If left uncorrected, dark current appears as an offset voltage at the output of the TIA, which can shift the apparent brightness of the barcode and cause decoding errors.

There are several techniques for canceling dark current. One approach is to use a matched reference photodiode that is shielded from light. This reference photodiode is connected to a second TIA, and the difference between the two outputs is taken. The dark currents, being common to both channels, are canceled, leaving only the signal from the active photodiode.

Another approach, common in low-cost designs, is to sample the output of the TIA when the LED is turned off. During this 'dark' period, the output represents only the dark current and ambient light. This value is then stored and subtracted from the later readings when the LED is on. This digital cancellation technique is simple and effective, requiring only an analog-to-digital converter and some processing power.

As noted in Microchip's application note, the op-amp's own input bias current also contributes to the offset voltage. The input bias current flows through the feedback resistor, creating an additional voltage drop. For CMOS op-amps, this bias current is extremely small (picoamps), so the effect is negligible. For bipolar op-amps, however, the bias current can be significant, and the op-amp must be chosen carefully to minimize this error.

Chapter 8: Ambient Light Rejection - The Constant Adversary

One of the greatest challenges in barcode reader design is ambient light. Sunlight, fluorescent lights, and incandescent bulbs all contribute their own light to the photodetector, adding a large DC offset and, in the case of fluorescent lights, a 100 or 120 Hz hum. This ambient light can easily saturate the TIA or, at the very least, reduce the dynamic range available for the barcode signal.

The simplest method of ambient light rejection is AC coupling. After the TIA, a high-pass filter is placed to remove the DC component of the signal. This filter, usually just a capacitor and resistor, blocks the steady-state ambient light while passing the rapidly changing barcode signal. The cutoff frequency of this filter is typically set around 100 to 300 Hz, which is high enough to reject power-line hum but low enough not to distort the barcode data.

A more sophisticated approach is to use differential optical architecture. Two photodiodes are placed side by side, one exposed to the ambient light and the reflected barcode signal, and the other exposed only to ambient light. The outputs are subtracted, leaving only the barcode signal. This technique is particularly effective because the ambient light is common to both photodiodes, while the barcode signal is present only on the active one.

Some designs go a step further by modulating the LED illumination at a high frequency, such as 100 kHz. The photodiode signal is then synchronously demodulated using a multiplier or a switched capacitor. This technique, known as lock-in amplification, rejects all signals that are not at the modulation frequency, including all forms of ambient light. This approach was documented in patents from the mid-1990s and has found its way into many commercial readers.

Chapter 9: The Programmable Gain Amplifier - Adapting to Conditions

Not all barcodes are created equal. Some are printed with high contrast, while others are faded, damaged, or printed on low-reflectance paper. The distance from the reader to the barcode also varies, affecting the amount of light that is reflected back to the photodetector. To handle this wide range of signal levels, barcode readers often include a programmable gain amplifier, or PGA.

The PGA is placed after the TIA and allows the microcontroller to adjust the gain of the signal path based on the measured signal strength. The microcontroller typically performs a calibration at the beginning of each scan, measuring the peak-to-peak amplitude of the signal and then adjusting the gain so that the signal fits within the input range of the digitizer.

Texas Instruments' application notes on this subject describe PGAs that are digitally controlled via a serial interface. The gain can be set in discrete steps, often in 3-dB increments. Some designs use a digital potentiometer in the feedback loop of an op-amp to achieve continuously variable gain.

One particularly interesting example comes from a patent by Symbol Technologies, US5949054, which describes a digitizer that automatically switches threshold levels based on the contrast of the barcode. While not exactly a PGA, this approach achieves a similar effect: the circuit adapts to the signal quality, ensuring that low-contrast barcodes are digitized correctly.

The challenge with any gain control is that the gain must be set quickly, before the barcode passes the scanning window. In a handheld reader, the entire barcode may be scanned in less than 100 milliseconds, so the gain must be established within the first few bar widths. This is typically done during the 'quiet zone' at the beginning of the barcode, where no data is encoded.

Chapter 10: Auto-Gain Control - The Adaptive Loop

Auto-gain control, or AGC, is an extension of the PGA concept in which the gain is continuously adjusted to maintain a constant output amplitude. In barcode readers, this means that regardless of whether you are scanning a high-contrast barcode up close or a low-contrast barcode from a distance, the signal entering the digitizer will be roughly the same level.

A simple AGC loop works like this: the output of the PGA is sampled by the microcontroller. If the signal is too small, the microcontroller increases the gain. If the signal is too large, it decreases the gain. Because the barcode signal changes rapidly, the AGC must have a slow time constant so that it does not try to track the variations between bars and spaces.

In practice, the AGC loop is often implemented by measuring the peak value of the signal during the initial part of the scan and then setting the gain so that this peak is about 80% of the full-scale input range of the digitizer. The gain is then held constant for the rest of the scan. This approach provides a good compromise between adapting to the signal strength and not distorting the data.

Texas Instruments' TIPD176 reference design for a photodiode amplifier, while not specifically a barcode reader design, demonstrates the principles of gain control that would be used in such a reader. The design includes provisions for adjusting the gain to accommodate different signal levels, a key requirement for any practical barcode reading system.

Chapter 11: The Digitizer - Converting Analog to Binary

Once the analog signal has been amplified and cleaned up, it must be digitized. That is, it must be converted from a continuously varying voltage into a stream of ones and zeros that represent the bars and spaces of the barcode. This conversion is performed by the digitizer.

There are two primary approaches to digitization: the comparator-based approach and the analog-to-digital converter, or ADC, approach. In the comparator approach, the analog signal is compared to a threshold voltage. If the signal is above the threshold, the output is a one; if below, the output is a zero. In the ADC approach, the analog signal is sampled at a high rate, and the resulting digital values are processed by software to determine where the bars and spaces are.

The comparator approach is simpler and faster, but it requires a good threshold. If the threshold is too high or too low, the digitized output will be distorted. The ADC approach is more flexible because the software can use sophisticated algorithms to determine the optimum threshold, but it requires a fast ADC and more processing power.

Patent US4740675 describes a classic comparator-based digitizer for barcode readers. The circuit uses a differentiator to find the edges of the barcode, and then compares the differentiated signal to a threshold that is derived from the peak of the signal. This approach provides excellent edge detection and is immune to variations in contrast.

Chapter 12: The Adaptive Threshold - Finding the Right Level

The key to successful digitization is setting the threshold correctly. If the threshold is set to 50% of the signal amplitude, and if the signal is perfectly symmetrical, then the digitized output will accurately represent the barcode. But real-world signals are rarely perfect. The threshold must adapt to the signal level, the contrast, and the noise.

One approach is to use a peak-and-hold circuit to capture the maximum signal level (corresponding to a white space) and a valley-and-hold circuit to capture the minimum signal level (corresponding to a black bar). The threshold is then set halfway between these two levels. This adaptive threshold technique is widely used in commercial barcode readers and is described in many patents.

For example, US5616907, from Symbol Technologies, describes a barcode scanner with a paper surface detection unit that uses a peak hold circuit to set the threshold for digitization. The peak value is held and then compared to a reference to determine if the reader is scanning a barcode. This technique is part of a broader power-saving scheme, where the LED array is driven alternately when no barcode is present and simultaneously when one is detected.

Microchip's application note on the subject of sensor conditioning does not directly address barcode thresholding, but it does discuss the importance of setting proper voltage levels for the output to drive an ADC. Their example TIA design produces an output from zero to 4.5 volts, which is a suitable range for threshold detection circuits.

Chapter 13: Hysteresis - Preventing Chatter

When the analog signal is near the threshold, noise can cause the digitizer output to bounce back and forth, a phenomenon known as chatter. This is particularly problematic at the edges of the barcode, where the signal transitions from low to high or high to low. To prevent chatter, the digitizer includes hysteresis.

Hysteresis is a technique in which the threshold for switching from low to high is slightly different from the threshold for switching from high to low. If the signal is rising, the output switches at a higher threshold; if the signal is falling, it switches at a lower threshold. This creates a dead zone in which the output does not change, effectively filtering out noise.

A patent by PSC Inc., US5550367, describes an adaptive hysteresis circuit for barcode readers. The circuit uses peak detectors to establish the switching thresholds, and it adjusts these thresholds automatically based on the signal amplitude. This ensures that even weak signals are digitized cleanly, without chatter.

The adaptive hysteresis circuit described in this patent is particularly clever because it uses the signal itself to set the thresholds. A positive peak detector and a negative peak detector capture the maximum and minimum signal levels, and a comparator with hysteresis uses these levels to set the switching points. This technique is fast, accurate, and works over a wide range of signal amplitudes.

Chapter 14: Differentiation - A Better Way to Find Edges

Instead of digitizing the barcode signal directly, some readers digitize the derivative, or slope, of the signal. The derivative is zero when the signal is constant, positive when the signal is rising, and negative when the signal is falling. The edges of the barcode correspond to the peaks of the derivative.

There are several advantages to using the derivative. First, the peaks of the derivative are independent of the signal level, so variations in contrast do not affect the edge detection. Second, the derivative has zero baseline wander, so there is no need for a complicated baseline restorer. Third, the derivative is insensitive to low-frequency drift, such as that caused by changing ambient light.

Patent US4740675 describes a reader that uses a differentiator to find the edges of the barcode. The differentiator produces a positive peak at the transition from black to white and a negative peak at the transition from white to black. These peaks are then digitized using a set of comparators with adaptive thresholds.

The disadvantage of the derivative approach is that it is sensitive to high-frequency noise, which can produce false peaks. To mitigate this, the signal is often low-pass filtered before differentiation, or the derivative is integrated over time to reduce the effect of noise.

Chapter 15: Adaptive Thresholding with Differentiation

When differentiation is combined with adaptive thresholding, the result is a powerful and robust digitization system. The signal is first differentiated to produce peaks at the edges. Then, a threshold is set based on the amplitude of these peaks. Only peaks that exceed the threshold are considered valid edges.

Patent US4740675 describes this approach in detail. The differentiated signal is passed through a peak detector that captures the maximum peak amplitude. This peak value is then multiplied by a factor, typically 0.3, to set the threshold. The threshold is thus proportional to the signal amplitude, ensuring that weak signals are still digitized correctly.

The patent describes how the threshold factor of 0.3 was chosen as a good compromise between detecting only the strongest edges and missing some edges due to noise or low contrast. This empirical tuning is a common theme in barcode reader design---the theoretical optimum often differs from the practical optimum, and testing is required to find the best values.

This adaptive thresholding technique is also described in US5616907, which uses a peak hold circuit and a comparator to set the threshold based on the signal amplitude. The circuit is used to detect the presence of a paper surface, but the same principle applies to thresholding the barcode signal itself.

Chapter 16: Comparator-Based Digitization - A Practical Example

To make these concepts concrete, let us consider a practical comparator-based digitizer as described in a patent from the 1990s. This circuit is elegant in its simplicity and effective in its performance.

The circuit begins with a differentiator that produces a signal proportional to the slope of the barcode reflectance. This differentiated signal is then amplified and applied to two comparators. One comparator has a positive threshold and detects positive-going edges; the other has a negative threshold and detects negative-going edges. The outputs of these comparators set and reset a flip-flop, producing a clean digital output.

The thresholds are generated by a peak detector that captures the amplitude of the differentiated signal. The peak detector's output is divided by a resistor network to produce both a positive and a negative threshold. These thresholds automatically track the signal amplitude, so the digitizer works equally well for near and distant barcodes.

This approach, described in a patent by the same inventor, was used in many commercial slot readers and handheld scanners. The circuit was designed to be simple, robust, and cheap to manufacture, making it suitable for the mass market.

Chapter 17: The Microcontroller - Brains Behind the Operation

After the digitizer has produced a stream of ones and zeros, the microcontroller takes over. The microcontroller's job is to measure the widths of the pulses, interpret the pattern according to the barcode standard, and output the decoded data.

In a typical barcode reader, the microcontroller includes a timer/capture unit that can measure the duration of pulses with high precision. The timer is started when the signal changes from low to high and stopped when it changes from high to low, or vice versa. The measured times are then compared to a set of expected widths to determine the value of each bar and space.

Texas Instruments has been active in this area, providing reference designs that integrate the microcontroller with the analog front end. Their TRF7960 RFID reader chip, while primarily for RFID, shares many of the same building blocks as a barcode reader, including a configurable analog front end and a microcontroller interface. This integration reduces the number of components required and simplifies the overall design.

A recent development from Texas Instruments is the AM62A processor, which includes a deep learning accelerator for barcode imaging. This processor can run a neural network that localizes barcodes in an image, even when they are damaged or partially obscured. This represents a significant advance in barcode reading technology, moving from simple digitization to sophisticated image processing.

Chapter 18: Timer-Based Width Measurement - Measuring the Bars

Measuring pulse widths accurately is essential for decoding barcodes. The microcontroller must measure the time between edges with resolution better than the narrowest bar width. For a typical barcode with a narrow bar width of 0.25 mm and a scanning speed of 100 mm/s, the narrow bar will be present for about 250 microseconds. A timer with a resolution of 0.5 microseconds would measure this bar with an accuracy of about 0.2%, which is more than adequate.

The timer/capture unit of the microcontroller is the key to this measurement. In capture mode, the timer is free-running, and the value of the timer is latched whenever a specified event occurs on an input pin. The microcontroller can then subtract successive timer values to determine pulse widths.

Texas Instruments' application notes on microcontrollers for barcode reading describe this technique in detail. The capture unit can be configured to trigger on both rising and falling edges, so the microcontroller can measure both the high and low times of the signal.

In practice, the microcontroller must also handle variations in scanning speed. If the user scans the barcode faster, the pulse widths will be shorter. The decoder must normalize the measured widths by the overall time of the scan, comparing ratios of widths rather than absolute values. This speed normalization is essential for reliable decoding.

Chapter 19: Start and Stop Patterns - Finding the Beginning and End

Every barcode symbology has a unique start and stop pattern that tells the decoder where the data begins and ends. For Code 39, for example, the start and stop character is an asterisk (*), which has a specific pattern of five bars and four spaces. The decoder searches for this pattern in the digitized signal; if it finds it, it knows that the following characters are data.

The process of finding the start and stop patterns is the first step in decoding. The microcontroller scans the digitized signal, looking for a sequence of bars and spaces that matches the start pattern for the symbology being used. Once the pattern is found, the decoder can proceed to extract the data characters.

In a practical design, the decoder may try multiple symbologies. The start pattern for Code 39 is different from that for UPC, which is different from that for Interleaved 2 of 5. The decoder must try each pattern in turn until it finds a match. This is known as auto-discrimination, and it is a standard feature in modern barcode readers.

Some readers, particularly those based on imaging, can detect the barcode's orientation and skew. The decoder can then compensate for these distortions, allowing the reader to decode barcodes that are not perfectly aligned with the scanning direction. This is especially useful for handheld readers that are not held precisely.

Chapter 20: Edge-to-Edge vs. Module-Width Decoding

Once the start pattern has been found, the decoder must extract the data. There are two primary approaches: edge-to-edge decoding and module-width decoding.

In edge-to-edge decoding, the decoder measures the distance between successive edges. For a barcode that encodes data in the widths of bars and spaces, these distances directly correspond to the data values. For example, in Code 39, each character consists of five bars and four spaces, with each bar or space being either narrow or wide. The decoder measures the widths and determines which are narrow and which are wide based on a ratio.

In module-width decoding, the decoder determines the width of the basic module, which is the smallest unit of width in the barcode. All other widths are multiples of this module. The decoder measures the total width of the character and divides it by the total number of modules to find the module width. This approach is more robust to variations in scanning speed and print quality.

Microchip's application notes on barcode decoding provide examples of both approaches. The module-width approach is generally preferred for modern readers because it is more tolerant of distortion and provides better performance in challenging conditions.

Chapter 21: Speed Compensation - Adjusting for User Behavior

One of the most challenging aspects of handheld barcode reading is that the scanning speed varies from user to user and from scan to scan. A user who scans quickly will produce narrower pulses than a user who scans slowly. The decoder must compensate for this variation.

Speed compensation is typically done by measuring the total time of the scan, from the start pattern to the stop pattern. The decoder then normalizes the individual pulse widths by this total time. For example, if a character is supposed to be 10 modules wide and the total scan time is 1000 microseconds, each module is 100 microseconds. The pulse widths are then compared to this module width.

Patent US4740675 describes a speed compensation technique that uses the initial peak of the differentiated signal to set the threshold levels. The first peak, which occurs when the edge of the card passes the optics module, has an amplitude that is proportional to the scan speed. The thresholds are derived from this peak, so the digitizer's response is automatically adjusted for speed.

This technique is elegant because it does not require any explicit speed measurement; the speed information is embedded in the signal itself. This makes the circuit simple and robust.

Chapter 22: Power Supply - The Often-Overlooked Critical Component

The power supply of a barcode reader is critical to its performance. Digital circuits, such as the microcontroller and memory, generate a great deal of noise. This noise can couple into the analog front end through the power supply lines, degrading the signal quality.

To prevent this, the analog and digital sections of the reader should have separate power supplies. The analog supply should be clean, with low noise and good regulation. A low-dropout regulator, or LDO, is typically used for the analog supply, providing a stable voltage that is isolated from the digital supply.

Texas Instruments' TRF7960 RFID reader chip, while not a barcode reader, provides a good example of power supply design for mixed-signal systems. The chip includes separate internal power supplies for the analog, digital, and power amplifier sections, providing excellent isolation.

In a barcode reader, the analog supply should be bypassed with both a large tantalum capacitor and a small ceramic capacitor. The tantalum capacitor provides bulk energy storage, while the ceramic capacitor suppresses high-frequency noise. The capacitors should be placed as close as possible to the analog circuits to minimize the inductance of the connections.

Chapter 23: Grounding - The Star Ground Strategy

Grounding is a subtle but important aspect of barcode reader design. A poor ground can introduce noise into the analog signal, degrade the performance of the digitizer, and cause decoding errors.

The star ground strategy is the standard approach. All grounds are connected at a single point, usually the negative terminal of the power supply. This prevents ground currents from flowing between different sections of the circuit and creating voltage drops.

In practice, the ground plane of the PCB is divided into analog and digital sections, which are joined at the star point. The analog ground section should contain all the analog components, including the photodiode, TIA, PGA, and comparator. The digital ground section should contain the microcontroller, memory, and digital logic.

Texas Instruments recommends this approach in their application notes on mixed-signal design. The analog and digital grounds should be connected by a single low-impedance path, such as a zero-ohm resistor or a ferrite bead.

Chapter 24: PCB Layout - Keeping the Signal Paths Short

The physical layout of the printed circuit board is crucial for achieving good performance. The signal paths should be as short as possible, especially the connections between the photodiode and the TIA. Long traces act as antennas, picking up noise and interfering with the signal.

The photodiode is a high-impedance current source, and its output is very small. Any leakage current or capacitance on the trace can degrade the signal. For this reason, the photodiode should be placed very close to the TIA input, and the trace should be as short and as direct as possible.

Microchip's application note describes a TIA design where the photodiode is placed on the same side of the PCB as the op-amp, with a very short connection between them. This minimizes the parasitic capacitance and reduces noise pickup.

The use of surface-mount components is also beneficial. Surface-mount resistors and capacitors have lower parasitic inductance and capacitance than their through-hole counterparts, making them better suited for high-frequency applications.

Chapter 25: Guard Rings - Protecting the High-Impedance Node

A guard ring is a trace that surrounds a high-impedance node and is driven by a low-impedance buffer to the same voltage as the node. This prevents leakage currents from flowing into the node and keeps the voltage stable.

In a TIA, the input node is at a virtual ground potential. A guard ring connected to ground can be placed around the input trace to provide a low-impedance shield. Any leakage current that tries to flow from the guard ring to the input trace will be shunted away, reducing error.

This technique is described in various application notes from Texas Instruments and Microchip. The guard ring should be placed on both the top and bottom layers of the PCB, connected by vias. This provides a complete shield around the input node.

The guard ring is particularly important in humid or dirty environments, where leakage currents through the PCB insulation can be significant. By reducing these currents, the guard ring improves the reliability of the reader.

Chapter 26: EMI Shielding - Protecting Against Interference

Barcode readers are often used in environments with significant electromagnetic interference, or EMI. Motors, wireless devices, and other electronic equipment can radiate noise that interferes with the sensitive analog circuits of the reader.

To protect against EMI, the analog section of the reader is often enclosed in a metal shield. This shield is connected to the analog ground, providing a low-impedance path for interfering signals. The shield should be made of a highly conductive material, such as copper or aluminum.

Ferrite beads are also used on the supply and signal lines to suppress high-frequency noise. A ferrite bead is a passive component that acts as a low-pass filter, attenuating high frequencies while passing DC and low frequencies.

In the design of the TRF7960 RFID reader, Texas Instruments recommends careful attention to EMI shielding. The chip includes an internal band-pass filter that rejects out-of-band noise, further improving its immunity to interference.

Chapter 27: Laser Diode Readers - An Alternative Approach

While LED-based readers are common, many handheld scanners use a laser diode. A laser produces a coherent, collimated beam that can be focused to a very small spot. This allows the reader to read barcodes from a greater distance and with higher resolution.

The laser diode itself requires a more complex drive circuit than an LED. The laser's output power must be carefully regulated to maintain a constant light level, and the diode must be protected from electrostatic discharge and overcurrent.

Most laser readers include an automatic power control, or APC, circuit. A monitor photodiode inside the laser package senses the optical output and provides feedback to a control loop. This loop adjusts the drive current to keep the output power constant, regardless of temperature or aging.

The laser beam is scanned across the barcode using a moving mirror. The mirror is typically oscillated by a galvanometer or rotated by a polygon. The scanning mechanism introduces additional challenges, such as the need to synchronize the photodetector with the mirror position.

Chapter 28: The Laser Scanning Mechanism - The Moving Mirror

The scanning mechanism is a critical part of a laser barcode reader. The laser beam must be swept across the barcode in a straight line, covering the entire width of the pattern. The speed and accuracy of the scan affect the quality of the resulting signal.

The most common scanning mechanism uses an oscillating mirror driven by a galvanometer. The mirror is mounted on a pivot and is driven back and forth by a coil and magnet. The frequency of oscillation is typically around 50 Hz, so the barcode is scanned 100 times per second (once in each direction).

The amplitude of the oscillation must be large enough to cover the barcode, and the scan must be linear, so the beam moves at a constant speed. The galvanometer control circuit includes a position sensor, often based on a Hall effect sensor or a piezoelectric sensor, to provide feedback to the drive amplifier.

This technology is mature and well-proven, but it has mechanical limitations. The mirror and galvanometer are moving parts, so they are subject to wear and failure. In contrast, imaging-based readers have no moving parts, making them more reliable and durable.

Chapter 29: Linear Image Sensor Readers (CCD/CIS)

Imaging-based readers use a linear array of photodiodes, known as a CCD or CIS, to capture an image of the barcode. The array is read out sequentially, producing a video signal that represents the reflectance along the length of the array. This signal is then processed in the same way as the signal from a scanner.

The advantage of an imaging-based reader is that it has no moving parts. The barcode is captured in a single exposure, so the reader is not dependent on scanning speed. This makes imaging-based readers more reliable and easier to use.

The disadvantage is that the image sensor must be read out at a high speed, and the resulting signal must be processed with an ADC. This requires a more powerful processor and more complex circuitry than a simple comparator-based scanner.

A patent from Symbol Technologies, US5616907, describes a reader that uses a line sensor and a peak hold circuit to detect the presence of a barcode. The reader then drives the LEDs to illuminate the barcode and captures the image. This design, from the 1990s, was an early example of an imaging-based barcode reader.

Chapter 30: Correlated Double Sampling - Reducing Noise in Imaging

CCD and CIS sensors are susceptible to several types of noise. Reset noise occurs when the pixel is reset before the integration period; it appears as a random offset in each pixel. Fixed-pattern noise is caused by variations in the sensitivity of the photodiodes.

Correlated double sampling, or CDS, is a technique that reduces both types of noise. In CDS, the pixel output is sampled twice: once during the reset phase and once after the integration period. The difference between the two samples is taken, canceling the reset noise and any fixed-pattern offset.

CDS is implemented with a pair of sample-and-hold circuits and a differential amplifier. The reset level is stored on one capacitor, and the signal level is stored on another. The amplifier then subtracts one from the other.

This technique is widely used in digital cameras and video cameras, and it is equally applicable to barcode imagers. By reducing the noise, CDS allows the reader to capture clear images of barcodes even in challenging conditions.

Chapter 31: Clock Generation for CCD Sensors

CCD sensors require a complex set of non-overlapping clocks to shift the charge from one pixel to the next. These clocks are typically generated by a dedicated clock driver IC or by a programmable logic device, such as a CPLD or FPGA.

The clocks must be precisely timed to ensure proper charge transfer. The timing is controlled by a crystal oscillator, which provides a stable reference frequency. The clock driver also provides the correct voltage levels, which are often higher than the supply voltage of the rest of the circuit.

In a barcode reader, the clock generation is typically performed by the microcontroller or a dedicated timing controller. The microcontroller provides the clock signals to the sensor driver, which in turn drives the CCD. This arrangement simplifies the design and reduces the component count.

Chapter 32: Decoding via Software - The Digital Approach

With the increasing power of microcontrollers and digital signal processors, many modern barcode readers decode the signal entirely in software. The analog signal is digitized by a high-speed ADC, and the resulting digital samples are processed by a software algorithm.

This approach has several advantages. First, it is more flexible; the algorithm can be updated to support new symbologies or to improve performance. Second, it allows for more sophisticated signal processing, such as digital filtering and matched filtering. Third, it avoids the need for precision analog components, such as comparators and peak detectors.

The software algorithm typically includes steps for baseline correction, edge detection, and decoding. The baseline correction removes any drift in the signal, such as that caused by ambient light. The edge detection finds the transitions between bars and spaces. The decoding step interprets the pattern according to the barcode standard.

Texas Instruments' AM62A processor takes this approach to the next level by using a deep learning accelerator to localize barcodes in an image. The processor can decode barcodes at up to 120 frames per second, making it suitable for high-speed applications.

Chapter 33: Digital Matched Filters - Improving SNR

One of the key techniques used in software decoding is the matched filter. A matched filter is a digital filter that is designed to maximize the signal-to-noise ratio for a known signal pattern. In barcode reading, the known pattern is the expected shape of the bar or space.

The matched filter is implemented by correlating the received signal with a template of the expected signal. The correlation peaks at the point where the received signal most closely matches the template. These peaks indicate the locations of the edges or the centers of the bars and spaces.

By using a matched filter, the reader can recover the barcode signal even when it is buried in noise. This allows the reader to decode barcodes that would be unreadable with a simple comparator.

The matched filter is particularly effective when the noise is white and Gaussian. In practice, the noise in a barcode reader is often non-white, due to the presence of 50/60 Hz hum and other interference. The filter can be designed to reject these specific frequencies, further improving performance.

Chapter 34: Baseline Wander Correction - Removing Drift

Even with AC coupling, the baseline of the barcode signal can drift. This occurs when the signal has long runs of black or white, causing the coupling capacitor to charge or discharge. The drift shifts the apparent threshold, making it more difficult to digitize the signal.

Baseline wander correction is a technique that removes this drift. The technique is simple: the software samples the minimum value of the signal during each scan and then subtracts this value from the entire scan. This restores the baseline to zero, allowing the threshold to be set correctly.

In a hardware digitizer, baseline wander correction can be performed by a baseline restorer circuit. This circuit uses a peak detector to capture the minimum value and then subtracts it from the signal. This technique is described in various patents and application notes.

The benefit of baseline wander correction is that it makes the digitizer immune to slow variations in the signal. This is particularly important for handheld readers, where the user may pause the scan over a long run of black bars.

Chapter 35: Retry Logic - Handling Bad Reads

Not all scans are successful. The barcode may be damaged, the contrast may be poor, or the user may scan too quickly. In these cases, the reader must decide whether to report a failure or to try again.

Retry logic is the decision-making process that handles bad reads. If the checksum fails, the reader may try again with a different gain setting or a different threshold. The reader may also retry the scan multiple times, hoping that one attempt will succeed.

The retry logic is typically implemented in the microcontroller firmware. The firmware monitors the decoding process and, if it detects an error, it instructs the hardware to try again. The firmware may also report the error to the user, indicating that the scan was unsuccessful.

The retry logic must be balanced against the need for speed. If the reader tries too many times, the user will be frustrated. A good design will make a few quick retries before giving up, minimizing the delay for the user.

Chapter 36: Example Design - A Discrete TIA

Let us now consider a concrete example of a discrete TIA design suitable for a barcode reader. This design uses commercially available components and follows the principles described in the previous chapters.

The op-amp is a Texas Instruments OPA380, which is a high-speed, low-noise amplifier designed for photodiode applications. The feedback resistor is 100 kilohms, and the feedback capacitor is 3.3 picofarads. The photodiode is a BPW34, biased at 5 volts.

This design achieves a bandwidth of about 500 kilohertz, which is sufficient for most handheld barcode readers. The compensation capacitor provides stability, and the output is compatible with the input of a comparator or an ADC.

The TIA is followed by a programmable gain amplifier, which allows the reader to adjust the gain based on the signal strength. The PGA can be implemented with a digital potentiometer in the feedback loop of an op-amp.

This discrete design is simple and flexible, making it suitable for prototyping and low-volume production. For high-volume production, an integrated AFE may be more cost-effective.

Chapter 37: Example Design - The Comparator with Hysteresis

The digitizer in this example uses a comparator with hysteresis to convert the analog signal to a digital stream. The comparator is an LMV7219, a high-speed push-pull comparator from Texas Instruments.

The threshold is set by a resistor divider, and the hysteresis is set by a resistor from the output to the non-inverting input. The hysteresis prevents chatter, even when the signal is noisy.

The comparator output is a TTL-level signal, which is compatible with the input of the microcontroller. The output is high when the signal is above the threshold and low when the signal is below the threshold.

This digitizer is simple and robust, and it works well for most barcode applications. The threshold must be set correctly for the signal level, but this can be done adaptively using a peak detector.

Chapter 38: Example Design - The Full AFE on a Single Chip

For applications where space and cost are at a premium, an integrated analog front end, or AFE, is an attractive option. The AFE contains the TIA, PGA, and ADC on a single chip, reducing the component count and simplifying the PCB layout.

Texas Instruments offers a variety of AFEs for optical sensing applications. The AFE4400, for example, is a fully integrated AFE for photodiode applications, including barcode reading. The chip includes a TIA with programmable gain, an ambient light cancellation circuit, and a high-speed ADC.

The AFE is controlled via an I2C or SPI interface, allowing the microcontroller to configure the gain, the filter settings, and other parameters. The AFE also includes a built-in oscillator, so no external clock is required.

This level of integration makes it easy to design a compact, reliable barcode reader. The designer must still attend to the PCB layout, but the analog circuitry is mostly contained within the chip, reducing the risk of noise.

Chapter 39: Power Budget - Estimating Energy Consumption

For handheld barcode readers, power consumption is a critical design parameter. The reader must operate for a full shift on a single battery charge, while still providing the performance expected by the user.

The LED is the largest power consumer. A typical LED pulse may be 1 ampere, but the duty cycle is low, perhaps 5%. This gives an average LED current of 50 milliamperes. The rest of the circuit, including the op-amps, the comparator, and the microcontroller, may consume 20 milliamperes.

The total power consumption is typically 15 to 20 milliamperes at 3.3 volts, or about 50 to 70 milliwatts. With a 1000 milliamp-hour battery, this gives about 50 hours of continuous operation.

For a portable design, the power budget must be carefully managed. The microcontroller may be put into a low-power sleep mode when not scanning, and the LED may be pulsed only when the trigger is pulled. These power-saving measures extend the battery life.

Chapter 40: Testing and Calibration - Ensuring Performance

Before a barcode reader can be shipped, it must be tested and calibrated. The calibration ensures that the reader meets the specifications for gain, threshold, and decoding accuracy.

The calibration process begins with a test pattern, typically a high-contrast barcode on a white card. The reader is placed at a known distance from the test pattern, and the gain is adjusted so that the signal amplitude is within the specified range. The threshold is then adjusted so that the digitized output matches the known pattern.

Some readers store the calibration values in an EEPROM, so the calibration is retained even when the power is turned off. This makes the reader easy to use and eliminates the need for frequent recalibration.

The testing process includes verifying the decoding accuracy for a variety of barcodes, including low-contrast and damaged barcodes. The reader must also be tested for immunity to ambient light and electromagnetic interference.

Chapter 41: The Elegant Bridge - A Summary of Lessons

The barcode reader is a masterclass in mixed-signal engineering. It balances optics, analog precision, digital timing, and power management in a way that is both elegant and challenging.

We have seen how the transimpedance amplifier converts the tiny current from the photodiode into a usable voltage, and how compensation is used to ensure stability. We have examined the comparator and the adaptive threshold, and how differentiation can improve edge detection. We have considered the microcontroller and the software that performs the final decoding.

We have also looked at specific examples from Texas Instruments, Microchip Technology, and Analog Devices. The TRF7960 RFID chip, the MCP6001U op-amp, and the OPA380 provide a wealth of design options. And the AM62A processor with its deep learning accelerator points the way to the future.

Throughout this journey, we have emphasized the practical aspects of design: the need for careful PCB layout, the importance of power supply decoupling, and the critical role of testing and calibration. These practical considerations are often the difference between a product that works and one that does not.

Chapter 42: The Art Lies in the Noise Floor

If there is one lesson to take away, it is that the art of barcode reader design lies in the noise floor. The signal from the photodiode is tiny, and it is surrounded by noise. The designer's task is to extract the signal from the noise, to reveal the barcode hidden within.

This requires careful attention to every aspect of the circuit. The photodiode must be biased correctly, the TIA must be compensated, and the PCB must be laid out with care. The power supply must be clean, and the grounds must be well-managed. The digitizer must be adaptive, and the decoder must be robust.

Noise is the enemy of the barcode reader. Every component, every trace, every connection is a potential source of noise. The skilled designer knows how to anticipate and mitigate these sources, creating a reader that is reliable and accurate.

Texas Instruments' AM62A processor, with its deep learning accelerator, offers a new way to battle the noise. Instead of trying to suppress the noise in the analog domain, this processor uses machine learning to find the barcode even in a noisy image. This represents a paradigm shift, moving from analog signal processing to digital image processing.

Chapter 43: The Future of Barcode Reading - AI and Imaging

The trend in barcode reading is toward imaging-based solutions, with increasingly sophisticated software. The hardware is becoming simpler, with integrated AFEs and single-chip solutions. The complexity is moving into software, where it is easier to update and improve.

The use of deep learning for barcode localization, as demonstrated by Texas Instruments, is a significant advance. The neural network can find barcodes even in cluttered images, and it can handle damaged or distorted barcodes. This opens up new applications, such as reading barcodes from a mobile phone screen or from a damaged package.

The future may also see barcode readers that are integrated into other devices, such as smart glasses or smartphones. The hardware will become smaller and more power-efficient, while the software will become more capable.

Despite these advances, the basic principles described in this article remain relevant. The transimpedance amplifier, the comparator, and the threshold are still the building blocks of the analog front end. The challenges of noise, power, and speed are still the challenges of the designer.

Chapter 44: Practical Advice for Designers

If you are setting out to design a barcode reader, here are some practical recommendations. First, start with a clear specification of the performance requirements: the reading distance, the resolution, the symbologies to be supported, and the power consumption.

Second, choose your components carefully. The photodiode, the op-amp, and the microcontroller are the key choices. Look for components that are suitable for the application and have good support from the manufacturer.

Third, lay out your PCB with care. Keep the analog and digital sections separate, use a star ground, and keep the signal paths short. Use guard rings and shields where necessary.

Fourth, test your design thoroughly. Use a variety of test patterns, and verify the performance under different lighting conditions. Calibrate the gain and threshold, and verify the decoding accuracy.

Fifth, be prepared to iterate. The first design may not meet all the requirements. Be ready to adjust the gain, the threshold, and the compensation. The art of barcode reader design is a process of refinement.

Chapter 45: Closing Thoughts - The Enduring Challenge

The barcode reader is a remarkable device. It turns a printed pattern into data, bridging the physical and digital worlds. Its design is a testament to the ingenuity of engineers who have solved a difficult problem in an elegant way.

We have explored the principles of barcode reader design, from the optical subsystem to the digital decoder. We have examined specific design examples from leading manufacturers, and we have seen how these designs address the challenges of noise, power, and performance.

The barcode reader is a classic example of a mixed-signal system, where analog and digital circuits must coexist and cooperate. It is a product that must be reliable, accurate, and low-cost, and that must work in a variety of challenging environments.

As we look to the future, the barcode reader will continue to evolve. The introduction of imaging and AI will expand its capabilities, while the demand for smaller, faster, and more reliable readers will drive innovation.

But the fundamental challenge will remain: to extract a signal from a noisy environment and to decode it with precision. That is the art of the barcode reader, and it is a challenge that will endure for years to come.

Detailed Summary: Key Takeaways

The barcode reader is, at its simplest, a device that converts optical contrast into electrical pulses, and then into data. But the path from light to data is fraught with challenges. Let us review the most important lessons from our exploration.

The Signal Chain is a System. Every stage of the signal chain matters, from the LED drive to the microcontroller. The TIA, the PGA, the digitizer, and the decoder must work together as a coordinated system. A weakness in any stage can degrade the overall performance.

The Transimpedance Amplifier is Critical. The TIA converts the photodiode current to a voltage, and its design sets the overall performance of the reader. The TIA must have low noise, sufficient bandwidth, and adequate gain. Compensation is essential to ensure stability.

Ambient Light is the Enemy. Ambient light adds a DC offset and noise to the signal. AC coupling, differential detection, and synchronous demodulation are all effective techniques for rejecting ambient light. The choice of technique depends on the cost and complexity constraints.

Adaptive Thresholding is Essential. The threshold level must be set correctly, and it must adapt to the signal level and contrast. Peak-and-hold circuits, digital sampling, and software algorithms can all be used to implement adaptive thresholding.

Power Management is a Key Concern. Handheld readers must operate on batteries, so power consumption is a critical design parameter. Pulsed illumination, low-power op-amps, and sleep modes can all help to extend battery life.

PCB Layout and Grounding are Non-Negotiable. A well-designed PCB is essential for achieving good performance. Short signal paths, separate analog and digital grounds, and proper decoupling are all crucial.

Imaging is the Future. Imaging-based readers are becoming more common, and they offer advantages in terms of reliability and ease of use. The use of deep learning for barcode localization is a significant advance.

Mixed-Signal Design is the Art. The barcode reader is a classic example of a mixed-signal system. The analog and digital circuits must be designed to coexist without interference. This requires careful attention to grounding, power supply decoupling, and PCB layout.

 

EasierSoft Barcode Label Design & Bulk Printing Software

---- Use Excel Data to Batch Print Barcodes on Label Sheets or Roll Labels  

---- How to use this barcode software

Download:  Free Barcode Software + Barcode Label Designer

Download Free Barcode Software at Softonic

     Download at CNET

Once you obtain a GS1/UPC/EAN barcode, or other barcode type and QR code, you can use our free software to batch print barcode labels onto Roll label paper using a professional label printer, or to batch print barcodes onto Avery 5160 label sheets using a regular laser or inkjet printer. Our software has free and paid versions.

The free version fully meets your needs for batch printing GS1/UPC/EAN barcodes. The paid version can import data from Excel and databases to batch print barcode labels with different values.

How to Start

Input Data

Import Excel Data

Print Barcode

Barcode Format

Label Designer

All Screen Shot

Export Barcode Image

Save Template

Output Word Excel

How to Use & FAQ:

Label Designer - Printing

Set the barcode label format to be printed

Other Barcode Label Format Settings

Barcode types supported by this program

Barcode Label Font Settings

Configuring the Barcode Print Rotation

Text Alignment for Barcode Labels

Automatically Adjusting Barcode Width

Text Beneath the Barcode

Configuring Barcode Size

Auto Calculate the Barcode Size

Export Barcode images

Export Barcode Image Format

File Names for Exported Barcode

Resolution of Exported Barcode Images

Fixed Folder for Exporting Barcode

Default Barcode Image Export Format

Print bulk barcodes quickly

Print barcodes to Avery 5160 label

How to bulk Barcode Printing

Sample - Avery 5162 (2x7) Label Sheet

Example: Print barcodes to 5*3cm roll

Example: Print barcodes to 5161 label

Example: Print barcodes to 5162 label

Example: Print barcodes to 5163 label

Example: Print barcodes to 5164 label

Example: Print portrait orientation 5164

Example: Print barcodes to 5167 label

Example: Print barcodes to 5168 label

Example: Print portrait orientation 5168

Example: Print barcodes to 5169 label

Example: Print barcodes to 5660 label

Example: Print barcodes to 5661 label

Example: Print barcodes to 5662 label

Example: Print barcodes to 5663 label

Example: Print barcodes to 5664 label

Example: Print portrait orientation 5664

Example: Print barcodes to 5873 label

Example: Print barcodes to 5874 label

Two ways to import Excel data

Import Excel Data - Pro Edition

Import Excel Data - Std Edition

Import Data from Excel - Detail

Load Data From Excel File

Data Editing Table

Copy Data From Excel

Four ways to input barcode data

Add ASCII Key E

Input Multiple Lines of Text for Barcodes

Generates Sequential Serial Numbers

Highlights

Excel integration: Import data directly from Excel to generate and print barcodes in bulk.

Label designer: Create complex labels with multiple barcodes, text, logos, and shapes.

Batch printing: Print thousands of barcodes at once using standard inkjet/laser printers or professional barcode printers.


Flexible editions:

Standard Edition: Simple batch printing with Excel data.

Professional Edition: Adds command-line automation for workflow integration.

Label Designer Edition: Advanced design features for complex labels.


Why Choose Our Barcode Solutions?

Cost-effective: Free online generator and permanent free desktop version available.

Easy to use: No technical expertise required—just input data and print.

Versatile: Supports nearly all 1D and 2D barcode types, including QR codes.

Trusted: Recommended by CNET and widely downloaded by users worldwide.


Suitable Use Cases

Small businesses and startups needing quick barcode labels for products.

Retailers and online sellers managing inventory with batch barcode printing.

Manufacturers requiring sequential or custom barcode labels for packaging.

Educational and testing environments where barcodes are used for tracking.

 

 

CONTACT

cs@easiersoft.com

If you have any question, please feel free to email us.

 

https://free-barcode.com

 

<<< Back to Directory <<<     Barcode Generator     Barcode Freeware     Privacy Policy