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 <<<

From Photons to Bits: The Circuit Principles and Design Reality of Barcode Scanners (P53)

Recommended: Free barcode software - Bulk barcode generator and label printing, Free for life. Download

From Edges to Bits: How Hardware Timers Define the Physical Limits of Barcode Scanning

Summary: In the decoding chain of a barcode scanner, the measurement of edge-to-edge time intervals is a seemingly inconspicuous yet critically important step. The resolution of the hardware timer directly determines the narrowest barcode element a scanner can distinguish. Starting from this circuit-level reality, this article systematically maps the relationship between time resolution and barcode precision, and then delves into retail, logistics, healthcare, manufacturing, and electronic ticketing to show how this underlying parameter shapes scanning experience and system design in real-world scenarios.

1. Introduction: The First Gate After Photons Become Bits

Once the analog signal has been digitized, the first substantive question facing the decoder is: how do we convert the edges on the waveform into meaningful width numbersThe photodetector converts changes in reflected light intensity into a voltage waveform, and a comparator then reshapes the waveform into a square wave, so that every transition between a black bar and a white space becomes a jumping edge. From this moment on, the information of the physical world has receded, and only time remains. The task of the decoding circuit is to measure the time intervals between these jumping edges and then reconstruct the logical structure of the barcode symbol.

This process sounds simple, but it is full of pitfalls. Scanning speed is not constant: the wobble of a wrist during handheld scanning, the acceleration and deceleration of parcels on a conveyor belt, and even the tiny pauses when an operator switches hands can make the same barcode present radically different time widths on the waveform. Early decoders tried to perform normalization with complex analog circuits, but the core idea of modern designs is more direct: use a hardware timer to count at a fixed frequency, record the count value when each edge arrives, and the difference between adjacent count values is the raw time width of that bar or space.

The resolution of the timer---that is, the smallest time unit of the count---plays a non-negotiable role here. It is like the smallest gradation on a ruler, determining the smallest distance you can confidently resolve. If the gradation is too coarse, a narrow bar and its adjacent space will collapse into the same number, and the decoder has no way to tell whether this is one narrow bar or two bars pressed close together. Only when the gradation is fine enough can the narrowest module width have a recognizable 'pixel' in the digital domain.

The focus of this article is not on error-correction algorithms or on the history of symbologies, but on how this most fundamental circuit parameter manifests its consequences in real applications across industries. The next section first establishes the basic conversion framework between resolution and barcode size, and then we enter specific scenarios one by one.

2. The Basic Conversion Between Timer Resolution and Barcode Precision

The reason a one-microsecond resolution is regarded as a practical threshold is that, at typical scan speeds, it happens to cover the narrow-bar width of a five-mil barcode. Five mils is five thousandths of an inch, about zero point one two seven millimeters. Suppose the scanning beam sweeps across the barcode surface at fifty inches per second; the time a five-mil-wide narrow bar stays in the beam is five mils divided by fifty inches per second, which equals zero point zero zero zero one seconds, or one microsecond. If the counting period of the timer is exactly one microsecond, then the count value corresponding to this narrow bar is one. This is already the usable limit: when the count value is one, the decoder can only rely on the proportional relationship between adjacent elements to make a judgment, and any tiny timing jitter may cause a misjudgment.

If we relax the conditions somewhat and the scan speed drops to twenty-five inches per second, the dwell time of the same five-mil narrow bar doubles to two microseconds. With a one-microsecond timer resolution, the count value is two, and the decision margin is much more comfortable. Conversely, if the scan speed rises to one hundred inches per second, the five-mil narrow bar stays for only zero point five microseconds, and a one-microsecond timer cannot catch it at all---the count will be either zero or one, and the phase jitter of edge detection will make the same bar give completely different readings on different scan passes.

This is why, in the specification tables of industrial handheld scanners, 'five mil' often appears alongside 'minimum resolution,' while higher-speed fixed-mount scanners adopt higher-resolution timing schemes or rely on more sophisticated interpolation techniques to subdivide time. It must be emphasized that higher timer resolution is not always better. The higher the counting frequency, the greater the power consumption, the harder it is to control electromagnetic interference, and at low scan speeds the count values become very large, imposing additional requirements on counter bit width. Engineering choices are always about finding a balance between 'good enough' and 'cost.'

The following sections will show that different industries understand this balance point in completely different ways.

3. Retail Checkout: Generous Design Under High Fault-Tolerance Requirements

Retail scanning is one of the most forgiving scenarios in barcode technology, but it is precisely this forgiveness that conceals the sophistication of the underlying timer design. Product barcodes on supermarket checkout counters usually use magnification ratios of one hundred to two hundred percent, with X-dimensions between zero point two six millimeters and zero point six six millimeters. Taking the most common zero point three three millimeter target size, the narrow-bar width is already two point six times that of five mils. Even if the cashier waves the scanner at a casual speed, the dwell time of a narrow bar far exceeds one microsecond, and a one-microsecond-resolution timer has ample decision margin here.

