LowPowerLab Forum

Hardware support => Moteino => Topic started by: G550_Pilot on October 05, 2017, 04:08:55 PM

Title: Moteino-R5 USB Water Meter Issue
Post by: G550_Pilot on October 05, 2017, 04:08:55 PM
Hey Everyone -

I am using a bunch of the R5-USB motes and I recently added a smart meter to my pool fill control system but I am getting some weird readings back from my sketch and I am trying to figure out if it is my code or something else that may be causing the issue.

So I have a normal vacuum breaker attached to my irrigation system with a smart meter attached to it as well. I have an R5 taking meter reading from this and logging these readings to OpenEneryMonitor's EmonCMS platform. From here, I have another smart meter attached to one of my sprinkler valves which actually is used for filling my pool when it gets low (yet another R5 monitors my pool level).

So I finally got around to getting the pool smart meter wired up and using (basically) the exact same code on my irrigation water meter and my house meter including a Max6816 debouncer.

Now is where the problem starts. My instant flow works great, my house and irrigation meters work great, but on my pool meter, the total used gallons are incrementing even when no water is flowing. In the last week, it has shown that I have used 1100 gallons of water when I have used none.

I know I am not using any water since the physical meter has shown zero usage. I also know the flow is accurate and when I use water the total amount of increase is accurate based on the physical meter readings, but for the life of me I cannot figure out why I am getting a slow, progressive climb in total water used.

I was hoping someone could look over my sketch and see if I am missing something stupid or recommend to me other places to look for trouble.

Many Thanks