Chapter 65: Miniaturization - Barcode Readers on Chips |
Brief Summary |
Machine vision is undergoing a profound transformation driven by the relentless march of miniaturization. The bulky, hand-held laser scanners of the past are giving way to System-on-Chip (SoC) solutions that can be embedded into the smallest of devices. This chapter explores the technological shift towards barcode scanning chips, detailing how they are integrated into mobile phones, AR glasses, smartwatches, and even futuristic contact lenses for real-time identification. We will examine the unique technical characteristics of the Code 39 symbology---its simplicity, self-checking nature, and its low data density---and how these features dictate its continued, albeit specific, use across various industries. The journey from dedicated hardware to a software-defined, chip-based sensor is not just a story of smaller components; it is a story of barcode scanning becoming an invisible, ubiquitous utility. |

|
1. The Invisible Scanner: From Peripheral to Component |
For decades, the barcode scanner was a distinct piece of hardware. It was the laser gun at the supermarket checkout or the bulky handheld terminal used by warehouse workers. These devices contained a complex chain of components: a laser or imaging engine, optics, a dedicated microprocessor for decoding, and a power supply, all packaged into a specialized device. This was a 'peripheral' model---scanning was an explicit, deliberate action performed by a dedicated tool. |
The revolution began with the integration of imaging technology into mobile phones. Suddenly, millions of people carried a device with a high-resolution camera, a powerful processor, and an internet connection. The question was no longer 'How do we build a scanner' but 'How do we turn a phone into a scanner' The answer lies in the System-on-Chip. |
An SoC integrates all or most of the components of a computer or other electronic system into a single chip. For barcode scanning, this means integrating the image sensor interface, the image signal processor, and the decoding algorithms onto a single, low-power piece of silicon. Modern SoCs, like those based on the RISC-V architecture, can be customized for specific tasks like barcode recognition, achieving high performance at low power and low cost. A custom SoC designed for barcode identification can run at a clock frequency of 40 MHz and successfully decode barcodes with a 99.5% recognition rate on a 640x480 image. |
This integration is the foundation for the future. When the hardware and software are optimized and embedded, the 'scanner' is no longer a device; it becomes a feature, a capability that can be woven into the fabric of everyday technology. |

|
2. The Technical Profile of Code 39 |
To understand the continued use and limitations of certain barcodes in this new era of miniaturization, we must look at the symbology itself. Code 39, also known as Code 3 of 9, is one of the oldest and most widely used barcode standards. Its characteristics make it both robust and limited in the age of miniaturization. |
The Character Set: Code 39 is an alphanumeric symbology. It encodes 43 characters: uppercase letters (A-Z), numeric digits (0-9), and seven special characters (-, ., space, $, /, +, %). For full ASCII support, an extended version uses two-character combinations to represent lowercase letters and additional control characters, but this comes at the cost of length. |
The Structure: Each character in a Code 39 barcode is represented by nine elements: five bars and four spaces. Of these nine elements, three are wide and six are narrow. The ratio of the wide to narrow bar width can range from 2:1 to 3:1, offering flexibility in printing but also impacting the overall length. |
The Start and Stop Character: An asterisk (*) is used to denote the start and stop of the code, making it bidirectional and readable from either direction. |
Self-Checking: A crucial feature of Code 39 is that it is self-checking. It is designed so that a single misprinted or misread bar cannot be interpreted as another valid character, providing a degree of error resistance without needing a separate check digit. |
Low Data Density: The primary drawback of Code 39 is its low data density. Because each character requires a fixed amount of space and a significant portion of that space is used for overhead, Code 39 labels are physically longer than labels using more modern symbologies like Code 128. For example, a Code 39 barcode encoding 10 characters might be significantly longer than a Code 128 barcode encoding the same data, making it less suitable for small items or very small electronic components. |
This combination of simplicity and low density means that while Code 39 is incredibly easy to print and decode, it is not ideal for applications that require large amounts of data in a small space. |

