Hi,
Actually i do not enough about opamps and ADC requirements etc.
I have pic18f4520 mcu and i have to measure dc bus voltage 325vdc
What should be requirements if i have to do measurement with adc
Opamp comes at last .. because we dont know about the requirements...we even don´t know if we need one.
starting wit the simple:
* ADC. You say you use a PIC. The PIC has a datasheet and within tis datasheet there is a ADC section. This explains a lot in words. But I assume there is a "specification table" with an ADC section. There you should find information about source impedance and so on.
You may find it boring to read the datasheet. But no one can avoid this. We professionals need to read them, too. But I don´t want to read your datasheet, because I dont use the PIC and .. I read a lot of datasheets anyway.
*****
* source imedance: you need a resistive voltage divider. 325V input, 3.25V output. Its 100:1.
Now how to choose the values? Because we have high voltage there is a good chance for hig power dissipation = heating.
My personal way - (other engineers use other ways)
* 325V calls for safety! This means you need to use resistors that can widthstand those 325V easily. Again reading datasheets. The need to comply with safety rules about clearing distance and/or air gap.
* because of safety I use two resistors in series (for the higher ohmic one). If one fails, the other should keep safety.
* even if one resistor fails I want to limit the current to safe 0.5mA maximum.
* I want to try to use standard resistors (no very exotic or expensive ones)
* I want low power dissipation. No heatsink. And because we go for safety I use max. 50% of the power rating (even if one resistor fails short).
A lot of restrictions/specifications... mostly because of safety.
Let´s try a standard 0207 1% THM resistor.
Datasheet says:
* rated for 350V DC -> that´s too close to 325V for my taste.
Thus I go for a better one with higher voltage rating.
looking at my distributor´s cakatlog shows.
Vishay VR25 types, 0207, metal glazed type with 1600V rating. Good, but only 0.25W rating.
I go for the next bigger one.
Vishay HVR37 types. 0411 size, 3500V DC rating, 0.5W rating.
I choose this one.
* 0.5W. --> 50% means 0.25W. 0.25W at 325V means (P = I x I x R) max resistance of 423kOhms
* a safety clearance of 7mm is easy to achive.
Available values are: 470k, 499k, 1M ....I don´t want to go even higher.
I choose 1M, because it is the cheapest.
2x 1M = 2M, for the upper side of the voltage divider.
for a 1:100 ratio we need a resistor of 20kOhms for the lower side of the voltage divider.
so what´s the max curren tis one of the 1M resistiors fail short?
325V / (1M + 20k) --> about 320uA. this is less than my max value of 0.5mA.
What´s the source impedance of the voltage divider?
Rs = 1/ (1/2M + 1/20k) = 19.8kOhms.
Now you have to look if this is low enough for the ADC.
If yes: no OPAMP needed
If no: you need an OPAMP as buffer.
Additionally I recommend to add a capacitor of 1uF in parallel to the 20k resistor to suppress noise ... and focus on the DC value.
For sure you may choose other values as you like.
Klaus