View Single Post
  #6   Spotlight this post!  
Unread 09-02-2013, 14:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 60 / getPeriod() returns 3,000,000

Quote:
Originally Posted by bhughes View Post
We've tested at the 20ms periodic methods (removed all other code), and still seen the problem.
What's the part number of your Hall sensor?

Can you post a picture of how you have the magnet mounted to the wheel.

Working hypothesis: vibration is randomly causing the sensor to read the rising edge twice.