[PIC] Power factor measurement using PIC18f4520

Status
Not open for further replies.
Be careful though, the switch will have to be 'closed' throughout the entire AC cycle so if a solid state relay is used it must not have zero crossing detection. If it switches at zero crossing there is a risk that the capacitor will connect and disconnect in phase with the voltage waveform and you might get strange results.

Brian.
 
Be careful though, the switch will have to be 'closed' throughout the entire AC cycle so if a solid state relay is used it must not have zero crossing detection.

This is *very* important and the time constant for connection and disconnection must be at least 10 periods or cycles of the mains frequency. The software must keep track (of the turning on and off of the relay) and ignore power factor computations after 2-3 cycles of turning on the relay (the system must be given time of at least 1 cycle to stabilize) and must take action only after the power factor stays low for 2-3 periods or cycle.
 


Hi Betwixt,
Since this topic related to zero crossing is being discussed I was wondering if it is possible
to use a transformerless capacitive power supply for driving the optocoupler LED after removing the
filter capacitor at the output stage. This design is very common
for example: https://ww1.microchip.com/downloads/en/AppNotes/00954A.pdf

I know there would be a phasing shifting involved in this but if this phase shifting can be accounted for
then its not a problem and accuracy can be achieved. Your opinion about the same would be highly
appreciated.

Regards
asimov
 

I was wondering if it is possible
to use a transformerless capacitive power supply for driving the optocoupler LED after removing the
filter capacitor at the output stage.

It is certainly a good suggestion to replace the transformer with a capacitor diode and a zener but for phase calculation, but we need two voltages that are proportional to the voltage and current respectively. I fail to see how we can get voltage and current readings from a constant voltage power supply that can of course drive the optocoupler LED.

We need not bother about the zero crossing if we can capture about 10 points within a complete period (any 20 ms time interval would be enough for a integration).
 

Since this topic related to zero crossing is being discussed I was wondering if it is possible
to use a transformerless capacitive power supply for driving the optocoupler LED after removing the
filter capacitor at the output stage.
It's easier than that, to generate zero crossing pulses just take the AC, pass it through a bridge rectifier, a series resistor and then to the LED. Any voltage above LED Vf will light it, only the brief period when the voltage is close to zero crossing will turn it off.

To generate a transition from high to low and low to high at alternate zero crossings, use a series resistor then a reversed ordinary silicon diode across the LED, it will light on one half cycle and turn off on the other.

Both these methods do not intoduce any phase shift but there is a short time either side of zero crossing where the voltage will not be high enough to operate the LED. The time will be fairly constant though so it is easy to compensate for it in measurements.

Brian.
 

How are the things coming out?
 
How are the things coming out?

Hello c_mitra,

First of all, there is an error in the RC filtering circuit for phase calculation: Large electrolytic capacitors within are taking too much time for averaging, what results in an output that is not in real-time. i.e the RC circuit takes an image of the proportional to voltage output way beyond its supposed output. Delayed image in other words.

Second, I couldn't find/make a choke of 50mH to test what BradtheRad made as simulation. I did made many chokes/autotransformers, but all their impedances were greater beyond than 50mH. This results in a meaningless compensation.

Meaningful power factor correction, takes place for big loads, and as you proposed all motor-pumps rated at >1HP are best to seek this correction.

Other than this, project is working fine. :lol: :lol:

Thank you
 

I often used to tell my students that wild goose chases are very interesting from a scientific point: in research, catching the goose is not the ultimate aim; the objective is to study and learn their behaviours under different conditions. These knowledge will come useful and handy in some other conditions, perhaps unexpectedly.
 

Second, I couldn't find/make a choke of 50mH to test what BradtheRad made as simulation. I did made many chokes/autotransformers, but all their impedances were greater beyond than 50mH. This results in a meaningless compensation.

A plain inductor is the obvious load to use, in order to see waveforms which have to do with power factor.

If you can be flexible with the frequency, then your range of options is broader.
One experiment worth trying:

(1) Make an LC tank circuit. (The capacitor should be non-polarized.)

(2) Apply a sine sweep, while looking for the resonant frequency.

(3) When you find it, detach the capacitor.

(4) This leaves only the inductive load. This produces the same situation which you are designing your project to detect, namely power factor error.

(5) Observe waveforms. You'll probably see current lagging voltage by 90 deg (or almost).

(6) Reconnect the capacitor, and observe that it restores power factor (current waveform coincides with voltage waveform).

(7) Try different C values, and observe the different amounts of power factor correction.
 
Hi,

I'm sorry to read this.
there is an error in the RC filtering circuit for phase calculation: Large electrolytic capacitors within are taking too much time for averaging
The RC filters for U, I and pf should be the same. All with the same time to settle. A raw estimation is about 200ms.
Calculated to meet a typical update rate of a measurement device display.

Klaus
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…