Hello all,
I am trying to configuring 4 switches on a switchboard with domoticz and ESPeasy. I am able to configure it successfully. Now, I want to measure the power consumption of each device on the switchboard. I tried using ACS712 but the readings where nonlinear(using a simple Arduino code as I was unable to find any ESPeasy plugin for ACS712). If I use the I2C sensor I guess ESP32 supports only two I2C devices. Is there any particular sensor with which I can measure the power used by individual devices using a single ESP32? And do ESPeasy have a plugin for the same?
Power measurement of AC loads using ESP32
Moderators: grovkillen, Stuntteam, TD-er
Power measurement of AC loads using ESP32
Last edited by ssd on 22 Sep 2020, 07:26, edited 1 time in total.
Re: Power measurement of each device using ESP32
Recently I2C multiplexer support was added, but it is, because of build-size issues, only included in the 'normal' builds of ESPEasy.
Alternatively, you can make a custom build of ESPEasy to enable support for this feature (search for FEATURE_I2CMULTIPLEXER in define_plugin_sets.h, it is inhibited by LIMIT_BUILD_SIZE). When compiled with this option enabled it allows to configure a supported multiplexer in the Hardware page, and the desired channel(s) an I2C device are selectable per I2C device.
Alternatively, you can make a custom build of ESPEasy to enable support for this feature (search for FEATURE_I2CMULTIPLEXER in define_plugin_sets.h, it is inhibited by LIMIT_BUILD_SIZE). When compiled with this option enabled it allows to configure a supported multiplexer in the Hardware page, and the desired channel(s) an I2C device are selectable per I2C device.
/Ton (PayPal.me)
Re: Power measurement of each device using ESP32
Okay, thank you for the information but to start with I don't know any other way of energy monitoring apart from ACS712 so it will great if guide me with some of these sensors or modules which will help me measure the current or power.Ath wrote: ↑21 Sep 2020, 08:20 Recently I2C multiplexer support was added, but it is, because of build-size issues, only included in the 'normal' builds of ESPEasy.
Alternatively, you can make a custom build of ESPEasy to enable support for this feature (search for FEATURE_I2CMULTIPLEXER in define_plugin_sets.h, it is inhibited by LIMIT_BUILD_SIZE). When compiled with this option enabled it allows to configure a supported multiplexer in the Hardware page, and the desired channel(s) an I2C device are selectable per I2C device.
Re: Power measurement of each device using ESP32
As Ton already stated, for those sensors that only have a limited set of I2C addresses, you can use a multiplexer to overcome this issue.If I use the I2C sensor I guess ESP32 supports only two I2C devices.
About the recent changes of I2C plugins. The update is intended to add support for multiple instances of the same plugin to run on the same node.
But there has not yet been a nightly build including these changes.
Yesterday I did make a new test build based on the current state of the mega branch.
So you are welcome to test it:
https://www.dropbox.com/s/k183w03846szc ... 5.zip?dl=0
https://www.dropbox.com/s/iaea3k4zxe989 ... 5.zip?dl=0
Re: Power measurement of each device using ESP32
OK, I just googled the ACS712 sensor (didn't know it) and it is just an analog output sensor (Hall effect sensor)
So you can just use the ADC plugin.
Just make sure you don't use pins connected to ADC2 of the ESP32 as those do not work well when WiFi is used.
So you can just use the ADC plugin.
Just make sure you don't use pins connected to ADC2 of the ESP32 as those do not work well when WiFi is used.
Re: Power measurement of each device using ESP32
Okay, thank you for this information.
Re: Power measurement of each device using ESP32
Currently, I have no I2C sensor or multiplexer to test this build. Once I procure these materials I will test it for sure. ThanksTD-er wrote: ↑21 Sep 2020, 14:38As Ton already stated, for those sensors that only have a limited set of I2C addresses, you can use a multiplexer to overcome this issue.If I use the I2C sensor I guess ESP32 supports only two I2C devices.
About the recent changes of I2C plugins. The update is intended to add support for multiple instances of the same plugin to run on the same node.
But there has not yet been a nightly build including these changes.
Yesterday I did make a new test build based on the current state of the mega branch.
So you are welcome to test it:
https://www.dropbox.com/s/k183w03846szc ... 5.zip?dl=0
https://www.dropbox.com/s/iaea3k4zxe989 ... 5.zip?dl=0
Who is online
Users browsing this forum: Google [Bot] and 100 guests