Thread: Vex Encoders
View Single Post
  #4   Spotlight this post!  
Unread 22-02-2009, 21:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Vex Encoders

You can use what I showed with a single channel encoder.
Get rid of the second DIO and just wire the single DIO to both A & B inputs.

Without quadrature the encoder will only count up as it turns in whatever direction, so you do have to be careful to trust it's output only when you are sure you are moving forward or backward.
While sitting still it will probably start counting as the robot vibrates.

You might want to program in a reset when you begin a move forward or backward.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2009 at 16:19.
Reply With Quote