View Single Post
Old 08-09-10 | 05:08 PM
  #7  
jimmuller's Avatar
jimmuller
What??? Only 2 wheels?
Titanium Club Membership
15 Anniversary
 
Joined: Apr 2010
Posts: 13,496
Likes: 940
From: Boston-ish, MA

Bikes: 72 Peugeot UO-8, 82 Peugeot TH8, 87 Bianchi Brava, 76? Masi Grand Criterium, 74 Motobecane Champion Team, 86 & 77 Gazelle champion mondial, 81? Grandis, 82? Tommasini, 83 Peugeot PF10

Originally Posted by njkayaker
"De-bounced"?
The newer wireless computers send a code to the head unit. This avoids interference from other bicyclists using the same computer and avoids extra count issues.
By "de-bouncing" I meant a software scheme to rule out clicks that came too close together. The term comes from the fact that mechanical switches have significant bounce when closed. If software is polling the switch or servicing interrupts fast enough it can read the bouncing as more than one switch action. In a worst case the switch is a momentary contact which is supposed to be a toggle between on and off. In this case the final state of the switch depends on whether the system reads an even or odd number of closures. If it is supposed to merely read the final state of a two (or more) position switch it will eventually read that state correctly. But if it is supposed to take certain actions on each transition it might take them unnecessarily for the bogus closure events.

In either case a de-bouncing scheme is often implemented where the switch is read several times and the same value must be read so many times in a row. In the case of simple events it can read one event then exclude all others for some fixed amount of time. The challenge for the designer then is to know how long that time should be so that real events are detected but bogus ones are not. This could be implemented on the microprocessor in the detector unit or in the display unit. Of course all this assumes that the wireless transmission itself is not confused by other nearby systems.
__________________
Real cyclists use toe clips.
With great bikes comes great responsibility.
jimmuller
jimmuller is offline  
Reply