View Single Post
  #1   Spotlight this post!  
Unread 28-02-2012, 19:18
jaysun jaysun is offline
Registered User
no team
 
Join Date: Feb 2012
Rookie Year: 2000
Location: USA
Posts: 17
jaysun is an unknown quantity at this point
Using a magnetic encoder to get speed of a motor

We have a magnetic encoder mounted to a test motor and, using the magnetic encoder example code, we get a nice sawtooth signal that gives us a position. However, we cannot just calculate the speed of the motor using (current_position - last_position)/time because we would calculate an erroneous speed when the position loops from 360 degrees to 0 degrees.

Any ideas on how to work around this to calculate the speed of the motor?
Reply With Quote