View Single Post
  #9   Spotlight this post!  
Unread 13-04-2014, 23:17
tStano tStano is offline
Registered User
AKA: Sparks
no team
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Madison, WI
Posts: 177
tStano will become famous soon enough
Re: Looking at trying new things for next year. Fits into electrical and programming

6. Quadrature encoders(they know if you're going forwards or backwards) have 4 wires. One is power, one is common(black), and 2 are signal. Colors depend on the encoder you use. Power and common get wired into one PWM cable as well as one of the signals. The other signal goes into the white of another PWM cable. Both these cables get plugged into the sidecar in the Digital IO (or next year, the robo-rio digital IO, should be similar, if what bomb-squad showed at midwest is accurate).
If you aren't using quadrature, you won't use an Encoder object but a Counter, and you will only have 3 wires, power, common, and signal.