??? 03/05/09 20:14 Read: times |
#163119 - On the teatering edge...... Responding to: ???'s previous message |
Per Westermark said:
For low speeds, you will get one display update for each pulse received. At high pulse frequencies, you can switch the display output frequency based on two pulse periods, three pulse periods, ... Using multiple pulse periods means you get an averaging and a smoother displayed speed. At the lowest frequencies, you don't have such an option, but will just have to do your best - wait for the next pulse and figure that if it tays longer than a configured limit, you may give up and assume zero speed. I'm using 20Khz reference for speeds of 15MPH and higher. The problem I seeing now is getting down to near zero. I set a trip so that if <15, the clock timer drops to 5Khz, but I can seem to get 1-6MPH to display properly or it is very very slow to respond. Any different angle I can take to measure this? Should I just measure number of input pulse and divide by x ? Then I have to find a way to create the zero trap, would the second time be of any use here....? I have a very fast and usuable display from 15MPH up, but it gets sloppy toward the bottom. Any tips would be helpful and thanks! |