However, the real challenge in retail scenarios is not the precision of a single measurement but omnidirectional scanning and motion tolerance. An omnidirectional scanner needs to capture the same barcode from multiple angles in a very short time, and the scanning speed at each angle is different, corresponding to completely different count-value sequences. The decoder must perform consistency checks across these sequences: the width ratios derived from the same barcode scanned from different directions should match. If the timer resolution is too coarse, the narrow-bar count values at certain angles may degenerate into a single count because the speed is too fast, causing the data from that scan pass to be discarded. What the cashier perceives is 'it took two or three tries before it beeped,' but they will not know that the problem lies in the timing circuit.

In self-checkout lanes, this effect is amplified. Customers are unfamiliar with the scanning rhythm and often wave products back and forth in front of the window, with speed variations much more violent than those of professional cashiers. Some self-checkout terminals therefore use higher-frequency timers, or enable more conservative decision thresholds in scan passes judged to be 'high-speed sweeps'---better to scan once more than to force a decode when the count values are unreliable. This is an interesting engineering trade-off: when resolution is insufficient, the smart approach is not to force a decode but to refuse it.

4. Logistics Sorting: The Direct Clash Between Speed and Precision

Logistics sorting lines are where timer resolution faces its most severe test, because here scanning speed and barcode size pull in opposite directions. Parcels move on cross-belt sorters at speeds of two to three meters per second, barcodes are often printed on curved cardboard boxes, and quality varies widely. GS1 specifies a relatively wide range for the X-dimension of GS1-128 barcodes on logistics units, with a minimum of zero point four nine five millimeters and a maximum of zero point nine four millimeters. Zero point four nine five millimeters is about nineteen point five mils, which seems much more generous than five mils, but do not forget the speed: three meters per second is about one hundred eighteen inches per second, dozens of times faster than handheld scanning. A narrow bar of zero point four nine five millimeters passing through the scan line at this speed stays for only about zero point one seven microseconds. A one-microsecond timer is completely powerless here.

This is one of the reasons why logistics sorting generally uses imaging scanners rather than laser scanners. An imaging scanner captures an entire frame of image, and the spatial width of the barcode on the sensor is determined by the optical magnification, so its relationship with parcel movement speed is greatly weakened---as long as the exposure time is short enough and motion blur is controllable, the number of pixels constitutes another kind of 'resolution.' However, this does not mean that time measurement has disappeared from logistics scenarios. In the image-processing pipeline, the module width of the barcode is expressed in pixels, and the physical size of a pixel is determined by the lens focal length and working distance. In a sense, the constraint of timer resolution has been transformed into a constraint on pixel resolution and exposure time; the fundamental problem is still 'how large a minimum unit to use to measure the narrowest feature.'

On some medium- and low-speed sorting lines, laser scanners are still in service. These systems usually have timing circuits with frequencies far higher than one microsecond, and at the same time perform real-time compensation for scanning speed: by measuring the total time between the start character and the stop character of the barcode, they infer the average speed of that scan pass and then calibrate the width of each element in reverse. This is a post-hoc correction strategy; it cannot recover quantization errors that have already occurred, but it can prevent systematic misjudgments caused by speed differences.

5. Healthcare: Small Barcodes and the Retreat of Timing in the Imaging Era

The healthcare sector has an almost stringent requirement for compressing barcode size, and this pressure ultimately propagates to the design choices of the measurement circuit. Label space on drug ampoules, surgical instruments, and test tube racks is extremely limited, and the minimum X-dimension of Data Matrix specified by GS1 for direct part marking of medical devices can be as low as zero point one millimeter. At such a small scale, the spot diameter of a laser scanner itself is already close to or even exceeds the module width, and the quantization error of a one-microsecond timer is no longer the primary contradiction by comparison. The more fundamental problem is signal-to-noise ratio: when the spot falls on the edge of a narrow bar, the transition band width of the reflected signal may exceed the module itself, and the phase uncertainty of edge detection is far greater than the counting step of the timer.

For this reason, the healthcare industry has been gradually moving toward imaging scanners for many years. The GS1 healthcare work group has explicitly recommended that trading partners invest in imaging technology rather than continue to rely on lasers. Imaging sensors capture the entire barcode image in parallel as a pixel array, module width corresponds to a number of pixels, and the decoding algorithm performs width determination in the spatial domain rather than the time domain. The deeper meaning of this shift is that the hardware timer is no longer the bottleneck in small-barcode healthcare scenarios; the bottleneck has moved to the modulation transfer function of the optical system and the fill factor of the sensor. The story of one-microsecond resolution gives way here to pixel size, lens diffraction limits, and illumination uniformity.

