I want to do datalogging on solar strings in the 600V range +-100V. Would prefer accuracy close to 1%.
|
|
This answer was written when the question only mentioned 600 V. Since then the 600 V \$\pm\$ 100 V requirement was added. All you need is a microcontroller with an ADC (Analog-to-Digital Converter) and a resistive voltage divider. Let's presume you'll use a 5 V microcontroller.
VIN is your solar strings' 600 V, VOUT is the 5 V to the microcontroller's ADC. The 600 V will cause a current of I = 600 V / (R1 + R2), and that same current causes a voltage I × R2 across R2, so that \$V_{OUT} = \dfrac{R2}{R1+R2} V_{IN}\$ Let's look at the required current first, and then get our resistor values from that. Nick is right when he mentions the 1 µA leakage of the microcontroller's I/O pin, but I don't agree with his measures. Having 10 times the leakage cuurent through your voltage divider gives you a 10% error at 600 V, when you easily can go for 1% by choosing a 100 µA current.
The blue graph shows the maximum error in % due to the 1 µA leakage current, as a function of input voltage, at 100 µA through the divider. You can see that it stays below 2% for voltages higher than 300V. The purple curve shows the error if you use 10 times high resistor values, like Nick does. So 100 µA is OK, 10 µA is too little. 600 V × 100 µA = 60 mW, so we probably won't have problems there. 600 V/100 µA = 6 MΩ, so a 5.95 MΩ + 50 kΩ divider will give you 5 V out at 600 V in. For the 5.95 MΩ you can use 1% Yageo HHV-25 resistors, a 4.75 MΩ and a 1.2 MΩ in series give you the required 5.95 MΩ. The HHV-25 series has a working voltage of 1600 V and a 1/4 W power rating. For the 50 kΩ any 1% metal film resistor will do. |
|||||||||||
|
A simple resistor divider is suitable. If you are not prepared to spend time and effort guaranteeing that the dollar or few resistors that you use meet the requirements below then it will probably pay to but a premade divider, also from a reputable source. These are less liable to suffer "provenance issues". DIY issues: For a resistor R at Voltage V, So, for example, a 10 megohm resistor rated at 1/4 Watt will tolerate a dissipation limited voltage of sqrt(0.25W x 10E6 ohm) = 500 Volt. Individual manufacturers data sheets will advise allowable ratings. Use only metal film resistors. 1% resistors cost little more and give slight extra certainty of quality compared to lower tolerance parts BUT If in doubt, buy Panasonic :-). Specifications for Panasonic's thick film chip resistors from 01005 to 2512 I've included a copy of the relevant spec table from the above data sheet at the end of this post, but the max allowed oltages with pkg size are worth noting. Absolute maximum voltage ratings are 500V 1812, 2010, 2512, 01005 are probably also a breathing hazard :-) I'd say that a minimum of 2 x 500V rated parts should be used at 600V nominal max, and 3 x 500V rated parts would be sensible. Use of very high resistance values is unwise unless very special needs exist - in which case very special precautions need to be taken. At 600V and 200 uA power lost from the source is 120 mW.
|
||||
|
|
|
Unless you're dealing with high frequency signals (e.g. a tesla coil), a simple resistor divider down to the range of an ADC (0-10 V or 0-5 V) is the best way. Depending on the accuracy you want, use a bias current 10 to 100x what the ADC's leakage is. e.g. the leakage on my micro's pins can be up to 1 µA (maximum at 85 °C), so I'll use a bias current of 10x that; 10 µA (600 V × 10 µA = 6 mW, so no problems with power dissipation). Therefore, total resistance needs to be 600 V / 10 µA = 60 MΩ. The divider ratio is 5/600 = 1/120 (Note, I'm assuming 600 V is the absolute maximum you'd want to measure; if "600 V range" means something like "occasionally up to 800 V", then adjust as appropriate), so the lower resistor in my ladder should be 60 MΩ/120 = 500 kΩ, and the top the remainder; 59.5 MΩ. Practically, choose resistors that are close (err on the side of the lower resistor being proportionally lower in resistance) and back-calculate from there; e.g. a 49.9 MΩ and a 412 kΩ. The only issue you might run across for high voltages (higher than you're looking at) is if the resistor can withstand it; so check the datasheets. The 49.9 MΩ can take 1600 V. If you needed to measure a higher voltage; size up your resistor or use multiple. If you're looking to low-ball it, you could submerge them in oil and probably exceed the rating many times And as always with high voltages, even if your components can handle it, your board needs to as well. Keep traces an appropriate distance apart. |
|||||||
|


