Hi,
The most precise method is:
HV_input
Series RC to ADC_input, C from ADC_input to GND, R from ADC_input to V_ADC_range/2.
The first C is for blocking DC, the second C is a low pass filter.
Simple hardware: 2(3) R, 2 C
It can measure AC without additional distortions and without additional unlinearities (diodes). It can't measure DC.
But you need a constant known sampling rate and RMS calculation software. Best done within an ISR.
Then you get perfect RMS values, independent of waveform...up to a some overtones, depending on sampling rate and LPF.
Klaus
question:
is the goal to build the project ?
are you going to devote the project to be a voltmeter ?
if you're looking for a meter, try this:
https://www.fluke.com/en-us/product/electrical-testing/digital-multimeters/fluke-116#
or
Digital Multimeter, Auto-Ranging, 1000V - MM600 | Klein Tools
The Klein Tools MM600 Multimeter is an automatically ranging digital multimeter that measures AC/DC voltage, AC/DC current, and resistance. It can also measure temperature, capacitance, frequency, duty-cycle, test diodes and continuity. Exclusively designed from the ground up by electricians for...www.kleintools.com
multimeter is more expensive than the project, but it does a lot more, and you can depend on it
6600 is not a standard resistor value
6650 is, and using 6650 with the 1 Meg yields 3.3V, so you need to check the maximum input value of your processor
get a table of standard resistor values
at 500 V, the power drop across the 1 Meg resistor is 1/4 W. use a 1/2 watt instead
when things are working properly, the 6650 ohm resistor will see no more than 3.3V, so 1/4 is plenty. (you could go down to 1/10W)
I do not see the zener diode anywhere in the engineer's garage link you provided
i don't think it helps your device in that configuration
the program assumes sinusoidal AC to convert from peak voltage to RMS voltage
if the signal is not sinusoidal, you will not get the correct RMS voltage
the DC voltage is calculated from the maximum of 5000 samples (measuring DC Voltage)
it may be better to take the average of the 5000 samples
my guesstimate of the tolerance of the circuit is 2 to 3 %, assuming you use 1% resistors
this does not include tolerance in the ADC.
i did not go through the program
it looks like the photograph of the breadboard has more stuff than the project
It will be great if you can help to provide a diagram for this to make it clearer.
If I am to use a 1/2 W for the 1MOhm and 1/4W for the 6650 Ohm, will my P = V / R calculation be impacted and therefore need to use a lower ohm resistor?
no
the power rating of the resistor does not change the required resistance
the required resistance is determined by the needs of the circuit
the power dissipated by the resistor is also determined by the needs of the circuit
the required power rating has to be bigger than the power dissipated
HiHi Feldman,
Thanks for your reply. Hope you can help to explain more.
I was thinking for the 1 Megaohm resistor, the formula I used to obtain it is calculated in the formula below, P is the resistor rating. If it isn't the case, where do I get P?
P = (V*V) / R
Thanks.
Regards,
Kok Hoor
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?