Thread: encoder wiring
View Single Post
  #2   Spotlight this post!  
Unread 06-02-2007, 17:30
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: encoder wiring

What model of encoder are you using?

Most FIRST encoders will have 4 pins (some have a 5th).

One of these should be labelled VCC in the datasheet, and should be connected to the red pin of a digital input port for power.

Another is labelled GROUND and should be connected to the black pin of a digital input port.

The other two are the signals for Channel A and Channel B. Each one should go into the white pin of a digital input (assuming you want to detect direction as well as speed).

If there is a fifth pin, it is most likely for index and you can ignore it.

A motor can go either to a Victor or a Spike. The Spike can only make the motor run full forward, full reverse, or not at all. The Victor lets you vary the speed of the motor as well. Which one you choose depends on the application. Note that big motors (like the CIMs, Fisher Price, or Globe) should go to a Victor with a 30A or 40A fuse - the Spike is fused at 20A, which is well below what the bigger motors can draw.