hi to all
i've just order this current non invasive sensor.
i'cant understand whic kind of out it offer.
volt ? DC or AC ?
Some of us already use it ?
Thakyou in advance.
Niomix
http://www.seeedstudio.com/depot/electronic-brick-electricity-meteranalog-p-471.html?cPath=144_154demo code
const int sensorPin = A0; // pin that the sensor is attached to
int sensorValue;
int time=1;
float current;
float effective_value;
void setup() {
Serial.begin(115200);
}
void loop() {
int sensorMax = 0;
while (millis() <time*1000) {
sensorValue = analogRead(sensorPin);
// record the maximum sensor value
if (sensorValue > sensorMax) {
sensorMax = sensorValue;
}
}
time++;
current=(float)sensorMax/1024*5/800*2000000;
effective_value=current/1.414;
Serial.println("The amplitude of the current is(in mA)");
Serial.println(current, 1);
Serial.println("The effective value of the current is(in mA)");
Serial.println(effective_value, 1);
}