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!!
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!!
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
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
I'm fine on with hardware but don't know how I would sample and calc the RMS.
Thank you.
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.
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
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!!