analog signal scaling

Can someone suggest a circuit to scale an analog signal (in the range of 0 - 16 volts) to a 0 - 5 volt range? Specifically I need to interface analog signals that could be in the 16 volt range to a DAQ card with ADCs with a range of 0 - 5 volts. Should this be a simple voltage divider? or should this be something more complicated? Are there off the shelf solutions to this type of issue? What about if the signal were in the range of +/- 16 volts?

Thanks for any help.

Reply to
dumbledoo
Loading thread data ...

Yes, you need to first, capacitively couple that signal to the AC mains. As the voltage on the mains rises up and down between, for example, -160V and +160V, *your* signal will similarly rise up and down.

So, for example, if your signal was 3.7V, you would see it rise up to ~163.7V and then *down* to ~-156.3V about 8 milliseconds later (all this assumes you are located in the US; if located abroad, the time involved will vary, as will the magnitude of the voltage swing. Consult an atlas for more details).

Now, as the signal bottoms out (e.g., at ~-156.3V) and starts on its' way back *up*, it will naturally be *compressed*. This is similar to the effect your body perceives when it gets to the bottom of a loop on a roller coaster and then starts to rise again (i.e., you feel "squished" into your seat).

So, if you *re*-capacitively couple this signal *back* to your DC reference -- make sure it's a different reference from the original one (otherwise you will short things out and bring about The End of The World!) -- you now have a *compressed* version of your original signal available.

Now, the tricky part!

You need to design a high speed computer that can determine exactly when the signal has been compressed the right amount.

*Then*, that computer triggers a sample-and-hold circuit to capture the instantaneous voltage *before* it has a chance to "re-expand".

Be very careful when designing this computer! If it is too slow, there is a risk that it will trigger the S/H circuit *late*! If, by chance, the delay is such that your signal is now at the *peak* of that 160V wave and just starting to head *down*, again, you run the risk that the signal will have *expanded* beyond its original 16V range -- just like you feel yourself being *pulled* out of your seat when you hit the apex of that roller coaster! Needless to say, this can cause all sorts of things to break as the rest of your circuit, no doubt, was not designed to handle the increased voltage!

Another solution is to put the entire circuit on that roller coaster so *everything* flies up and down at the same rate! Of course, now you're back to your original problem as that 16V signal will now be bouncing around just as much as the circuit that measures it!

That's why Engineering is so *tough*! Much easier to get a degree in Political Science. Or, Psychology. (something you might consider...)

Sorry I don't have much more time to spend on this. I've got to go buy some tent peg grease at the sporting goods store...

Good luck!

Reply to
D Yuniskis

Depending on the input impedance of the ADC, a simple voltage divider should work. That input impedance is in parallel with the shunt leg of the divider and should be taken into consideration.

In addition to maintain frequency response, a small cap should be placed around each resistor of the divider. The time constant of each R-C should equal each other For example:

Assume the input impedance of the ADC is 100k and that you want to parallel it with 11K to make the shunt leg = 9.91k. Let the time constant be 5 microseconds. then C in parallel = 5usec/9.91k = 505 pF. Subtract the input capacitance to get the actual cap value, say 500pF.

This 9.91k resistance has five volts across it and the series leg has 16 - 5 volts across it. Rseries = 9.91 * (16-5)/5 = 21.8k

The capacitor across it has the same time constant, C = 5usec/21.8k = 229pf.

These numbers are an example for reference only. Of course the DAC circuit must be able to drive the divider impedance and series capacitance. Values may be rounded depending on the precision required.

Reply to
Bob Eld

Um, the problem with a resistor is...?

--
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com
Reply to
Don Lancaster

Oh forget the grease, check out these PeggyPegs.

formatting link
Mike

Reply to
amdx

You will find Miss TentPegGrease in the local Red Light District...

Reply to
Robert Baer

Almost any combination of amplifiers and attenuators can do this. My preference is to attenuate first, then buffer-amplify if necessary, because the input attenuator can reliably give a 0V signal if/when the input is disconnected. The buffer amplifier offers a convenient place to do DC offset and overvoltage clampling functions if needed.

It's necessary to know impedance and frequency range (and possibly other things) about your 'analog signal' to really answer the question. If it's an automotive signal, that '16V' might have load-dump spikes (60V ratings are common here). The required precision is also important, and some kind of calibration provisions ought to be made in the input circuitry while you're at the early design stage.

Reply to
whit3rd

