I have a circuit as per the diagram in the image. I am using the ct clamp SCT013 20a/1v (with internal burden sensor).
As you can see from the serial logs, the voltage being received seems to be roaming / drifting and I’m not sure how to keep reasonably accurate measures. I’m also seeing quite a few negative values.
I am supplying the 5v input from a power supply and can guarantee a stable 5v input.
Using a hair dryer and different combos of high/low airflow and temps to get different amp pulls and a power meter to get actuals.
I start of with ~3A current – close to accurate
Switch to high (actual is 12.61A) – the first measurement is very close to accurate, but then over the next several measurements the voltage goes all over the place even though the dryer setting is the same (as is the current draw shown on the meter).
Any idea what is causing this drifting/roaming voltage? I have tried multiple ct_clamps, I have tried with the internal ADC on the d1_mini, multiple d1_minis…in all cases I am seeing similar behaviors. I cannot figure out what is causing this, I would REALLY appreciate some expertise. thank you in advance.
Thanks for the response. I was thinking I may need to add extra components (and did try a few combos) – but – it seems as though the ct_clamp I have has the burden resistor inside it already since it’s a 20A/1V. So I assume I may need to add a capacitor to stabilize the voltage (and perhaps the voltage divider resistors…but I assumed 0V == 0A and 1V == 20A and I could just measure the input voltage on the ADC. Also, the gain, since the ct_clamp outputs, 1V I assumed the gain needed to be 1.024 since the max output voltage of the ct_clamp is 1V, no? Why are you using 6.144?
If you get it to work, could you please post the circuit you used? Is your ct_clamp also a 20A/1v?
I’m using a CT013 - 100A connected to a 51ohm burden resistor. Also I have follow the guide, so I have One capacitor of 10µF and 2 equal resistor of 10K ohm. I use a D1 mini connected to a ADS1115.
For burden, I calculated base also on the guide provided with a current RMS of 40A and 3,3v as input of ADS1115.
Schema: I don’t have a good picture to share but you can refer to the guide or Energy Tracking with ESP32 + CT Clamp Sensor from an Efergy elite 1.0R
The gain is on ADS and not on ct_clamp. I already modified to something more logic 2.048V