this is what i assume your false triggers are (you should edit the filter cap):
“The ACS712 module has quite a high level of noise - around 130mA. But that’s with the 10nF noise filter capacitor fitted as standard. Increase that capacitor to 470nF and the noise level drops significantly.”
based on the video, it definitely should help. also, i recommend to average those values, do not allow a trigger based on a single measurement. average at least 10 or more readings.
if power factor is always 1, how about inductive loads, like motors, and most mains psu (smps), they all have quite a power factor…
In theory I was expecting 512 to be the threshold but the code produces the value of 793.
It’s almost there but still with some ghost readings as per the OP, hopefully a cap swap will help.
i’ve found the article about the arduino analog read. it is not for the wemos, and mainly it discussing the atmel analog multiplexer. but it has some very interesting info about how all this stuff works. (see the water tank analogy)
WeMos analogue port is known to have issues too. I can’t remember if it was hardware or software related though. Will check the GitHub thread in due course,
if I use 40 Wh soldering iron for 3 hours a day. How can I calc daily WH usage?
the code zeros out and also constantly changing its Wh after I unplug soldering iron it wont save previous usage