Clean AC current waveform for power-factor calculations

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

Post Reply
Posts: 1
Joined: Fri Nov 17, 2017 11:10 pm

Clean AC current waveform for power-factor calculations

Post by pikamaps » Fri Nov 17, 2017 11:15 pm

ive been doing a project to figure out the power factor of a load by comparing the zero crossings of the voltage and current signals (of a AC signal) and hence finding the phase difference using an arduino UNO.

the application is confidential but i can say that im using a load which can introduce change the inductance in the circuit and hence give me a phase difference and also increase the effective resistance which further decreases to current consumed. i have my voltage signal available through a particular method and im using a ACS712 hall effect current sensor module for current sensing.

Ive been able to get cleaner waveforms using a low pass filter (from 500ma to 300ma i can get good power factor readings) for currents up till 300mA, but currents lower than that become comparable to the inherent noise of the sensor.
Hence im looking for other options to get a clean current waveform, i looked into similar sensors with the current ranges and sensitivities that my application desires, but they aren't readily available and may cost a lot on a production level for my company.
I cant use a CT cause my currents are already at very low values, lowering them further through a CT wont help and as per my calculations for 1:50 turns CT will end up with similar low current signals as the ACS712 (dont know about the noise effects though), hence im looking at the shunt resistor method. my questions are as follows:

1) Is there any other approach i could follow to calculate the power factor?
2) can i still use a CT? considering its an isolation method. but how would i measure currents in the range 500ma to 50ma that is required for my application.
3) i have tried using a 5 ohm resistor as a shunt (5*0.2 = 1Vpp) and tried to observe the output, the signal seems to be very noisy to begin with, how do i go about this? additionally how do i make it safer considering there is galvanic contact with the AC lines as opposed to other methods.
4) should i follow any other approach to get this done?

so im in a bind :/ need help!!! :cry:
(sorry for the big paragraph and list of Questions! 8-O )

Support Volunteer
Posts: 990
Joined: Wed Mar 22, 2006 11:02 am

Re: Clean AC current waveform for power-factor calculations

Post by n1ist » Mon Nov 20, 2017 5:52 am

Last time I needed to measure power factor, I used an STPM32, but most energy metering ICs can measure power factor. I used a CT but didn't need to go down to 50mA. Perhaps running multiple turns of the primary through the CT would give enough of a signal; it all depends on what your upper current value is as well. Using a CT let me reference the meter to neutral while measuring line current. The output of the metering IC went through optoisolators before getting to the micro.

For a different project, I used a current shunt but there as well, I was more interested in higher currents. As you mention, you need to be really careful in such a design for isolation, both during normal operation and while probing the circuit. I isolated the USB on all of my development tools and used differential probes on the scope.


Post Reply