Calculating current from SCT013

30 Dec 2011

I've been reading Daniel's energy monitoring notebook post and I want to do something similar.

I have an SCT013 non-invasive current clamp that outputs 1v. The voltage output is 1v AC so I have used a voltage divider so that it can be measured using an AnalogIn pin. I know that I need to calculate the RMS of the AnalogIn with a sample rate 500Hz.

I have no idea where to start though as this is all new to me. Could anyone offer me any sample code so that I could measure the apparent power load using the SCT013?

Thanks!!

30 Dec 2011

it depends on the output of the sensor, If it is a sine wave, then you could sample like crazy for 40 mS, Find the max value, from Zero current. Then multiply by 0.7 To convert to RMS (approximately) I AM assuming 1 volt = 10 amps ?

If you have a data sheet, please add a link, so we can help further.

Hope this helps ...

Ceri

31 Dec 2011

The one I am using is the 30amp model but there are others. Spec sheet here:

http://iteadstudio.com/store/index.php?main_page=product_info&products_id=57

And this is roughly what I am trying to achieve:

http://mbed.org/users/mbed714/notebook/home-energy-monitor/#c2404

I'm fine on with hardware but don't know how I would sample and calc the RMS.

Thank you.

02 Jan 2012

Any more tips please guys?