Water Meter - pulse counting using T0 EXT CLK possible?
Posted: 29 Jan 2021 12:34
(new to this forum, but not to electronics)
Hello,
I am looking for help with exploring different possibilities of counting puses with ZUNO.
The plan is to build a water meter, using ZUNO to count pulses from water sensor. The sensor has a very fine granularity so it outputs a many of pulses per liter. It has clean output signal (no need to debounce)
I see three options to do the counting:
* The example provided with ZUNO uses SW to count edges from the sensor. That is not good enough for me, as I can get the pulses quite close to each other.
*A better option that I find in documentation would be to use the external interrupt ZEROX. That would likely work, but I am not sure if that is always given priority when the Z-Wave is working. If not, a pulse could be missed.
Does ZEROX have highest priority and has guaranteed time to execution?
* The most elegant solution I would use on my other processor would be to use timer to count edges.
ZUNO pinout shows T0/T1 EXT CLK input, so the name suggests it has exactly what I need.However, But I can't find any documentation how to set it up.
Anybody has info or pointer to documentation about the EXT CLK pins?
Thanks,
Pavel
Hello,
I am looking for help with exploring different possibilities of counting puses with ZUNO.
The plan is to build a water meter, using ZUNO to count pulses from water sensor. The sensor has a very fine granularity so it outputs a many of pulses per liter. It has clean output signal (no need to debounce)
I see three options to do the counting:
* The example provided with ZUNO uses SW to count edges from the sensor. That is not good enough for me, as I can get the pulses quite close to each other.
*A better option that I find in documentation would be to use the external interrupt ZEROX. That would likely work, but I am not sure if that is always given priority when the Z-Wave is working. If not, a pulse could be missed.
Does ZEROX have highest priority and has guaranteed time to execution?
* The most elegant solution I would use on my other processor would be to use timer to count edges.
ZUNO pinout shows T0/T1 EXT CLK input, so the name suggests it has exactly what I need.However, But I can't find any documentation how to set it up.
Anybody has info or pointer to documentation about the EXT CLK pins?
Thanks,
Pavel