ArduinoGeneral

Analog AC Current Sensor Gravity

userHead dfrobot 2017-03-31 01:59:10 3193 Views4 Replies
Hi, I just bought a Gravity Analog AC Current Sensor (bundled with 20A/1V ACT) I would like to replace it with 100A/50mA ACT sensor but when I tried to use the sample code (in the wiki provided with the link below) with a slight modification to the variable ACTectionRange (I set to 100) the ACCurrentValue was way too high compare to the actual current value (offset of 100+ Amps).

Question, is there any other modification should I do in the code to calibrate the value? just so let you know the 100 ACT has specs of 50mA compare to 1V of the 20A ACT.

Thanks!

https://www.dfrobot.com/wiki/index.php/Gravity:Analog_AC_Current_Sensor_(SKU:SEN0211)
2017-04-07 14:43:31 Hi Wendy,

Thank You for the response, you are right, I am using a 100A/50ma. My ACT specs are:

Model: SCT-013
Input Current: 0~100A AC
Output Mode: 0~50mA
Non-linearity: ±3%
Turn Ratio: 100A:0.05A
Resistance Grade: Grade B
Work Temperature: -25°C ~ ﹢70°C
Dielectric Strength(between shell and output): 1000V AC/1min 5mA
Leading Wire in Length: 1m
Open Size: 13mm x 13mm

If the changes is in the code, is it possible for me to get the updated code from you guys?
If the changes is in the hardware (the resistor hack), care for me to post the wiring diagram on how to attach them in the ACT.

I'm sorry I'm not much good at electronics/hardware :)

Thanks again.
userHeadPic dfrobot
2017-04-05 20:11:15 Hi

I confirmed this problem with my colleague and got a reply that it seems only 100A/1V ACT can be used with these code. If other ACT, may result some problem. If your ACT is 100A/50mA, maybe you can try to parallel a 20K resister to the output of ACT converted to 100A/1V. If not, it may need to modify some code.
Or would you mind give me your ACT spes?
userHeadPic Wendy.Hu
2017-04-01 08:26:39 Hi Wendy,

Thank You for the response, but the one you suggested was the one I already did and mentioned on my original post above. I wrote- "with a slight modification to the variable ACTectionRange (I set to 100)". So basically, that's what I did. I just replaced the ACTectionRange from 20 to 100 but things got messy. The result value was way way off, from 2.5 amps reading from the original 20A ACT sensor to a 105-110 amps on a 100A ACT sensor which is obviously way more than the 100A ACT max specs :) so there is something wrong with the formula?

On side note, I also tried to test it with a genuine Arduino Uno and Arduino M0 although they have slightly different results I think the Uno was more accurate than running it on a ARM/SAMD chipset.
userHeadPic dfrobot
2017-04-01 01:36:04 Hi

Just set the ACTectionRange to 100, it would be ok.
userHeadPic Wendy.Hu