View Single Post
  #5   Spotlight this post!  
Unread 23-01-2015, 15:23
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Magnetic Encoder Wiring and Programming

Quote:
Originally Posted by Ether View Post
Or you can use the FPGA to measure the pulse width? WPILib counter object semi-period mode.

http://www.chiefdelphi.com/forums/sh...32&postcount=5
Semi-period mode is not ideal for this sensor, because the data sheet recommends using the duty cycle. When there is motion, you could get out of sync values if you're trying to measure the duty cycle in semi-period mode. You could measure just the high or low pulse and use other methods to calibrate out the 5% frequency tolerance.
Reply With Quote