But this does not mean that the timing circuit has completely exited the stage. Even in imaging scanners, automatic exposure control still relies on time integration: the duration for which the sensor accumulates photocharge determines the amplitude of the output signal. When scanning small Data Matrix codes on dimly lit pharmacy shelves, the exposure time may be extended to several milliseconds, at which point motion blur introduced by handheld wobble becomes a new 'time resolution' problem---except that the scale here is milliseconds rather than microseconds, and the constraint comes from mechanical stability rather than the counting circuit.

6. Manufacturing Work-in-Process Tracking: Timer Adaptation at Medium Speeds

Barcode scanning on factory floors falls between the composure of retail and the urgency of logistics, forming a class of application range where one-microsecond resolution is 'just enough but not generous.' On automotive parts assembly lines, workpieces pass fixed scanning stations at speeds of zero point five to one meter per second, and the Code 128 or Data Matrix on labels usually uses X-dimensions of zero point two five to zero point three eight millimeters. At zero point two five millimeters and zero point five meters per second, the dwell time of a narrow bar is about zero point five microseconds. A one-microsecond timer can only give a reading of zero or one here, and the decision relies entirely on comparison with adjacent wide elements, with reliability at the margin.

In practice, manufacturing engineers often circumvent this marginal state through two means. The first is to reduce line speed or increase the dwell time at the scanning station: set up buffer sections at key traceability points so that workpieces briefly decelerate before scanning. The second is to increase barcode size: where label area permits, raise the X-dimension above zero point three eight millimeters so that the narrow-bar dwell time reaches one microsecond or more. Both means are essentially compromises with timer resolution, only in different ways.

In electronics manufacturing, serial-number barcodes on printed circuit boards are even smaller, with X-dimensions often on the order of one hundred fifty micrometers. Such barcodes are rarely read with laser scanners, precisely because of the dual limitations of timer resolution and spot size. Fixed high-resolution imaging modules become standard; they use multi-megapixel sensors and telecentric lenses to ensure the resolvability of tiny modules in the spatial domain, and the careful calculation in the time domain is completely bypassed.

7. Electronic Ticketing and Mobile Screen Scanning: The Unexpected Encounter Between Display Pixels and Timer Counts

When barcodes move from paper to phone screens, timer resolution encounters an unexpected opponent: display refresh and pixel grids. Boarding passes, event tickets, and membership codes are presented on phone screens in a fundamentally different way from traditional printed barcodes. The screen is composed of discrete pixels, and the 'bars' and 'spaces' of the barcode are assembled from pixel rows; the sharpness of their edges is limited by pixel pitch and the screen's subpixel rendering. For a laser scanner, when the scanning beam sweeps across the screen, the reflected signal is modulated not only by the barcode pattern but also by the reflection from the screen glass and the light-emitting characteristics of the pixels, and the jitter of edge detection is significantly greater than that of paper.

The situation of the one-microsecond timer here is rather subtle. The X-dimension of screen barcodes is usually deliberately made large---the Aztec code or PDF417 on airline boarding passes often occupies a considerable proportion of the screen width---so that the narrow-bar dwell time falls in the range of several microseconds to more than ten microseconds. From this perspective, the timer resolution is ample. But the problem is that the 'blur' of the edges is spatial rather than temporal: the discretization of screen pixels means that the transition between bar and space is not an ideal step but a gradient completed over several pixels. The jumping edge output by the comparator therefore carries an uncertain phase offset, which the timer records as a counting error; its magnitude is related to screen pixel density and scanning spot size, and has nothing to do with the timer's own resolution.

This reveals a more general rule: timer resolution sets the lower bound of quantization error, but the upper bound of total system error is often determined by the sensor front end and media characteristics. In electronic ticketing scenarios, investing in higher-frequency counting circuits yields little, and improving optical focusing and edge-detection algorithms is the right path. The reason why some airport boarding-gate scanners read screen barcodes slightly more slowly than paper barcodes lies precisely here.

8. Libraries and Archives: Resolution Redundancy in Low-Speed Scenarios

In the scanning of library barcodes and archive labels, there is significant redundancy in timer resolution, but this redundancy is not waste---it is fault-tolerance space reserved for old labels and worn media. Library barcodes usually use Code 39 or Codabar, with X-dimensions above zero point two five millimeters, and the scanning action is performed manually at speeds rarely exceeding twenty inches per second. The narrow-bar dwell time easily reaches five microseconds or more, and a one-microsecond timer gives a count value of five or greater, so the quantization error is small relative to the measured value.

