|
Re: Wiring Encoders?
I'm not at the BotCave right now, so I'll use a picture from AndyMark's site. You plug the encoder cable into the encoder board, make sure it is in. Then, you place the cover on top of it so you can see how the labels line up. You take two PWM cables, and cut the male end off of them. You strip all three wires of one and only the white or yellow wire from the other. You connect the red wire from the first cable, to the cable that matches with the "+5v" on the encoder. Solder it and wrap the connection in electrical tape or heat tubing. Then, connect the black wire from the first cable to the wire that matches the "gnd" on the encoder. Then, you connect the white or yellow wire from the first cable to the "A" wire on the encoder. You connect the white or yellow wire from the second cable to the "B" wire on the encoder. You plug the two PWM cables into the Digital SideCar in the Digital IO section, not the PWM section. The black wire goes to the outside. If the software sees your robot going backwards, you need to switch the two PWM cables on the Digital Sidecar so the A is where the B was and the B is where the A was, or set the gain negative.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Last edited by apalrd : 16-02-2010 at 11:51.
|