Interfacing Current transformer with PIC16f88

current transformer

I am trying to interface Current transformer with PIC16F88. I have used 120 Ohms burden( recommended is 125 ohms in datasheet) ,I am using 20:1 A CT with winding ratio 1:2500. The link to datasheet is :http://www.shahelectronics.net/MediaImages/SET2106-2500-20A-20AMP_CT.pdf So please help me with some techniques for interfacing and coding.

Best Answer

I am using 20:1 A CT with winding ratio 1:2500.

Not quite. You are using a 2500:1 transformer and this transforms a current of 1 amp in the primary to a current of 0.4mA in the secondary (providing you have an appropriate load).

I am interested in RMS value

If you are measuring load current of some AC appliance then the current is likely not to be very sinusoidal and the only realistic way of determining true RMS is to sample the output waveform at many times the AC power frequency.

The CT's output can be offset and biased so that the full waveform (at max current) is within the upper and lower bounds of your PIC's ADC. You then sample this at (say) 1kHz, square each sample, accumulate over a period (say 1 second) and then take the square root of the accumulated 1 second value.

If you don't want to go to that trouble, you can usually place a diode in series with the burden resistor to get a rectified half wave output (also add a clamping diode for the negative half cycle of the CT's output). You can also use a bridge rectifier between burden and CT but because there are two diode drops you need to check the data sheet to see if the extra volt-drop from two diodes will cause inaccuracies. This can of course be easily filtered into a relatively smooth DC value before feeding into your PIC's ADC input. It won't be exactly true-RMS but may be good enough for your needs.