DIY Current Monitor on Raspberry Pi. My power calculation isn't accurate. Help please?

I see, thank you. I will drop the peak-based calculation technique I put together and replace it with the RMS method. In theory, I suppose I should be able to somewhat accurately calculate the power consumption of my space heater using my current calculation method since it’s a resistive load, but I understand why this won’t work for more complex electronics.

I ordered the ADS1015 and it will be here tomorrow - I suppose I have some time until then to at least play around with the 1115 and see if the Pi Zero is even capable of processing 860 samples per second.

And yes, I must have flipped the ratio around for the CT sensor: 1:1800 is what I meant (and what the product page shows). So if we look at the ratio of currents printed on the CT sensor itself, 100 A / 0.050 A = 2000 (NOT the 1800 the product page shows). I’ll redo my burden resistor calculation in the mean time.

I’m beginning to have a clear picture of why I was struggling. Thank you both for your help so far!

Edit: I also have a few MCP3008 ADCs in my box. Googling the sample rate for these chips shows an insanely high rate of 100+ KSPS. I suppose the obvious answer is to use this chip instead of the ADS 11x5? I suspect at this speed, I’d run into limitations of the Pi or Python itself.

1 Like