CircuitSetup / Expandable-6-Channel-ESP32-Energy-Meter

Hardware & Software documentation for the CircuitSetup Expandable 6 Channel ESP32 Energy Meter. Works with ESPHome and Home Assistant.
https://circuitsetup.us/product/expandable-6-channel-esp32-energy-meter/
MIT License
511 stars 102 forks source link

Isn't reading Voltage at all, Frequency varies wildly #107

Closed peely closed 1 year ago

peely commented 1 year ago

EDIT: Answer likely found (Thanks to digiblurs discord), my power adaptor was AC to DC, I had no idea AC to AC was a thing! After some searching i've found one online and have ordered. Once it arrives, and works, i'll close this issue.

Hi there, my Expandable 6 Channel has just arrived and i'm struggling to get it setup correctly, i'm hoping you can be of help :)

ESPHome flashed, reading coming back into Home Assistant via MQTT, all working. But the readings are wrong. I've used the https://github.com/CircuitSetup/Expandable-6-Channel-ESP32-Energy-Meter/blob/master/Software/ESPHome/6chan_energy_meter_main_board.yaml as my base, and modified with my local values (In the UK, so voltage and frequency are different). Please see this PR for my diff https://github.com/peely/Expandable-6-Channel-ESP32-Energy-Meter/pull/1/files

This is resulting in readings sent over MQTT that have a wildly varing Frequency, image

And the Voltage reading of near 0 always image

I'm well aware that this will be a PEBCAK issue, i'm just not sure what config value I can change to fix this :sweat_smile:

I've got a 50A CT Clamp on CT1, and I also have a 30A clamp on CT2, both on the same live test wire at the moment (I wanted to see the effect clamp size had on readings, my screenshots are only of the 50A clamp). I'm not using the power supply suggested, just another 9V power supply I already had, which my volt meter tells me is outputting 9.12V

Is there anymore information I can provide to help the troubleshooting? I was following this guide linked to by the Home Assistant Energy page. Thank you in advanced.

CircuitSetup commented 1 year ago

I was going to ask if the transformer was AC/AC, and not AC/DC :) Common mistake - glad you figured it out!

peely commented 1 year ago

Yes indeed I did, with help :) And now i've had time to re-test it with the new power transformer and it's working great! Thank you very much. I'll close this issue now.