The count method
Hello guys, I am having trouble with the count method from the CPU class. For example, when I send a 6Hz square wave signal to the javelin, the method returns a 0 or a 1 when the timeout is set for a second. I should be expecting a 6 because there are 6 rising edges in one second for a 6HZ signal. I am trying to build a tachometer, how can I solve this problem or is there other ways to build a tachometer using javelin?
Comments
Timeout parameter: timeout - the amount of time to count transitions over. Measured in 8.68us units. The value of 32,767 allows a maximum measurement time of 284.4ms
regards peter
http://forums.parallax.com/showthread.php?p=464539
regards peter