Voltage Translation for Analog to Digital Interface ADC

Voltage Translation for Analog to Digital Interface

孕龙逻辑分析仪 ZeroPlus Logic Analyzer

In today‘s microcontroller market, most of the Analog to Digital converters

are only able to accept voltages from the Vcc of the device to ground.

But what if you want to measure a bipolar signal?

This short tutorial plans to show you a simple but effective method

to interface a bipolar voltage to any single polarity input.

On the left is the ideal basic circuit for interfacing.

vi is the input voltage,  vo is the voltage sent to the ADC,

vr is a reference voltage used for setting the center or zero input voltage,

and R1 and R2 are used for input scaling and current limiting

to bring the input voltage into the range of the ADC.

On the left are the 5 formulas needed to determine the values of vr and R2.

R1 will be chosen initially as we will see in an example below.

As you can see in formulas I,III,IV, and V,

the term is the voltage divider ratio of the resistors calculated by formula II.

Now that I have my basic circuit, and the required formulas, let‘s now create a useful example.

In this example, my parameters will be as follows:        
        - Input impedance of at least 1Mohm.
        - vin = +/- 12V
        - vo = 0-5V 
        So when vin = 12v, vo = 5v
                       vin = -12v, vo = 0v
                       vin = 0v, vo = 2.5v

To begin, I need to calculate the value of R 

This will be the scaling factor applied to the incoming voltage.

To do this, I take the vo range and divide it by the vin range. In this case,

    R = 5/24 = .2083 [ 12v - -12v = 24v ]

Next I will calculate the value of R2.

Because I want an input impedance of at least 1Mohm, I will use 1M as R1.

Using formula V, the value for R2 is:

R2 = (R * R1)/(1-R) = (.2083 * 1M)/(1-.2083) = 208,300/.7917 = 263,104 ohms.

Next I need to calculate the value of vr.
    Using the case of vin = 12, vo = 5, and using formula III:

vr = (vo - R * vi)/(1 - R) = (5 - .2083 * 12)/(1 - .2083) = 2.5004/.7917 = 3.158v 

I now have the 3 values required for my design.
    R1 = 1M
    R2 = 263,104
    vr = 3.158v

I can now plug these numbers into formula I

and calculate the three input voltages of +12, 0, and -12 and verify that the design is correct.

vo (vin=+12) = R(vi - vr) + vr = .2083(12 - 3.158) + 3.158 =  5.000
    vo (vin= 0)    = .2083(0 - 3.158) + 3.158 =  2.500
    vo (vin=-12)  = .2083(-12 - 3.158) + 3.158 = 0

    To the left is a practical circuit to interface to an ADC. The features are:
    - A diode and zener diode used to protect the ADC input from overvoltage.
    - R2 is composed of a fixed value, and a trim pot to dial in the correct value.
    - A trim pot connected to the non inverting input of an op amp in a voltage follower configuration for setting vr.

To calibrate the circuit, adjust the op amp trim pot for an output voltage of vr as calculated above.

Next, input a voltage to vi and calculate what the vo should be,

and adjust the R2 trim pot until that voltage is achieved.

Note:

Generally, zener diodes will always have some current flow.

This will adversely affect the accuracy of the ADC measurements as well as the linearity. 

A method of switching in the zener when max voltage is reached would be preferable,

but would increase the part count.

Now I have a working circuit, but the last thing to calculate is the maximum and minimum input voltages.

This will be determined by the two diodes and using formula IV.

The maximum input voltage will occur when the zener diode goes into breakdown regulation.

If we assume a zener voltage of 5.1v, the maximum input voltage is:

vi = ((vo - vr)/R) + vr = ((5.1 - 3.158)/.2083) + 3.158 = 12.481v
  
The minimum input voltage will occur when the diode is forward biased.

Assuming a forward voltage of 0.7v, the minimum input voltage is:

vi = ((-0.7 - 3.158)/.2083) + 3.158 = -15.363v  

Effective input impedance can be calculated as follows:

zin = vin(R1 + R2)/(vin - vr)

This is a varying quantity depending on vin.

时间: 2024-10-12 14:59:15

Voltage Translation for Analog to Digital Interface ADC的相关文章

DG449 High Voltage Single SPDT Analog Switch in SOT23-8

DESCRIPTION The DG449 is a dual supply single-pole/double-throw (SPDT) switches. On resistance is 38 ? and flatness is 2.6 ? max over the specified analog signal range. These analog switches were designed to provide high speed, low error switching of

asm335x系列adc和触摸屏驱动(转)

An analog-to-digital converter (abbreviated ADC) is a device that uses sampling to convert a continuous quantity to a discrete time representation in digital form. The TSC_ADC_SS (Touchscreen_ADC_subsystem) is an 8 channel general purpose ADC, with o

Arduino ADC + 模拟温度传感器LM35D

LM35是美国国家半导体(后被TI收购)推出的精密温度传感IC系列,其信号输出方式为模拟输出,输出电压值与摄氏温度值呈正比,且用户不需额外的校正就能获得较高的测量精度.其主要特性有: 供电电压:4~30V 测量范围:与芯片相关,单个正电源供电时最大+2~+150°C 测量精度:与芯片.测量温度有关,如下图.可见室温附近误差典型值大约在+-0.5°C,最大值在+-0.5°C到+-1.5°C不等.本文中使用的LM35D是精度最差的芯片,误差最大值约+-1.5°C. 功耗:与测量电路.温度有关,大约在

High accuracy voltage regulator

High accuracy voltage regulator Good morning everybody, I want to make a accurate voltage regulator based on the Basic Stamp.Total range 0-10 V and a resolution of eg 5 mV. So this means 2000 steps.Maximum current around 250 mA. I tried to do somethi

ADC Power Supplies

http://www.planetanalog.com/author.asp?section_id=3041&doc_id=563055 Jonathan Harris, Product Applications Engineer, Analog Devices, 6/2/2014 As I thought about where to go with the next blog, I looked over the comments and questions from my previous

Understanding ADC Parameters

Atmel AVR127: Understanding ADC Parameters This application note is about the basic concepts of analog-to-digital converter (ADC) and the parameters that determine the performance of an ADC. These ADC parameters are of good importance since they dete

1.13裸机ADC部分

1.13.1.ADC的引入 1.13.1.1.什么是ADC (1)ADC:analog digital converter ,AD转换,模数转换(也就是模拟转数字) (2)CPU本身是数数字的,而外部世界变量(如电压.温度.高度.压力)都是模拟的,所以需要用CPU来处理这些外部的模拟量的时候就需要做AD转换 1.13.1.2.为什么需要ADC (1)为了用数字技术来处理外部的模拟量 1.13.1.3.关于模拟量和数字量 (1)模拟的就是连续的,显示生活中的时间.电压.高度等都是模拟的(连续分布的

how to generate an analog output from a in-built pwm of Atmega 32AVR microcontrloller?

how to generate an analog output from a in-built pwm of Atmega 32AVR microcontrloller? you need a resistor, a capacitor and an opamp. opamp is not really necessary when you are driving a mosfet, but will make life a bit easier. just be aware, that th

OpAmp Voltage Follower/Regulator

By using an emitter-follower or a Darlington pair, a voltage-follower op amp configuration can source higher currents than the op amp otherwise could. With high-voltage regulators, powering the IC through the drive resistor for the pass transistors c