I'm looking for suggestions on how to accomplish this...
I want to monitor the strokes of a pump running 0-500 strokes per minute. I think this would be done by triggering an interrupt on each stroke and comparing the elapsed time to the past interrupt event. Then do the math to calculate SMP. Is this doable? How do I start a timer to time the event? Or at least read a free running timer each event to calculate the time difference between strokes. But i can't figure out how to start or read a running timer? I also want to totalize the pump strokes.
Teensy 4.1
Thanks for any help!
I want to monitor the strokes of a pump running 0-500 strokes per minute. I think this would be done by triggering an interrupt on each stroke and comparing the elapsed time to the past interrupt event. Then do the math to calculate SMP. Is this doable? How do I start a timer to time the event? Or at least read a free running timer each event to calculate the time difference between strokes. But i can't figure out how to start or read a running timer? I also want to totalize the pump strokes.
Teensy 4.1
Thanks for any help!
Last edited: