|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
Re: Wiring Gyros and Encoders?
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! |
|
#3
|
||||
|
||||
|
Re: Wiring Gyros and Encoders?
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? |
|
#4
|
||||
|
||||
|
Re: Wiring Gyros and Encoders?
Our team soldered male pwm connectors with a 90 degree turn directly to the gyro and accelerometer boards to make connecting them easy.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyros and WPILib | RyanW | Programming | 2 | 28-01-2008 14:05 |
| Encoders and putdata | theycallhimtom | Programming | 3 | 09-02-2006 19:24 |
| Testing and Cause of Failure for Encoders and Hall Effect sensors | ChrisH | Electrical | 28 | 19-09-2005 01:07 |
| encoders/gyros/potentiometers | nehalita | Programming | 12 | 31-01-2005 23:08 |
| White Paper Discuss: Use of Gyros in Navigation, Tip Prevention, and Driver Control | CD47-Bot | Extra Discussion | 1 | 18-03-2004 08:36 |