On Sat, Aug 15, 2009 at 9:30 PM, solarwind wrote: > To get accurate speed readings for my bicycle speedometer project, I > have to count how long it will take the wheel to turn rather than how > many times it has turned in x seconds. I want a 1 second speed update > rate so to go about it, I need to count how many milliseconds it takes > for the wheel to spin once. That way, I can get an accurate speed > reading. Why do you want a 1/second update rate? Why not update the screen when new information arrives, eg. at the "wheel rotated" event? You can always add resampling later if that's what you really want to do. Regards, Mark markrages@gmail -- Mark Rages, Engineer Midwest Telecine LLC markrages@midwesttelecine.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist