Current transformer SCT013-240 AC, bad reading, de lux!

Hi

I have connected a SCT013-240V sensor to my ESP32 (+ some discrete components).
I'm geting shitty readings :expressionless:

image

Rb 33 kOhm
image

My goal for test is to only see change in values when load is on/off.

Load I use is an oven at 1000 W.

Can I ask you to see if I have totally misunderstood?

Thanks

// Define the analog pin for sensor input
const int analogPin = 2;  // ESP32 GPIO2

void setup() {
  Serial.begin(115200);
}

void loop() {
  // Read the analog voltage from the sensor
  int sensorValue = analogRead(analogPin);
  Serial.println(sensorValue);

  delay(300);
}

No good info from serial, load or no load, dossn't matter:

1 Like

To get a valid readings of 50 or 60 Hz voltage swings, you need to sample at at least 10 times that frequency (e.g. more than 600 Hz). Right now, because of the delay and Serial.print statements, you are sampling at around 3 Hz, and have severe sampling errors.

Take a look at this tutorial: CT Sensors - Interfacing with an Arduino — OpenEnergyMonitor 0.0.1 documentation

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.