Voltage divider with diode acting strange ?
Voltage divider with diode acting strange ?
(OP)
I'm missing something fundamental here ... I have a typical voltage divider circuit, consisting of two resistors, a 39k and a 22k, plus a 10k pot to adjust things. The 39k is the top leg for input, the 22k and 10k pot are the bottom leg to GND. When adjusted for about 25k, it will divide 12V in at the top of the 39k to about 5V at the junction of the 39k/22k.
Works fine. Stick in 12V, get 5V out.
Now I add a 1N4625 5.1V zener, to make sure that the input voltage can't surge up and burn things out. As I understand it, the zener shouldn't conduct at all until 5.1V.
But it seems to be acting as another resistor to GND. WIthout the zener, I adjust it to show a clean exact 5.00V. Add the zener in, and the output drops to 4.61V. I can increase the input voltage to get 5.00V out of the divider - I have to go to 16.4V.
With 16.V input, if I remove the zener, the output jumps from 5.00V up to 6.2V.
I know this is going to be a DOH type slap the forehead deal ...
D.
Works fine. Stick in 12V, get 5V out.
Now I add a 1N4625 5.1V zener, to make sure that the input voltage can't surge up and burn things out. As I understand it, the zener shouldn't conduct at all until 5.1V.
But it seems to be acting as another resistor to GND. WIthout the zener, I adjust it to show a clean exact 5.00V. Add the zener in, and the output drops to 4.61V. I can increase the input voltage to get 5.00V out of the divider - I have to go to 16.4V.
With 16.V input, if I remove the zener, the output jumps from 5.00V up to 6.2V.
I know this is going to be a DOH type slap the forehead deal ...
D.





