Many Flow meters

Started by athtest70, April 26, 2015, 11:43:03 PM

athtest70

Hello!
I would like to add more than two flow meters to moteino.
It will transmit to another moteino if some litres have passed in each interrupt independently.
What coding do you recommend in order to avoid conflict, if two or more interrupts appear at the same time with the achievable volume in order to transmit.
As you understand it is pulse tolerant, not time tolerant.
Thank you.

TomWS

Quote from: athtest70 on April 26, 2015, 11:43:03 PM
Hello!
I would like to add more than two flow meters to moteino.
It will transmit to another moteino if some litres have passed in each interrupt independently.
What coding do you recommend in order to avoid conflict, if two or more interrupts appear at the same time with the achievable volume in order to transmit.
As you understand it is pulse tolerant, not time tolerant.
Thank you.
Look into pin change interrupt.  Several of the Moteino pins can be set up for this.

Tom