logo elektroda
logo elektroda
X
logo elektroda

Virone EM-2 electricity meter reading and GPIO hang-up WEMOS D1 mini, NODEMCU v0.9

Legato 717 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20273811
    Legato
    Level 12  
    Welcome

    I am doing a Virone EM-2 electricity meter reading on two phases.

    I have done the reading in 2 ways and with two circuits.

    1. connecting an OC pulse output to GPIO 1 phase D6, 2 phase D7
    a) using an external PULL-UP
    b) using an internal PULL-UP

    2 I used 2 circuits with a photoresistor together with a module that generates the signal passed to the ESPEasy.
    The signal from the LED in the counter generates a pulse at the output of the module and this, as I wrote, is passed to ESPEasy - GPIO D6 and D7.

    I modelled it on
    https://flytomcio.pl/raspberry-pi/pomiar-zuzycia-energii-elektrycznej-z-wykorzystaniem-diody-w-liczniku/
    https://forum.arturhome.pl/t/licznik-impulsow-z-licznika-energii/1730/8

    In both cases I programmed the WEMOS D1 mini and the NODEMCU with ESP_Easy_mega_20220809_normal_ESP8266_4M1M
    I also uploaded older versions.

    Problem .
    After some time, despite pulses appearing on D6 or D7, ESPEasy does not count them.
    The image below shows the reading from midnight today to now 22:30.

    You can see that phase 1 has zero pulses read and phase 2 has 5813 pulses counted and is still counting.
    If I go into the Devices->Edit setting and give Submit then the reading starts again but after a while it stops counting again.

    Previously similar situation was on D5 so I moved to D6 and still the same.
    What could be the problem as the pulses are generated.

    I have deactivated chip sleep.


    Virone EM-2 electricity meter reading and GPIO hang-up WEMOS D1 mini, NODEMCU v0.9 .

    Firmware
    Build:⋄ 20116 - Mega
    System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
    Git Build:⋄ mega-20220809_57b0c0c
    Plugin Count:⋄ 47 [Normal].
    Build Origin: GitHub Actions
    Build Time:⋄ Aug 9 2022 10:01:11
    Binary Filename:⋄ ESP_Easy_mega_20220809_normal_ESP8266_4M1M
    Build Platform:⋄ Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
    Git HEAD:⋄ mega-20220809_57b0c0c
    Do you have a problem with Raspberry? Ask question. Visit our forum Raspberry.
  • ADVERTISEMENT
ADVERTISEMENT