The value of this redundancy is particularly evident in old books. A book that has been borrowed dozens of times may have barcode labels with edge wear, local fading, or reflectivity changes caused by transparent tape coverage. These defects appear on the waveform as edge-position shifts or amplitude attenuation. If the timer resolution is exactly at the limit, these tiny shifts are enough to make the narrow-bar count value jump from three to four, triggering a decode failure. But when the count value is five or six, the same shift causes only a relative change of one-tenth to one-fifth, and the decoder can easily absorb it through proportional decision-making.

There is also a special class of media in archive management: barcodes on microfilm and old mimeographed labels. Their contrast is far lower than that of modern thermal-printed labels, and the edge transition band is wider. Low-speed scanning provides a time window for signal filtering and multi-sample averaging, and the high count values of the timer make this averaging equally feasible in the digital domain---the decoder can take the median of multiple scan results for the same bar, and each scan's count value is large enough that the median will not shift because of quantization noise.

9. A Comparative Perspective: Why Imaging Scanners Have Not Made Timers Disappear

The spread of imaging scanners is often misunderstood as the end of time measurement; in reality, it merely shifts the object of timing from barcode elements to exposure and readout cycles. In a CMOS sensor, the charge accumulation time of each row of pixels is set by the exposure control register, and the readout circuit sequentially converts analog voltages into digital values row by row. The timing precision of this process is also measured in microseconds or even nanoseconds; it simply no longer directly measures the time width of bars and spaces, but instead determines the signal-to-noise ratio of the image and the degree of motion blur.

For barcodes in motion, the choice of exposure time is a trade-off parallel to timer resolution. Too short an exposure weakens the signal, lets dark noise dominate, and blurs the edges; too long an exposure causes the barcode to smear on the sensor, and the boundaries between modules melt together. Taking the logistics sorting line speed of three meters per second as an example, if the exposure time is one hundred microseconds, the parcel moves zero point three millimeters during exposure, already exceeding the width of a five-mil module. High-speed imaging scanners must therefore compress exposure to the tens-of-microseconds level while using strong illumination to compensate for signal strength. Here the 'resolution' is no longer the counting period but the blur radius determined by the product of exposure time and motion speed.

Looking back at the significance of the one-microsecond timer from this comparative perspective, the conclusion becomes clear: the constraint of time resolution has never disappeared; it has merely changed its name in different circuit forms. In laser scanners it is called the counting period; in imaging scanners it is called the combination of exposure time and readout rate; in both it serves the same goal---ensuring that the narrowest feature still has enough 'units' to express itself after digitization.

10. Detailed Summary: A Panoramic Review from Circuit Parameters to Industry Practice

The resolution of the hardware timer is the earliest-appearing and most easily overlooked quantization boundary in the barcode decoding chain; in different industries it may be a hard constraint or be obscured by other factors, but it has never truly left the stage.

From the circuit level, a one-microsecond counting period provides a unit count value for a five-mil narrow bar at typical handheld scanning speeds, constituting the dividing line between 'readable' and 'barely readable.' Barcodes below five mils require finer timing or slower scanning; barcodes above five mils enjoy a gradually increasing decision margin.

In retail checkout scenarios, barcode sizes are generous and speeds moderate, and timer resolution sits in the comfort zone. The real challenge comes from the consistency checks of omnidirectional scanning and the speed fluctuations of self-service scenarios, and system design tends to trade refusal-to-decode for reliability. Logistics sorting pushes speed up by more than an order of magnitude, and time measurement by laser scanning is almost ineffective here; imaging solutions replace time resolution with spatial resolution, but exposure-time control continues the same kind of trade-off. Small healthcare barcodes shift the contradiction from timing precision to optical limits, making imaging technology a necessity, and the role of the timer fades into exposure control. Manufacturing work-in-process tracking sits in the middle ground, where engineers adapt to the one-microsecond resolution constraint by adjusting line speed and label size, while tiny direct part markings in electronics manufacturing completely leave the applicable domain of laser scanning. Screen barcodes in electronic ticketing reveal the edge uncertainty introduced by media discretization, which is superimposed on the timer quantization error, making mere increases in counting frequency yield limited benefit. The redundant resolution in library and archive scenarios provides valuable fault-tolerance space for old media, proving the design value of 'adequate with surplus.'

One thread runs through all these scenarios: timer resolution sets the theoretical lower bound, while the readability of the actual system is jointly determined by front-end signal-to-noise ratio, media characteristics, motion stability, and decoding algorithms. Engineers who understand this parameter will neither treat it as a cost item to be compressed indefinitely nor expect to solve all reading difficulties simply by increasing the counting frequency. After photons become bits, time is the first dimension to be measured, and the scale of measurement is always engaged in a silent negotiation with the roughness and variability of the physical world.

 

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