I have a one Tsl257 photodiode connected to gpio12 and gpio13 detecting pulses from an electricity meter.
I have set up two tasks using pulse counter one for watts and one for kwh.
The first on gpio12 and the second on gpio13.
On average it is recording about 50 pulses in 5 mins.
But sometimes the second task is counting one less pulse,But not every time,sometimes they match??
Pulsecounter Glitch?
Moderators: grovkillen, Stuntteam, TD-er
Re: Pulsecounter Glitch?
Just to prove it:-
[attachment=0]untitled.JPG[/attachment]
[attachment=0]untitled.JPG[/attachment]
- Attachments
-
- untitled.JPG (79.82 KiB) Viewed 6570 times
Re: Pulsecounter Glitch?
Strange thing is though after a reset and letting it run for a while,you can see the totals are correct but the count is off?
- Attachments
-
- untitled.JPG (78.24 KiB) Viewed 6556 times
Re: Pulsecounter Glitch?
Just an update on this.
Yes it does show some discrepancies on the web front end but it is working perfectly!.
It has recorded about 37,000 pulses and never missed a beat so
Well done that developer

Yes it does show some discrepancies on the web front end but it is working perfectly!.
It has recorded about 37,000 pulses and never missed a beat so

Well done that developer


Re: Pulsecounter Glitch?
Well after approx 112,000 pulses it seems to have slipped up somewhere as Domoticz is reporting 30 pulses less than the pulsecounter in ESPEasy.
I can only imagine that it has had a connection problem to my domoticz server and then disappeared out of the log after a while so i can not prove it.
It would be nice to have the pulsecounters catch up somehow if this happens???
If it cant connect does it retry?,if so how many times or how long does it try for?
Even so the Espeasy pulse counter is bang on so very happy with that side of things.
I can only imagine that it has had a connection problem to my domoticz server and then disappeared out of the log after a while so i can not prove it.
It would be nice to have the pulsecounters catch up somehow if this happens???
If it cant connect does it retry?,if so how many times or how long does it try for?
Even so the Espeasy pulse counter is bang on so very happy with that side of things.
Re: Pulsecounter Glitch?
I have managed to send the extra 30 pulses through the Domoticz api/url so they are both matching again.
But this makes me wonder if the pulsecounter should be sending the total count in some way.
I know if it goes down it would lose count but surely we can read the domoticz count if the esp is reset and restart from there?
But this makes me wonder if the pulsecounter should be sending the total count in some way.
I know if it goes down it would lose count but surely we can read the domoticz count if the esp is reset and restart from there?
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 30 guests