djsfantasi
- Joined Apr 11, 2010
- 9,237
@crutschow had a very nice approach, but for it to work, I think you need two separate signals/pins input to the Arduino. ORing the pulses results in a loss of information which is useful.
The pulses are digital in nature, are they not? An Arduino digitalRead command will let you know when there is a pulse. Is ms sufficient to tell what you want? Then you can use the millis() function in calculating the time difference.
I didn't see how you were planning on outputting the errors you detect? Are you planning on a display or logging them to external storage, such as an SD card?
The pulses are digital in nature, are they not? An Arduino digitalRead command will let you know when there is a pulse. Is ms sufficient to tell what you want? Then you can use the millis() function in calculating the time difference.
I didn't see how you were planning on outputting the errors you detect? Are you planning on a display or logging them to external storage, such as an SD card?
