Thread: Encoder Help
View Single Post
  #3   Spotlight this post!  
Unread 25-01-2017, 17:04
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,025
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Encoder Help

With a general question, you get a general answer.

The encoder delivers a fixed and known number of pulses per revolution. If you have a 200 pulse-per-revolution encoder, for example, each time the shaft to which it is mounted turns one revolution, your RoboRIO will see 200 pulses.

If you then calculate how far your robot goes in one revolution - Pi is your friend here - you can then measure distance by counting pulses. This is known as Odometry.

Many encoders have a second "orthagonal" output, which can be used to determine the direction of rotation.

Also be aware that some encoders do not output pulses, but instead a variable voltage or some other 'thing' - and we're not discussing those kinds of encoders here.

Good luck!
__________________

I am N2IRZ - What's your callsign?
Reply With Quote