|
3. SoC Scanners in the Mobile Ecosystem |
The integration of barcode scanning into the mobile phone SoC has already transformed entire industries. The 'scanner' is now a background service, a library that can be called upon to process a camera feed. This has democratized access to barcode technology, enabling new business models and consumer experiences. |
3.1. Retail and Commerce: The Digital Bridge |
The most visible application is the mobile payment and loyalty app. Apps from major retailers and payment platforms use the phone's camera to scan QR codes and barcodes for product lookups, price comparisons, coupon redemption, and mobile payments. This functionality is not dependent on a specialized chip in the phone; it relies on the powerful, general-purpose SoC of the smartphone using embedded vision algorithms. This shift has moved the point-of-sale from a fixed counter to the hands of the consumer, creating a seamless bridge between the physical and digital retail worlds. |
3.2. Healthcare: Patient Safety at the Point of Care |
In healthcare, accuracy is life-saving. Barcode scanning on mobile devices is used for patient identification, medication administration (the 'Five Rights': right patient, right drug, right dose, right route, right time), and specimen tracking. Instead of a separate scanner that can be lost or broken, nurses and doctors can use a ruggedized mobile device, or even their personal phones (with appropriate security measures). The low power consumption and high processing speed of modern mobile SoCs make this practical and efficient, ensuring that the right information is available at the bedside instantly. |
3.3. Logistics and Transportation: The Mobile Manifest |
Delivery drivers and couriers rely almost exclusively on mobile scanners. They use rugged smartphones that scan barcodes on packages to update tracking information, capture digital signatures, and optimize routes. The integration of scanning into the phone's SoC means the device can be lighter, more durable, and have a longer battery life, which are critical factors for workers who are on their feet all day. The use of Code 39 in logistics is long-standing, due to its simplicity and ease of printing on shipping labels and warehouse shelf labels. |

|
4. The Future is on Your Face: AR Glasses and Wearables |
The next step beyond the smartphone is the wearable. Augmented Reality (AR) glasses represent the ultimate vision of a hands-free, 'heads-up' interface. Barcode scanning is a killer app for this form factor, enabling real-time interaction with the physical environment without interrupting the user's workflow. |
4.1. Warehouse and Logistics: Picking with Vision |
AR glasses integrated with barcode scanning are poised to revolutionize warehouse picking. A worker wearing AR glasses can see a digital overlay of the warehouse. The system can direct them to the correct shelf, highlight the specific bin, and use the glasses' imager to scan a barcode on a product to confirm a pick. This process, known as 'vision picking,' frees the worker's hands to handle the goods, increasing efficiency and reducing errors. Instead of needing a physical barcode scanner, the AR glasses use their embedded camera and processor to identify the item. This is a prime example of the 'scanning chip' moving from a hand-held device to a wearable accessory, with voice commands enabling a fully hands-free interaction. |
4.2. Healthcare and Surgery: Information in the Line of Sight |
In a surgical suite, time is critical. AR glasses could project a patient's medical records, allergy information, or even a 3D model of an organ directly in the surgeon's field of view. The surgeon could scan the wristband of a patient to instantly bring up their digital chart, or scan a vial of medication to verify it's the correct drug before it is administered. The low-latency scanning capability of the AR device's SoC ensures that this information is available instantly, without the surgeon having to look away or ask for assistance. The system is initialized by a simple voice command or a gesture, avoiding the need for physical contact. |
4.3. Manufacturing and Quality Control: The On-the-Fly Inspector |
In manufacturing, AR glasses can be used for assembly line inspection. A quality assurance technician can look at a component, and the AR glasses can scan a barcode on it to pull up its specifications, assembly instructions, or test results, projecting them directly onto the technician's field of view. This improves accuracy and reduces the need for paper manuals or separate computer terminals. The integration of specialized vision sensors in compact packages, like those from STMicroelectronics' BrightSense and FlightSense platforms, facilitates this shift by providing depth perception and always-on awareness in a small form factor. |

|
5. The Ultimate Frontier: Smart Contact Lenses |
If AR glasses seem futuristic, smart contact lenses are the next giant leap. The concept of embedding sensors and displays into a contact lens is no longer just science fiction. Patents and prototypes are emerging that detail systems using contact lenses coated with a reflective surface that, in conjunction with specially designed eyewear, create an augmented reality display. |
5.1. The System Architecture |
In one envisioned system, the contact lens does not have its own processor or battery. Instead, the contact lens acts as an optical relay. It reflects a barcode image to an imager located on a pair of glasses worn by the user. The glasses then wirelessly transmit the image to a remote barcode decoder (which could be a cloud service or a powerful nearby device). Once decoded, the information is sent back to the glasses, which use a micro-projector to display the information onto the semi-transparent, semi-reflective surface of the glasses. The user then looks through the clear aperture of the contact lens to see the barcode information superimposed over their normal view of the world. |
5.2. Applications |
This advanced form of miniaturization is not about the chip itself (which remains in the glasses or cloud), but about integrating the *sensor* into the smallest possible form factor for seamless human-computer interaction. The contact lens tracks the user's gaze, and the system identifies the barcode at which the user is looking, removing the need for any aiming device or manual action. This could be used for instant, silent, and hands-free identification of products, people, or objects. |
In Retail: A shopper could look at an item on a shelf, and the system could automatically scan the barcode and display product information, reviews, and price comparisons in their field of view. |
In Healthcare: A surgeon could look at a patient's wristband, and the lens system could capture the barcode, authenticate the patient, and display critical medical information directly in their line of sight, all without breaking their concentration. |
In Security: Contact lenses with coded identifying patterns could be used for high-security access control or personal identification. |