RE: Voltage divider with diode acting strange ?
You're measuring a change of about .5 volts across a 39k resistance. As V/R=I, .5/39k = .012mA. That's tiny. I'm not that familiar with the performance of zeners, but I'm surprised that the leakage current would actually be so small.
There's not much you could do about the leakage current through the zener (unless you could find a zener that performed better, which would probably not be worth the effort or time or cost -- maybe I'm wrong there. . . .).
I'd think your best bet would be to increase the size of the resistors.
Just curious -- what are you using this circuit for? It wouldn't seem to be a particularly effective power supply or voltage reference. . . .
RE: Voltage divider with diode acting strange ?
It has 10 uA nominal reverse leakage.
(10uA+180uA)*39K ~ 7.4V.
TTFN
RE: Voltage divider with diode acting strange ?
The 6.X volt zener should work fine for protecting your circuit (at least it better). Otherwise, you would be better off using like a 7805 regulator since they will not hog so much power. A zener is a power hungry animal especially for regulation. If power is not a concern, get rid of all the resistors for the voltage divider and just use a larger (higher wattage) zener for regulating the voltage to 5.1V. Although, the 7805 will regulate much better than a zener. Also look at the adjustable regulators if the 5V might need to be changed to something else in the future. (Oh BTW, I am assuming all this discussion is for DC voltage).
RE: Voltage divider with diode acting strange ?
This is the front-end to an automotive measuring project. The divided voltage goes into an opamp voltage follower to buffer the signal, then into the ADC inputs of an AVR.
Given that there can be some major voltage swings in a car, the zeners are kind of a last-ditch defense. If something huge develops across the 39k, the zener should clamp it down tight.
I'll change them out for 6.2V zeners - 1N753A. The internal diode clamps in the AVR should be able to handle the extra 1.2V ...
I was thinking of using a Littelfuse SP723 TVS clamp on the signal before it hits the divider. I don't know how much that will contribute though, since if there's a load dump, the 12V supply will leap up as well - where would the TVS clamp to ?
Given the horror stories you always hear of the automotive environment, I want to make this as bulletproof as possible.
peebee - you said to *increase* the size of the resistors ?
D.
RE: Voltage divider with diode acting strange ?
Seems to me most multi-meters are about 10k-ohms per volt (can anyone confirm?). That's 50k in parallel with your 29k (22+pot). That means once you've adjusted to precisely 5v output, the instant you remove the meter it will rise by about another volt.
Any load above about 0.005 mA you add to the output will similarly drop the voltage. Hence my statement about this not being a particularly effective voltage reference. Not much you can do with a couple microamps.
RE: Voltage divider with diode acting strange ?
RE: Voltage divider with diode acting strange ?
We want to keep the resistances high so as not to load the signals we're measuring. The opamp voltage follower after the divider is to provide a nice clean low-impedance source to the ADC.
The power supply section is rock-solid clean. +12V and GND come in through inductors, then to an RBO40 TVS clamp, then through a couple of ferrite beads into an AN7705 automotive regulator.
The ADC reference uses an LM336-5.0 fed by another 10uH inductor with 0.1uF cap to GND. Clean and quiet.
Argh - now I have to desolder the 1N4625 5.1V zeners to put in the 6.2V ones. I *hate* desoldering.
D.
RE: Voltage divider with diode acting strange ?
Oops, typo. As a power engineer, I tend to think of resistors as rated in kW of load rather than ohms. Smaller resistance = bigger load, hence "bigger resistor". Physically, that would be bigger too. But I realize my statement was confusing given this context.
Back to the subject, now what I realize you're trying to accomplish, maybe disregard some of my recommendations above.
I'm not quite sure you want to jump right into replacing the 5.1's with 6.2's either, though.
Please realize I'm way out of my area of expertise here -- others would have better ideas -- but I'm thinking you might want to put (3) 5.1's in series across the whole 12v input, get them out of your voltage divider circuit altogether, they will only add non-linearity.
Decreasing the size of the resistors would do the trick too -- but make sure you don't overload the output that you're tracking. Careful you check the burden imposed by the input to your ADC, too, although I suspect it's low enough that it would not overly impact the accuracy of your circuit. Accurately adjusting your trimpots could be tricky using a voltmeter, for the reasons mentioned above -- you'd do better to adjust to 5v output by looking at the output of the ADC.
But you'd do way better to get advice from somebody else than me!!! When I first read read your question, sounded like you were just tinkering around for fun -- if I'd realized this was rather more serious I probably wouldn't even have responded!! :)
RE: Voltage divider with diode acting strange ?
The only way out of that is to buffer the signal first and then run a lower resistance divider.
Another approach might be to measure the error and simply back out the leakage current in the calculation. Since you can treat the zener as a 10 uA current sink, the Thevenin equivalent circuit can be used to back out any measured voltage into the correct input voltage.
TTFN
RE: Voltage divider with diode acting strange ?
RE: Voltage divider with diode acting strange ?
That's what I'm doing right now with the first board as built. Works fine. Kind of a hassle since all the calculations are off, so the calibration constants in the code are off, so ....
Another option is to just do away with the zeners completely. With the 39k, the amount of current coming in is very small even with a large transient, and the opamps should be able to handle it fine I should think. The opamps are fed from the main 5V supply, so their output can't go above 5V, so the AVR inputs should be safe.
There is NO room to add another opamp buffer up front for each of the 5 channels :)
So the input range is 0-16.5V now instead of the original 0-12.75V, mapping to 0-5V for the ADC input. The original conversion factor of 500 to convert from an ADC max count of 255 to 12.85V now changes to 647. That's with keeping the 39k/22k/10kpot setup. I can adjust those to handle the original 12.75 input max if necessary.
Always has to be a gotcha in there somewhere. I breadboarded it all without the zener, since I was using a nice clean lab powersupply. No big transients coming in here, so no need to protect against them on the breadboard. Never dawned on me that it would affect it like that - I was expecting the knee of the curve to be above the 5V max being measured.
Dean.
RE: Voltage divider with diode acting strange ?
TTFN
RE: Voltage divider with diode acting strange ?
The salient words here are "horror stories" used in one of your first postings. These horror storiess are often told to people that do their first automotive designs. And they do not help very much - they just steer focus away from the work at hand and makes you think a lot about protection instead of function.
Yes, it is true that a load dump can produce 80 - 100 V in a 12 V automotive system. But this overvoltage seldom hurts your signal paths. If you have a design where the resistance is somwhere between 10 and 100 kohms, then your maximum current will be between 1 and 10 mA, worst case.
Most internal clamps can handle that with no problems at all. And if there is no clamp you can simply add a diode (1N4148 type) from your mux or A/D input to the V+ rail. The reverse leakage of such a diode is very tiny and won't disturb you at all. You need no clamp for negative excursions for the load dump never produces negative voltage.
The "damage path" for load dumps is more likely to be through the power supply unit. A standard linear regulator usually cannot take more than 40 or 50 V and is the first victim. A switcher can be designed to take a lot more, but is seldom used in low-power interference-sensitive applications.
There is also the temperature range to take care of. A typical "under the hood" environment is among the most hostile places you can put electronics. Extreme cold and extreme hot are words that describe the problem.
I suggest that you take a step back and do a realistic evaluation of the project and the challenges involved. But don't let horror stories derail you. Good luck!
RE: Voltage divider with diode acting strange ?
Thanks for the words :) I hear you about getting all worked up with protection circuitry there.
I'm going to try it with the 6.2V zeners, and if it still has a leakage problem, dump the diodes altogether. My attitude in design here has been to add things in to the layout if they'll fit. Don't have to actually stuff the parts, but at least the footprints are there if they turn out to be necessary.
D.
RE: Voltage divider with diode acting strange ?
If you take a zener diode and run it at say 75% of its rated breakdown voltage, the current drawn is uncertain to a very high degree. You should not use a zener diode in this condition.
Maybe the data sheet gives a reverse current at 2V and room temperature. This is an almost completely unusable fact. What does it do with temperature? You could guess that it follows a "doubles every 10 degree C" law, but it would be a guess. You could look it up in a text book and you would get the wrong answer because the correct data is not given in text books.
Diodes, including zeners, don’t follow "diode equations" under leakage and reverse bias conditions. Manufacturers fiddle with the processing to get good data sheet specs and anything which isn’t specified isn’t guaranteed. Reverse leakage on ordinary diodes is more like a resistive effect rather than the exponential effect that text books would have you believe.
You can get diodes specified for reverse leakage down to the picoamp level if you want. Use a specified low leakage diode to a suitably biased 4.7V zener and the diode will clip nicely at around 5.3V.
Note: for your multi-input system you only need one zener. All the diodes feed to that one zener so it is not a complicated solution. Bias the zener at 5mA to define its voltage according to the data sheet values.
RE: Voltage divider with diode acting strange ?
I have seen diodes placed from the input to the A/D to the 5v bus in order to bleed off any excess voltage above ~5.6Volts. I never have put this into practice but seems to be fairly common. Microcontroller manufacturers like doing this within the IC although they do not encourage designers to use these internal diodes as a limited voltage device.
RE: Voltage divider with diode acting strange ?
Say a 40V spike comes along. The diodes will suddenly push the 5V rail up to 40V or so, which won't do the microcontroller any good. I'm thinking that they should feed into the 12V input, just in front of the regulator.
The trouble with that is that an 11V surge will still be fed right into the opamps. That *should* be OK, since their output can only swing to the rails, 0V and 5V. Might burn out the opamp chip package though.
If anything, perhaps a 16V or 20V zener in front of the voltage divider, rather than the 5V or 6.2V zener between the divider and opamp input.
D.
RE: Voltage divider with diode acting strange ?
Your comments are exactly why I have never liked the diode solution for controlling over voltage situations. Just does not seem like a good idea. Although, the power supply regulator should be able to handle this. A bypass cap on the micros supply should take care of any "transients" as far as the micro is concerned. A higher voltage zener is not a bad idea.
RE: Voltage divider with diode acting strange ?
RE: Voltage divider with diode acting strange ?
on the 5v rail should absorb most transients. You can also
add a zener or transorb across the 5v rail if you dont
have large capacitance. Adding the zener at the rails
should minimize the leakage on the measuring circuit.
I would use diodes on the +&- rails from the input of
the opamp. The negitive going clamp prevents the opamp
from lockup if the input recieves a negitive transient.
The output of the opamp probably doesn't need to be
clamped if it is running off the same supply as the micro.
Also why a full scale range of 12.75 are these measurements after a regulator or are they off the battery. I think my car charges to 13.5 on the battery.
Good luck
RE: Voltage divider with diode acting strange ?
When you say the regulator should be able to handle this, we're referring to the clamp diode feeding into Vcc, *after* the regulator, right ? So the regulator should be able to handle having a large voltage on its' output leg.
The power input stage is pretty robust. +12V and Chassis come in via large inductors, feed into an RBO40 overvoltage/clamp, which then feeds into an AD7705 automotive regulator. 10uF and 0.1uF caps on input side, 10uF and 100uF on the output leg. Micro and opamps all have 0.1uF caps. The AREF pin is fed via a 10uH inductor and 0.1uF cap to an LM336-5.0.
Throwing all kinds of hash on the power pins doesn't upset it a lick. Nice and quiet. That is, here in the lab ...
It's the signal inputs I want to protect as well. From sloppy connections, shorts, transients, etc. The input signal goes through the 39k/22k/10kPot divider, into the opamp voltage follower, then to the micro ADC inputs.
Where and how is the best spot to protect those signal inputs. The micro is the most important to protect, followed by the opamps. A 400V spike will produce around 10mA or so input to the opamps.
Madcow -
High voltage of 12.75 was chosen for simplicity. The 8bit ADC high count of 255 equates cleanly to 1275 with a conversion factor of 5. It also provides for a count resolution of 0.05V, which makes for a nice clean display increment. Going to 13.5V would need a conversion of 5.29 which gets to ugly slow math.
D.
RE: Voltage divider with diode acting strange ?
That is where I was talking about. The 5V regulator for your micro should handle this with no problems. I have never relied on it but know of several designs that do.
It is easy to get carried away when talking about protecting these things from overvoltage. If it were me, based on what I know, I would use a bi-directional TVS at the input (before the resistors), and bypass caps on all supply lines directly next to the part that is using the power, ie a bypass cap located directly on the op-amp rails right next to the op-amp on the board. Same thing for your micro supply lines. When laying out the board (assume your going to make a PCB), pay close attention to keeping supply lines for these IC's away from any 'switching' lines. If this is done, then putting clamping devices on anything beyond the input (the signal to be read) is probably not going to help much. Also, several micro manufacturers have internal diodes to protect from a high voltage on an input pin (breakover diodes). Board layout in such an application is by far the most important since if it is not laid out correctly or with any thought, all the clamping devices in the world will not help.