2 Pulsecounters, 1 working
Posted: 21 May 2021, 14:21
In my solar PV-configuration have 2 counters DDS238-1ZN
The S0-interfaces of these 2 counters interface to 1 WeMOS&ESPEasy_mega-20200310, pin D3/GPIO0 respectively pin D8/GPIO15
WeMOS reports to 2 identical Virtual Devices [Counter, General, Incremental] in Domoticz.
Worked OK till a few weeks ago, then both went haywire, and gave excessive values for some days.
Counter-Device at pin D3 'revived' and is acting normal again.
Counter-Device at pin D8 has Count2 at 0, Total2 is very low, Time2 very high => Domoticz behaves erratic with exceptionally high dayvalues.
On the other hand see the LED on WeMOS firmly flashing in rythm of S0-pulses [= sync with LED on DDS238-counter] which to me is sign that wiring of S0-interface to WeMOS is OK.
Headscratching: Reason for problem, and how to remedy Counter-function at pin D8??
Have been modestly experimenting with debounce-value and with mode-setting, but does not seem to have effect.
The S0-interfaces of these 2 counters interface to 1 WeMOS&ESPEasy_mega-20200310, pin D3/GPIO0 respectively pin D8/GPIO15
WeMOS reports to 2 identical Virtual Devices [Counter, General, Incremental] in Domoticz.
Worked OK till a few weeks ago, then both went haywire, and gave excessive values for some days.
Counter-Device at pin D3 'revived' and is acting normal again.
Counter-Device at pin D8 has Count2 at 0, Total2 is very low, Time2 very high => Domoticz behaves erratic with exceptionally high dayvalues.
On the other hand see the LED on WeMOS firmly flashing in rythm of S0-pulses [= sync with LED on DDS238-counter] which to me is sign that wiring of S0-interface to WeMOS is OK.
Headscratching: Reason for problem, and how to remedy Counter-function at pin D8??
Have been modestly experimenting with debounce-value and with mode-setting, but does not seem to have effect.