It's called a 'transformer'. This provides isolation from the mains to protect you and the PIC from danger. The transformer low voltage output (e.g. 3V RMS) is a known fixed fraction of the mains voltage input.a circuit which receives the voltage from AC mains( i.e Line and Neutral) and gives out a low voltage to PIC .
It's called a 'transformer'. This provides isolation from the mains to protect you and the PIC from danger. The transformer low voltage output (e.g. 3V RMS) is a known fixed fraction of the mains voltage input.
Welcome to AAC!
This circuit is not isolated from the mains - the whole circuit is live. It uses a capacitor input power supply discussion of which is not allowed in here on safety grounds.Here in below pdf designer does not use any transformer or optocoupler but he says he is doing measurement using op amp.
This circuit only measure current. You would need to do some work to convert it to reading voltage. Some of your new circuitry will be at mains potential requiring great care troubleshooting if doesn't work as you expected.i got an idea of using optocoupler by below link
http://faculty.petra.ac.id/resmana/private/instrument/rick-96.pdf
A 3V transformer would provide around 4.2V of rectified DC which would give you reasonable for higher supply voltages and still keep within the 0V to 5V for the PIC. For higher transformer voltages, you just a potential divider to reduce the voltage to the range the PIC can measure.The transformer low voltage output (e.g. 3V RMS) is a known fixed fraction of the mains voltage input.
I would expect the transformer phase shifts for both voltage and current to be very small, but they certainly could be corrected by measuring the power of a resistance load and adjusting the calculations (if necessary) to give a PF of 1.When calculating power, keep in mind that the current transformer will introduce some sort of phase shift, perhaps few degrees. If you're measuring power of a motor with pf around 0.6, this few degree phase shift will produce substantial errors, so you will need to correct it (most likely in your software).
A transformer is the easiest and best way to read the mains voltage with isolation.
Why are you resisting that solution?
It's possible to use an opto coupler circuit for that purpose but it becomes a lot more complex.
Note that a current transformer goes around only one of the main's wires.
To determine power factor you will need to determine the ratio of the real power to the apparent power.
You can't do that by measuring the rectified AC (DC) voltage, it must be measured in the AC form.
The easiest way to determine the power factor is to simultaneously sample the voltage and current at a high frequency (perhaps a 100 times the main's frequency) with an A/D converter and then calculate the ratio of the real power to the apparent power to get the value of the power factor.
This will give an accurate power factor, even if the load causes distortion in the current drawn, such as many electronic devices do.
Here's a paper on how to deal with that.
I believe it's allowed here as long as it's isolated by whatever means.Unfortunately AAC only allows for transformer isolation, which is a shame because there are cheaper, esier, and equally safe ways to do it without.
Unfortunately AAC only allows for transformer isolation, which is a shame because there are cheaper, esier, and equally safe ways to do it without.
The relative safety of a given method may be highly dependent upon the experience and skill of the one using the method. Hence, discussion of circuits that are powered directly from the mains are not allowed here and circuits that connect to the mains without isolation are carefully reviewed with respect to safety to not only those immediately participating the the thread but also for inexperienced users who might come across the thread later.Unfortunately AAC only allows for transformer isolation, which is a shame because there are cheaper, esier, and equally safe ways to do it without.