I'm fooling around with a pulse counter on the 5L events I get from my water meter. So far I've come up with a fairly basic dashboard to display the data:
http://emoncms.org/dBCC/ermwater
My front-end h/w does the accumulation and memory function. The feed to emoncms is basically "5L ticks since birth" (so always gets bigger).
Currently I have emoncms do a ' x 5' and display the feed. That blue number perfectly matches the dials you'll find on the real water meter. I also use the rate_of_change operator to display the current flow rate. It'd be nice to add a daily usage bar graph. I suspect everything I need is there in one of those operators + visualisations, but I'm having trouble getting my head around how they all work.
Does anyone have an example water meter dashboard they're willing to share please?
Re: Water usage dashboard example?
I would also be very interested....
my meter pulses for every 1 LTr and the number on the emontx just rises...
would be nice with a dashboard that displays flow rate and a graph that goes up and down with the usage.. ie 0 when none is used and bumps up to lets say 10 when i do a toilet flush....
could i just have the emontx send the values needed or is there a smarter way?
/bo
Re: Water usage dashboard example?
its much like on this one: http://openenergymonitor.org/emon/applications/water
only that this guide did not say how its done behind the scenes
Re: Water usage dashboard example?
also just discovered that i now get a negative value for water.... is there a roolover limit or something like that?
Re: Water usage dashboard example?
i have attached my sketch for messureing the water usage.... will give it a nights sleep and see if i can figure it
Re: Water usage dashboard example?
finaly i got my sketch right...
but in emoncms is it possible to show both the liter number sent from the node and flowrate with logging on both numbers?
Re: Water usage dashboard example?
Hi,
I made my pulse reader just a few days ago with an optical sensor on the flowmeter spinningwheel. It counts every liter of water. But there is an catch with reading these optical pulses, the sensor could be "latching" when the spinningwheel holds exactly at the sensor..So I build a few lines into my sketch for checking on that. It could be usefull for you to?
This is the intresting part of my sketch:
emontx.Pulse = waterPulses;
#ifdef SERIAL
Serial.print("Send:\t");
Serial.print(emontx.Pulse);
Serial.print("\t");
#endif
timeLast = millis();
gasThis = 0;
}
// read the pulse sensor
magState = digitalRead(magPin);
// Check for change. No need for de-bounce as the sensor latches.
if (magState != magLast && magLast != -1) {
if (magState == 1 && magLast != -1) {
waterPulses++;
gasThis++;
flashLed(200);
Serial.print("On ");
} else {
flashLed(100);
Serial.print("Off ");
}
Serial.println (gasThis);
}
magLast = magState;
Re: Water usage dashboard example?
hi
i did all the maths on the emon tx..... sadly i figured a few days ago its not correct
looking at your code now.... i would like to have math done on emoncms instead
Re: Water usage dashboard example?
your dashboards look fantastic....
only that the water once says power... but not your fault
will be back later
Re: Water usage dashboard example?
any chance you are willing to share the whole sketch?