Voltage divider networks should be linear, right?

Thread Starter

Camz

Joined Feb 15, 2010
15
Little background:

I'm working on a project with the TI MSP430 microcontroller. Ultimately I'll have to monitor my battery voltage with the chip. There are 2 ways to do this, one using the a/d converter and another using the chip's built-in SVS feature that will raise a flag if the voltage falls below a user set threshold.

My problem is this:

I'll be using a 12v battery and the chip can take a max of 3.6v to it's input pins. No problem, I'll use a voltage divider to knock that down to that ballpark. So, I'm going to represent 0-12v with 0-3.6v. If I want to alarm on 10.4v; i would just use this equation to get my resulting threshold right:

12 : 3.6 , 10.4:x >>> which ultimately ends up being 12x = 10.4(3.6) >> x = 3.12v.

So in order to alarm on 10.4v; I'd just set my chip to alarm when the a/d converter "sees" 3.12v coming in on the input.

I set up the circuit with the chip but the voltage values coming off the resistor don't really coincide with my calculated values. Obviously they won't be exact; but i'm getting discrepancies of .2-.3v which is too much when I'm working on this small scale. Any tips, advice? If it doesn't make sense please ask questions.

Thanks!
 

Markd77

Joined Sep 7, 2009
2,806
Any current coming out of the centre of the divider changes the voltage. Smaller value resistors would reduce this change.
Using an op amp buffer would reduce the current coming out and thus the error.
 

someonesdad

Joined Jul 7, 2009
1,583
You probably don't need lots of resolution to detect a low voltage condition. I recommend not using the full 3.6 V if that's the upper spec. Use e.g. 3 volts. The reason is that systems can be more reliable if you design more margin in. If that 3.6 V limit is valid, then a rare voltage glitch on the power supply might result on the voltage exceeding the maximum, potentially damaging the chip. If you have other information you didn't give that makes it so you don't worry about this, fine. But it's a good general design tip for both software and hardware.
 

Thread Starter

Camz

Joined Feb 15, 2010
15
good point someone'sdad. The chip has a max voltage of 4.2v probably for situations in which you describe, but it's recommended that the input be in between 1.8-3.6v.
 

SgtWookie

Joined Jul 17, 2007
22,230
The LF353, TL07x, TL08x families of opamps will not be suitable because they cannot "see" within 3v of the negative rail.

Don't forget that when being charged, the battery voltage may exceed 14.5v.

If an automotive environment, you may get rather high voltage transients. You'll need to make certain that the input can't exceed your power rails.
 

Thread Starter

Camz

Joined Feb 15, 2010
15
The LF353, TL07x, TL08x families of opamps will not be suitable because they cannot "see" within 3v of the negative rail.

Don't forget that when being charged, the battery voltage may exceed 14.5v.

If an automotive environment, you may get rather high voltage transients. You'll need to make certain that the input can't exceed your power rails.
Sgt,

I'm looking on the datasheet of the LF353 and don't see anything mentioned about the the limits of what it "sees" within the negative rail. What exactly am I looking for that would tell me this?
 
Having looked at the datasheet for that micro the current on the ADC I/P pin is less than 1mA so I don't think a voltage drop would be too much of a problem. I would uses a 10K and a 2.2K resistor as the voltage divider. You could also use a trim pot if you want to be able to adjust it.
 

Thread Starter

Camz

Joined Feb 15, 2010
15
The LF353, TL07x, TL08x families of opamps will not be suitable because they cannot "see" within 3v of the negative rail.

Don't forget that when being charged, the battery voltage may exceed 14.5v.

If an automotive environment, you may get rather high voltage transients. You'll need to make certain that the input can't exceed your power rails.
Would this be something more suitable?

http://www.national.com/ds/LP/LPV521.pdf
 
Top