Design a Barcode Scanner With Reduced BOM, Not Reduced Functionality

Barcode scanners are a ubiquitous technology that touch our lives on an almost daily basis. Despite the prevalence of these scanners in commercial and industrial settings, it’s easy to take the complexity of their underlying designs for granted. Barcode scanners require multiple discrete ICs and an array of passive and active circuitry to provide the functionality and reliability that end users have come to expect.

Many barcode scanners use an optical sensor, such as a charge-coupled device (CCD), which outputs an analog representation of what’s visible to the sensor to an analog-to-digital converter (ADC) controlled by a microcontroller (MCU). The MCU interprets the ADC’s output as a sequence of thick and thin black and white bars, and processes this sequence further to derive a string of characters from the pattern. The character sequence may be encoded in any one of a number of well-defined barcode protocols.

Figure 1: The barcode-scanning system shown is based on a 32-bit MCU.

Additional features found in barcode scanners include USB connectivity, regulators, audio output (usually driven by a discrete digital-to-analog converter (DAC), or simple pulse-width modulation (PWM)), and other glue logic for level-shifting between components running at 3V, such as the MCU, and other components running at 5V, such as the CCD.

The design challenge for any developer entering a mature market is to create a disruptive product. A barcode scanner design is a prime example of a well-defined application area in which developers can disrupt the market by providing a more cost-effective, reliable solution that reduces bill-of-materials (BOM) and leverages the processing power of the latest MCUs.

CCD overview
The scanner’s CCD optically scans an image and converts optical information into a sequence of analog electronic pulses. Each pulse’s voltage level represents the state of one pixel within the CCD’s scan range. Many commonly used CCDs in handheld barcode scanners produce output at a resolution of a few thousand pixels.

A CCD relies on a controlling MCU to provide a clock source. Clock pulses fed into the CCD’s shift-register clock inputs initiate a scan, and the CCD synchronously outputs a voltage proportional to the light in the provided clock. The voltage level describing the pixel state usually contains a dc bias, and the voltage swing between optical black and optical white can vary depending on the CCD used, as well as other design factors.

naperlou, I agree. The ability to package a complete system on a chip (SoC) is very impressive. With consumer electronic devices being small in size, microcontroller manufacturers are designing and packaging complete product designs on a piece of silicon. The Silicon Lab's Precision32 MCU is quite impressive because a complete barcode scanner is placed into a small iC package. This article is definitely worth sharing with my ITT Tech Students. Great article Parker!

I am impressed too - especially by the thorough but easy to understand technical explanations provided to explain barcode scanner technology. Thanks for a very interesting article that just added to my understanding of this extremely utilized technology that is often taken for granted as well as the possibilities, something that I had not given much thought to before your very well-written article.

Parker, I am very impressed by your ability to implement this unit with a single MCU. This is becoming the trend. MCUs with 32-bit processors and lots of supporting functionality (e.g., ADCs) on chip are making it much easier to implement designs quickly and more reliably. I wonder how much of this implementation is in the software as oppossed to discrete logic as in the past.

Practically all electronic devices today contain metals that may
be coming from conflict-ravaged African countries. And political pressures will increasingly influence how these minerals are sourced and used in products.

Design for manufacturing (DFM) in mold production means that mold designers evaluate the manufacturability of their molds in the early stage of mold development by collecting all relevant information and applying it to their designs. They also have to consider many other factors, including flow balance, structural stress, and assembly tolerance, in order to ensure successful molding production.

Some adhesives provide strong structural bonds but take hours to fixture and attain handling strength. The technologies that offer the fastest cure do not bear loads or withstand stresses. A new class of adhesives aims to make both stick.

Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.