openenergymonitor / EmonLib

Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE
openenergymonitor.org
GNU Affero General Public License v3.0
584 stars 418 forks source link

Making Emonlib non-blocking #67

Open TurboNerd95 opened 2 years ago

TurboNerd95 commented 2 years ago

Hello,

I've had a brief look at the code and I'm wondering if it's possible to make the CalcVI function asynchronous? i.e. be able to constantly calculate the voltage and current, and also being able to perform other tasks at the same time? The best example of this usage would be a wall power meter with an LCD display, were you can seamlessly switch between displaying current, voltage, watts, change a settings, etc, while everything is still being calculated.

donemuhendislik commented 9 months ago

Hello,

I've had a brief look at the code and I'm wondering if it's possible to make the CalcVI function asynchronous? i.e. be able to constantly calculate the voltage and current, and also being able to perform other tasks at the same time? The best example of this usage would be a wall power meter with an LCD display, were you can seamlessly switch between displaying current, voltage, watts, change a settings, etc, while everything is still being calculated.

Hi,

I ve faced this problem too and I summarized it in here : https://github.com/openenergymonitor/EmonLib/issues/76

Have you had any solution for this situation ? If you can help, i will so appreciated...

Thanks a lot