Since low end is zero-in zero-out, just use an attenuator:

VIN o | | 110K | o---- To ADC | | 50K | | GND

For bipolar signals you must map -16V to 0V, and +16V to +5V.

If your +5V supply is stable, you can do this also with just resistors...

VIN o | | 110K | +5V o--34.37K--o---- To ADC | | 50K | | GND

It is left as an exercise for the student to adjust for available values of resistance ;-) ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

and keep in mind that not all ADCs are very accurate if the source impedance is too high.

better carefully read the datasheet

-Lasse

Reply to
langwadt

When you say "attenuator", is this the same as a voltage divider?

Good point about the frequency range. I'll need to keep that in mind.

Reply to
dumbledoo

But this is the point I'm trying to understand. Everyone simply says "be sure to match impedances" but not what this actually means. So using the diagram to help the discussion:

V_in o | Z_1 | o------------o | | Z_2 Z_adc | | Gnd Gnd

(I'm using Z for the dynamic impedance). Does it mean that Z_1+Z_2 should be of the same approximate magnitude as Z_adc? When you say "source impedance", do you mean Z_1+Z_2? Also, what I'd like to better understand is what are the issues if they don't match? For example, let's say Z_adc = 1M, then what happens if Z_1+Z_2 = 10K. How about if Z_1+Z_2 = 100M. These are the questions I'm trying to understand.

Thanks, Jesse

Reply to
dumbledoo

---

If you have a voltage source driving a voltage divider and the voltage driver subsequently driving some load, then your circuit will look like this:

. E1 E2 . / / . +---[Rs]---+ . | Is---> | . | [R1] E3 . | | / . [Vs] +--------+ . | | Il--> | . | [R2] [R3] . | | | . +----------+--------+

Where Rs is the internal resistance of the source, R1 and R2 are the divider resistors, R3 is the load resistance (the input resistance of the ADC) E1 is the unloaded output of the source, E2 is the voltage at the input of the divider, E3 is the voltage at the input of the ADC, Is is the current supplied by the source, and Il is the current into the input of the ADC

Now, let's say that the generator is specifed as having a 50 ohm internal resistance, that its output can be adjusted to provide from zero to 16 volts RMS into a 50 ohm load, that the ADC's input resistance is 10000 ohms, and that it wants to see from zero to 5V as the generator's output is varied from zero to 16V.

The circuit can then be simplified to:

. +--E1 . | . [R1] . | . +--E2 . | . [R2] . | . GND

where R2 is the equivalent resistance of the ADC's 10k input resistance and whatever is needed, in parallel with it, in order to get E2 to be

5V when E1 is 16V.

Now, remembering that the generator will drop 16 volts into a 50 ohm load means that with 16V out of the source, R1 + R2 must be 50 ohms, and the current through them will be:

E1 16V I = ----------- = ------ = 0.32 amperes (R1 + R2) 50R

For E2 to be equal to 5V, then, R1 must drop the difference between 5V and 16V with 320mA through it, therefore making its resistance:

E 16V - 5V R1 = --- = ---------- = 34.375 ohms I 0.32A

For R1 and R2 to be equal to 50 ohms, then, R2 must be equal to:

R2 = 50R - 34.375R = 15.625 ohms.

Checking:

E1 * R2 16V * 15.625R E2 = --------- = ------------------- = 5.000 volts R1 + R2 34.375R + 15.625R Now, since R2 is actually the parallel combination of some resistance and the 10k input resistance of the ADC:

+-------+ |R1 |R2 [Radc] [Rx] | | +-------+

and since the parallel resistance of two resistors is described by:

R1 * R2 Rt = --------- R1 + R2

We can rearrange and solve for R2:

R1 * Rt 10000R * 15.625R 156250 R2 = --------- = ------------------ = ---------- = 15.649 ohms R1 - Rt 10000R - 15.625R 9984.375

So now our final circuit looks like this:

. 16V . / . +---[50R]---+ . | | . | [34.375R] 5V . | | / . [Vs] +--------+ . | | | . | [15.649R] [10kR] . | | | . +-----------+--------+

Finally, note that as long as you know the source resistance of the generator and the load resistance of the load, you can make the values of the resistances in the voltage divider whatever you like as long as you consider the limitations imposed by the the load and the source.

I hope that's clear, but if it isn't, post back with any questions and I'll be glad to go into more detail.

JF

Reply to
John Fields

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.