嗨,图9中的图表看起来丑陋和危险。你真的建立并连接了这个电路到任何活着的东西吗?希望标有接地符号的连接没有连接到盒外的任何地方。如果用文本Vss替换所有这些符号,看起来就不那么挑衅了。在图的电源部分,有从R相到D1和D4二极管的直接连接。在LM78稳压器上,使测量电路电位以R相为基准,其余两个信号在230V德尔塔系统中从+325V到-325V变化,在400V Y系统中从+560到-560V变化,测量电流为0.42mA。晶体管R6和R7,这只能给出+0.42V和-0.42V的电压,对于任何类型的精度来说都太低了。为了避免PIC16中的ESD二极管的电流引起的问题,在到达ADC之前,可以小心地用肖特基二极管对信号进行修剪。而且,信号将负一半。在PIC16F中的ADC无法测量时间。一种可能性是,用每个10kOhm到Vcc和10kOhm到Vss的2个电阻器替换R6和R7,因为给出Vcc/2ADC输入电压的中点值的偏置网络然后在每个正弦周期中在2.5+2.1V和2.5-2.1V之间变化。将电压耦合到微控制器中,可以计算一段时间内所有样品的平均中点值和RMS值(Vadc-Vmid);和+=(Vadc-Vmid)**2;。RMS=Sqrt(求和/n);对于#9这样的电路,程序开发和调试有其自身的挑战。在错误的时间将程序员/调试器工具连接到电路上,很可能会破坏该工具和计算机,以及损害您的健康。公司做着和你想的一样的事情。有专门的芯片,以及专门为电力计量而设计的预编程设备,包括单相和三相测量,电压,电流,有功和无功功率。你可以学习数据表和应用说明。在微芯片网站上的标签,看看它们是如何使用的。导航到应用&电力监控…问候,Mysil
以上来自于百度翻译
以下为原文
Hi,
Diagram in message #9 look ugly and dangerous.
Have you really built and connected this circuit to anything live?
Hopefully, connections marked with the ground symbol is not connected to anything outside the box.
If you replace all these symbols with the text Vss, it would look less provokative.
In the power supply section of the diagram, there is a direct connection from the R phase to D1 and D4 diodes and from there to LM78 regulator,
This will make measurement circuit potential anchored with R phase as reference.
The two other signals will then either vary from +325 to -325 V in a 230 V Delta system, 0.23mA
or from +560 to -560 V in a 400 V Y system, giving a measurement current of 0.42 mA.
With 1 kOhm resistors R6 and R7, this will only give a voltage of + 0.42 V and -0.42 V,
far too low for any kind of precision.
To avoid problems caused by current in ESD diodes in the PIC16, you may take care to clip the signals using shottky diodes before reaching the ADC.
Also, the signal will go negative half the time, and the ADC in a PIC16F cannot measure that.
One possibility could be to replace R6 and R7 with 2 resistors each:
10 kOhm to Vcc and 10 kOhm to Vss, for a bias network giving a midpoint value of Vcc/2
ADC input voltage would then vary between 2.5 + 2.1 V, and 2.5 - 2.1 V in each Sine period.
Sampling the voltage in microcontroller,
you may calculate average midpoint value and RMS value of (Vadc - Vmid);
Sum += (Vadc -Vmid) **2; for all samples in a period.
RMS = Sqrt( Sum / n);
Program development and debugging for a circuit like #9 have its own challenges.
Connecting a Programmer / Debugger tool to the circuit at the wrong time, could well destroy the tool and your computer, as well as beeing harmful to your health.
Microchip do deliver components to companies doing things similar to what you are thinking about.
There are specialized chips, and preprogrammed devices made specifically for Power metering,
both single phase and three phase measurements, voltage, current, active and reactive power.
You could study datasheets and application notes available on Microchip website,
to see how they may be used. Navigate into Applications > Power Monitoring ...
Regards,
Mysil