LowPowerLab Forum

Hardware support => General topics => Topic started by: athtest70 on April 26, 2015, 11:43:03 PM

Title: Many Flow meters
Post by: 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.
Title: Re: Many Flow meters
Post by: TomWS on April 27, 2015, 01:16:05 AM
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