Wiring Gyros and Encoders?

hi, sorry i didn’t know which section this question would fall under, so im just going to ask here. if its in the wrong section, mods feel free to move it. so this is our first year trying to use the Encoders and the Gyros. i was just wondering how do you wire the gyro? and where should the output from the gyro and the encoders be plugged into? any help would be greatly appreciated.

okk…the gyro…
just use a pwm cable and match up the R W B wires (i forget the order, but it’s printed on the gyro board). there’s 2 sets of holes. one is for the gyro, the other is for a temperature sensor. just use kevin’s code ( kevin.org/frc ) for the gyro, and test it with each set of holes.

Encoders:

not 100% sure (i just forget, check kevin’s encoder code anf encoder FAQ for more info) but it takes 2 pwm cables. connect power (red pwm wire?) to power on the eocoder, as well as ground (black?). now, connect one white wire to the Phase A ouput on the encoder, and the white wire from the other pwm cable to the Phase B encoder pin. then, go to kevin’s encoder code, and open up Encoder.h and read through it, editing what i/o pins you used (it’s really quite simple).

Good luck!

for the gyro, plug the wire into T for rotation and R for temperature
yes, it’s weird
T stands for Twist, and R for (get this) RELATIVE temperature.
wierd, huh?

Our team soldered male pwm connectors with a 90 degree turn directly to the gyro and accelerometer boards to make connecting them easy.