|
6. Code 39 in an Era of Miniaturization |
As we move towards smaller and smaller form factors---from handheld scanners to AR glasses to contact lenses---the limitations of Code 39 become more apparent, yet its simplicity ensures its survival in specific niches. |
6.1. The Limitations in Miniaturized Devices |
The primary challenge for Code 39 in the world of SoC readers is its low data density. A Code 39 barcode requires more physical space to encode a piece of data than many other symbologies, such as Code 128. For a smart contact lens or AR glasses, the camera's field of view is often limited, and the optics might be low-resolution. Requiring a large, wide barcode to be scanned is inefficient. |
Furthermore, the lens or camera in a very small device may have a limited depth of field. Code 39, with its variable wide-to-narrow ratio, can be more difficult for a very small, low-power imager to resolve consistently compared to a symbology with a more structured, fixed module design. |
6.2. The Advantages in a Chip-Based World |
Despite these limitations, Code 39's strengths become advantageous in this new context. |
Ease of Decoding: Code 39 is the 'Hello, World' of barcodes. Its simple structure and lack of a required check digit make it the easiest symbology for an embedded, low-power SoC to decode. The decoder does not need to perform complex checksum calculations, saving processing power and battery life. This is crucial for the always-on, low-power nature of wearable and implantable chips. |
Printing Simplicity: Because Code 39 can be printed with any basic font and does not require a complex encoding algorithm, it is easily generated for labels. For a low-power chip, the 'pain' of decoding a longer, simpler code is less than the 'pain' of the complex math required to decode a shorter, denser code like Code 128. In environments where a lot of labels are generated on-the-fly (like in logistics), Code 39 is often the easiest solution to implement. |
Self-Checking: Its self-checking nature provides a degree of error resilience without requiring high-resolution optical capture. In the future, as the imaging hardware for embedded vision becomes even more robust with technologies like 3D stacking and always-on low-power modes, the ability to get a 'good enough' read from a Code 39 barcode with the first attempt is highly valuable. |
6.3. Industry-Specific Use Cases |
Aerospace and Defense: Code 39 was standardised as MIL-STD-1189 for the U.S. Department of Defense. This legacy ensures that Code 39 remains in use for tracking critical military assets. Despite its low density, the sheer ubiquity of its readers and the cost of re-labeling millions of parts means that new chip-based readers must be, and are, backward-compatible with Code 39. |
Automotive Manufacturing: The industry uses Code 39 for tracking parts through the assembly line. Labels are printed in large quantities, often on metal with dot-peen marking, which is not a high-resolution process. Code 39 is tolerant of this. A small, embeddable imager is ideal for reading these labels, as the assembly line space is tight, and the scanners must be integrated into robotic arms and fixed positions without taking up too much room. |
Healthcare Supplies: For tracking bulk supplies like boxes of gloves, gauze, and IV bags, Code 39 is a common choice. The labels are large, the data set is small, and the symbology is incredibly reliable. The move towards handheld and wearable scanners in healthcare requires these devices to read Code 39 accurately, and the chip designers have to ensure their SoC's image processing algorithms can handle the wide-to-narrow ratio and the self-checking pattern of a Code 39 code. |

