Thread: ADXRS450 Gyro
View Single Post
  #6   Spotlight this post!  
Unread 25-02-2016, 12:47
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 247
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: ADXRS450 Gyro

Quote:
Originally Posted by Alex L. View Post
Just as a follow up, does anyone know if the PWM method would work with the 450? My team is using this gyro for our driving in autonomous, however, due to size constrains, we had to mount the roboRio vertically. This messed up the readout from the gyro, and know we need to mount it horizontally somewhere else.
Yes, you can use (multiple) PWM cables, but a more robust solution would be to use the proper ribbon cable. Copy and paste from http://www.chiefdelphi.com/forums/sh...00#post1533200 :

The connector is a 10 pin 0.1" pitch IDC ribbon connector, and you need 0.05" pitch 10 conductor ribbon cable. Look at DigiKey parts ED10500-ND (female connector), MPK10K-ND (male connector), and AE10G-5-ND (5' ribbon cable). Even easier, DigiKey also sells premade assemblies such as H3AWH-1018G-ND (1.5') and H3AWH-1036G-ND (3.0'). You may be able to find these connectors from your local electronics shop or Fry's store as well.

Also worth noting is the fact the sensor is a 3-axis one, so you can vertically mount it (if it's rigidly mounted and actually vertical) and just read different axes.

EDIT: The accelerometer is 3-axis. The gyro is only one axis, so you'll need to use an extension cable in your situation.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)

Last edited by Peter Johnson : 25-02-2016 at 15:22.