JR01 wrote:Hi, the same author on Instructables you quoted and linked to his project to get AC current smoothed to measure it, published a new / improved project now for AC hall effect measurement with Arduino. See it here
http://www.instructables.com/id/Simplif ... -Using-AC/. He does not need the smoothing circuit anymore, but uses the Arduino "Filters" library. See the filters Arduino sketch here
http://playground.arduino.cc/Code/Filters. Any chance we can ask dev's to include this in order to read AC current with hall effect sensors like the ACS709, or ACS712 or similar?
Hi JR01,
Looked at the instructable article. I have experimented with exact the same sensor but do not really like that sensor . The electrical isolation between the Line current and the low voltage part (arduino) is very small.
There is a safer ACS712 module that is only a little more expensive but it has better isolation properties. (Greater distance of the conducting parts.)
http://www.aliexpress.com/item/Original ... 83198.html
I have been experimenting with ACS712 and a PME pro Mini Extender and have very usable results.
Though the combination of ACS and PME have some difficulties.
1) The noise in the ACS is about 0.12 Ampere on the 5Amp module, so there is never a zero reading.
2) Accuracy and foremost resolution is limited by the PME AD converter which is 10 bit (1024 steps)
As the 5Amp has an output of 0.185V/Ampere and the ADC has a resolution of 5V/1024 there are only about 26.4 mA resolution.
The good thing is that you can do a lot of measurements in a short period.
In 0.1 second (100.000 micros) the PME does 250 measurements, so you sample exactly 5 periods of a 50Hz or 6 cycles of 60Hz. The PME calculates the square root of the sum of the squared values, which is very close to the true RMS value.
It needs some more to calculate the power. It is acceptable to assume that the line voltage is always 230 volt (+- 5%) But the Cos φ value needs to be calculated. For that you need a circuit to measure the zero crossing of the voltage and calculate the difference with the zero crossing of the current. Preferrable that circuit needs to have line isolation with a opto-coupler.
Power used/generated is then: measured current * 230 * Cos φ.
I am working on that.
For now I will publish a sketch for the PME in this topic
http://www.esp8266.nu/forum/viewtopic.p ... nder#p6385
This measures the RMS current without Cos φ calculation