Hello everyone, I’m new to the forum and I’m writing to you for a problem that I can’t understand.
I made a simple circuit on an ESP32, with 4 probes of the type SCT-013 20A. I also connected the circuit to detect the voltage on an esp32 input, with a AC/AC 230V-12V.
See below my definition.
#define ADC_E1 35 // current pin energy 1, for other ones see below #define ADC_E2 33 #define ADC_E3 34 #define ADC_E4 32 #define ADC_VV 39 // voltage pin #define VCAL 185 #define ICAL 20 EnergyMonitor emon1,emon2,emon3,emon4; emon1.current(ADC_E1, ICAL); emon1.voltage(ADC_VV, VCAL, 1.7); emon2.current(ADC_E2, ICAL); emon2.voltage(ADC_VV, VCAL, 1.7); emon3.current(ADC_E3, ICAL); emon3.voltage(ADC_VV, VCAL, 1.7); emon4.current(ADC_E4, ICAL); emon4.voltage(ADC_VV, VCAL, 1.7);
Everything works fine, Vrms and Irms provide very accurate value.
Problem is realPower, two clamps works and but not the other ones, which provide ZERO or NOT CORRECT real power. If I reverse the 12 volt ac input cables, the probes that gave wrong values start to work fine but the other two stop working well. Can you help me, where can the problem be?