|
7. The Ecosystem: From Chip to Cloud |
The journey of a barcode in the future will be deeply integrated with the Internet of Things (IoT). The scanner on a chip is not just a decoder; it's a sensor node in a larger network. |
7.1. The Edge AI Connection |
Embedded vision systems are increasingly relying on Edge AI---machine learning models that run directly on the device, rather than in the cloud. STMicroelectronics, for example, is pushing toward edge AI perception with its imaging platforms, combining depth sensing and machine vision sensors with local processing. This allows an AR device to not only scan a barcode but also understand the context---recognizing a user's gesture, tracking an object's movement, or identifying a face---all within the power constraints of a battery-operated device. |
This means that a barcode scanning SoC will not be a standalone component. It will be part of a heterogeneous computing system that handles multiple sensor inputs and runs complex neural networks on-chip, enabling new applications where the line between the physical and digital world becomes increasingly blurred. |
7.2. The Future of Industrial Verification |
Embedded vision is also transforming industrial verification and quality control. While not directly barcode scanning, the underlying technology---using a low-cost CMOS camera and computer vision algorithms on an embedded platform---is directly relevant. For instance, companies like Miele are using embedded vision-based systems to test electronic control boards on their production lines, ensuring the correct assembly and function of indicator LEDs. |
This same approach---integrating a camera, a processor (like a Raspberry Pi or a custom SoC), and software on a small board---is being used to develop the next generation of 'on-chip' verification tools. These systems can automatically verify whether a machine is functioning correctly, potentially checking the status of LEDs, performing visual inspection for defects, or scanning barcodes on components to ensure traceability. The miniaturization of this technology enables quality control to be performed in places where it was previously impossible or impractical. |
7.3. Security and Privacy |
The proliferation of embedded and wearable scanning devices raises significant security and privacy concerns. If the scanner is always on, what is it scanningWho has access to that dataIn the future, solutions will likely involve on-chip encryption and processing. The SoC could be programmed to only scan for specific types of data, or to perform identification without revealing the entire decoded content to the user or the network. |
For example, a smart contact lens could be used for access control; the scan might confirm identity and transmit a token to a door lock, rather than transmitting a photograph of a person's face or a sensitive barcode to a third-party server. Similarly, in an inventory scenario, the AR glasses would need to securely authenticate the user and the scanned item before transmitting data to the central system, ensuring that a malicious actor cannot intercept or manipulate the information. |

|
8. Detailed Summary |
The journey of the barcode scanner from a bulky peripheral to an invisible, embedded system-on-chip marks a significant chapter in the history of technology. The development of custom SoC chips for barcode identification, such as those based on the RISC-V architecture, is enabling this transition by providing low-power, high-efficiency, and cost-effective solutions. These chips, capable of image acquisition and decoding with high accuracy at low clock speeds, are the engine driving the next generation of mobile and wearable devices. |
We have seen how this miniaturization is making barcode scanning a ubiquitous feature across multiple industries: |
Mobile Phones: Transform retail, healthcare, and logistics by turning consumer and professional devices into powerful scanning tools for payment, safety, and tracking applications. |
AR Glasses: Enable true hands-free 'vision picking' in warehouses, provide instant access to critical data for surgeons, and enhance quality control for technicians on the factory floor, with voice commands and visual guidance streamlining processes. |
Smartwatches and Wearables: Further integrate scanning into the user's daily life, allowing for quick, on-the-wrist verification in retail or personal health applications. |
Contact Lenses: Represent the ultimate form factor, using the user's gaze to identify and interact with the physical world, with systems being developed to reflect images to eyewear for processing and display. |
The role of Code 39 in this new era is a study in technological inertia and practical compromise. Its technical characteristics---a simple, self-checking, alphanumeric structure with low data density---shape its application landscape. |
Code 39's Strengths: Its simplicity makes it easy to print and decode, which is ideal for legacy systems and low-power processors. The self-checking nature provides a degree of error resistance without a complex checksum calculation, saving processing power on the chip. |
Code 39's Weaknesses: Its low data density means it requires a large physical area to encode data, making it less suitable for very small products, which are common in the electronics and pharmaceuticals industries. In the constrained field of view of a contact lens or a small AR imager, a long Code 39 symbol can be difficult to capture completely. |
Industry Niche: Code 39 retains a stronghold in automotive, defense, and healthcare asset tracking due to its legacy and compatibility, as well as in applications where large labels are the norm, such as logistics and warehouse racking. In these fields, chip-based readers must reliably decode Code 39 as a baseline requirement. |

|
The future of 'Barcode Readers on Chips' is not just about reading a black-and-white pattern faster; it is about building a multi-sensory, context-aware, and AI-driven ecosystem. As sensors become smaller and more integrated, the act of scanning will become an ambient, invisible part of our interaction with the world---from the devices we wear on our faces to the chips embedded in the products we buy. This is the age of the invisible scanner. |