Analog to digital: Counting the bits

08/13/2010


Dear Control Engineering: I was reading a release about an analog-to-digital converter that says it’s 12-bit. What does that mean exactly? Is 12-bit better than eight-bit?

 

Bit counts are all about trying to convert analog measurements to digital. Let’s say you’re trying to measure the diameter of a coin with a ruler. You put the ruler on the coin and notice that it’s slightly more than 11/16 in. The actual is somewhere between 11/16 and 3/4 in. You can eyeball the measurement and interpolate in your own mind. Machines aren’t as good at that as you are.

Getting a machine to make that measurement requires converting analog to digital. And since digital deals with high and low (on or off, 1 or 0, etc.) you have to break the reading into discrete segments. For a machine, an analog measurement might be given as a voltage, such as 0 to 10 V. To digitize the measurement, you can use a comparator that turns from off to on when the voltage reaches 5 V. Using that, you have just created a one-bit A to D converter. If you apply this to your ruler, let’s say anything below 1/2 in. is <5 V. Anything over 1/2 in. is >5 V. Unfortunately, this isn’t very precise. But if you’re clever, you realize that if you add a second comparator, you can effectively double the number of marks on the ruler. You now have a two-bit device which gives you marks at quarters. Adding another comparator makes a three-bit device and gives you eighths. Every time you add another bit, you get twice as many divisions. So your ruler that has sixteenths is equivalent to four-bits.

If you keep extending the math, a 12-bit converter gives you 4,096 units. So relating back to the A-to-D converter you mentioned initially, this means that whatever range of measurement you’re dealing with is divided into 4,096 individual units. If you’re using that over one inch, it means each increment is 0.00024414 in. That’s pretty precise and certainly capable of giving you reliable readings to three decimal places. The same applies regardless of what you’re measuring: pressure, temperature, size, flow, level, weight, or whatever the application, the total range span will be divided the same. So for a given range, 12-bit conversion with 4,096 units allows you to be more precise than eight-bit with only 256 units.

Digital communication methods also pay attention to bit counts. The earliest was the telegraph, which is a one-bit device: dot or dash. Getting something faster, such as the teletype, required a higher bit count to allow each character to have its own code. Teletypes use six-bit which allow for 64 different characters. This was fine for a while, but moving to ASCII codes requires 128, or seven-bit. Early word processers changed to eight-bit to provide 256 characters.

Digital sound reproduction also uses bit counts. A standard audio CD uses 16-bit reproduction. That means that there are 65,536 increments running at 44.1 kHz, so if you are trying to digitize the wave form of one second of music, you have a mosaic that’s 65,536 by 44,100 squares. Poorer quality sound reproduction is only 12-bit, and you would probably be able to hear the difference. Some audiophiles consider 16-bit to be too crude and insist that 24-bit (with about 16.8 million increments) running at 96 kHz is necessary for really accurate sound.

Ultimately, if you’re trying to determine what bit count you need for a specific application, you have to ask how precise the measurement has to be. If high precision over a wide range is necessary, say for robotics or a coordinate measuring machine, 12-bit may not cut it. On the other hand, if you’re trying to measure pressure between 0 and 100 psi, and ±5 psi is close enough, even eight-bit resolution is overkill.

Peter Welander, pwelander(at)cfemedia.com
Control Engineering

Visit the Control Engineering Process Control Channel.



No comments
The Top Plant program honors outstanding manufacturing facilities in North America. View the 2013 Top Plant.
The Product of the Year program recognizes products newly released in the manufacturing industries.
The Leaders Under 40 program features outstanding young people who are making a difference in manufacturing. View the 2013 Leaders here.
The new control room: It's got all the bells and whistles - and alarms, too; Remote maintenance; Specifying VFDs
2014 forecast issue: To serve and to manufacture - Veterans will bring skill and discipline to the plant floor if we can find a way to get them there.
2013 Top Plant: Lincoln Electric Company, Cleveland, Ohio
Case Study Database

Case Study Database

Get more exposure for your case study by uploading it to the Plant Engineering case study database, where end-users can identify relevant solutions and explore what the experts are doing to effectively implement a variety of technology and productivity related projects.

These case studies provide examples of how knowledgeable solution providers have used technology, processes and people to create effective and successful implementations in real-world situations. Case studies can be completed by filling out a simple online form where you can outline the project title, abstract, and full story in 1500 words or less; upload photos, videos and a logo.

Click here to visit the Case Study Database and upload your case study.

Bring focus to PLC programming: 5 things to avoid in putting your system together; Managing the DCS upgrade; PLM upgrade: a step-by-step approach
Balancing the bagging triangle; PID tuning improves process efficiency; Standardizing control room HMIs
Commissioning electrical systems in mission critical facilities; Anticipating the Smart Grid; Mitigating arc flash hazards in medium-voltage switchgear; Comparing generator sizing software

Annual Salary Survey

Participate in the 2013 Salary Survey

In a year when manufacturing continued to lead the economic rebound, it makes sense that plant manager bonuses rebounded. Plant Engineering’s annual Salary Survey shows both wages and bonuses rose in 2012 after a retreat the year before.

Average salary across all job titles for plant floor management rose 3.5% to $95,446, and bonus compensation jumped to $15,162, a 4.2% increase from the 2010 level and double the 2011 total, which showed a sharp drop in bonus.

2012 Salary Survey Analysis

2012 Salary Survey Results

Maintenance and reliability tips and best practices from the maintenance and reliability coaches at Allied Reliability Group.
The One Voice for Manufacturing blog reports on federal public policy issues impacting the manufacturing sector. One Voice is a joint effort by the National Tooling and Machining...
The Society for Maintenance and Reliability Professionals an organization devoted...
Join this ongoing discussion of machine guarding topics, including solutions assessments, regulatory compliance, gap analysis...
IMS Research, recently acquired by IHS Inc., is a leading independent supplier of market research and consultancy to the global electronics industry.
Maintenance is not optional in manufacturing. It’s a profit center, driving productivity and uptime while reducing overall repair costs.
The Lachance on CMMS blog is about current maintenance topics. Blogger Paul Lachance is president and chief technology officer for Smartware Group.