View Single Post
  #3   Spotlight this post!  
Unread 08-02-2013, 21:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Motor using Encoder as Limit Switch?

When you read an encoder, you get a value that represents how far it has turned. You can use that value to enforce minimum and maximum travel on your motor. When the encoder is above a certain value, don't let the motor travel any farther forward. When it's below a certain value, don't let the motor travel any farther backward.

But if you don't guarantee that you're always starting up the robot with the motor in the same position, the encoder value won't always represent a consistent position.
Reply With Quote