|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Best gyro for frc.
We tried to use an MPU6050 breakout and arduino last year, but combining everything fairly difficult, so we just bought a nav6 from kauai http://www.kauailabs.com/store/index...&product_id=50
They're $70, but designed to work with a cRio out of the box, and will probably work with an rRio with a serial cable. It worked over usb to my computer, and the new rio runs linux, so it should be fairly easy to set up. We used it to make our swerve field-centric, and it only floats by a degree or two throughout the match, which is about as good as you'll get with a cheap chip gyro. If you want to make your own, arduino and an MPU6050 is a good place to start, there are several good libraries and explanations to get you up and running fairly quickly. |
|
#2
|
|||
|
|||
|
Re: Best gyro for frc.
Quote:
Do keep in mind that the MPU-6050 is a 3.3V part, and isn't 5V tolerant, so you'll need to take care of that. The nav6 does that, and also allows powering directly off the 12V robot battery. One of the nice things about using the nav6 firmware, even if you assemble it yourself, is it will work w/all the WPI classes (java, C++) as well as w/the LabView VIs (these are also on the nav6 website). A few people who have the RoboRio beta systems are testing out the nav6 on the RoboRio, and although I haven't got word yet how well it's working for them we expect it should work just fine. If you have any questions, please contact me at scott@kauailabs.com. |
|
#3
|
|||
|
|||
|
Re: Best gyro for frc.
At some point, I'm going to make a board for it for the roboRIO. Given my schedule, don't hold your breath for it... It will most likely be available through WCP.
|
|
#4
|
||||
|
||||
|
Re: Best gyro for frc.
Has anyone thought about making an aftermarket board that plugs straight into the expansion port on the rRIO that includes a gyro built in as well as pwm expansion and dI/O and analog expansion?
|
|
#5
|
||||
|
||||
|
Re: Best gyro for frc.
Quote:
Even if it wasn't, the chip I tried in particular is a single-axis gyro and will require more precise mounting on the robot. Many teams like to mount cRios/roboRios vertically or in a way convenient for troubleshooting or maintanence. Maybe an embedded 3-axis gyro would solve that problem, like the rRio's 3-axis accelerometer. |
|
#6
|
||||
|
||||
|
Re: Best gyro for frc.
Figured I'd clear up a couple of responses in this thread.
Quote:
Quote:
The 450/453 differ from the gyros used on the AndyMark breakout board in that the Analog to Digital conversion is performed within the sensor. This makes them much less susceptible to EMI. In an ideal setting, you would want the accelerometer attached to a rigid portion of your robot, and the gyro would be located as close to the center as possible. Although the 6-axis and 9-axis sensors are cool, they are not designed for precision navigation applications. Noise levels on those sensors are orders of magnitude greater than what's available on application-specific sensors. I would strongly suggest that teams invest some time looking into the 450/453 if they want to have a solid drive system. Another caveat of systems such as the nav6 is that they are not calibrated. Each sensor is unique and will provide a slightly different response when used in different applications. In that case, an integrated IMU such as ADI's iSensor product line would be ideal. Last edited by juchong : 09-01-2015 at 11:59. |
|
#7
|
|||
|
|||
|
Re: Best gyro for frc.
Quote:
However - please be aware that the nav6 is definitely calibrated, as it features factory-calibration of accel/gyro biases, and also continually re-calibrates the gyro biases during periods of non-motion (accounting for gyro temperature changes). This behavior, implemented in the Invensense digital motion processor (DMP) silicon and the on-board microcontroller, is what enables the yaw error rate of approximately 1 degree/minute. The navX MXP features the 2nd-gen MPU-9250 w/even lower gyro noise levels - so we're seeing this technology continue to improve and mature as the MEMS noise levels decrease, and the implementation of the data fusion and calibration algorithms continue to improve. More info on the gyro/accel calibration is available at: https://code.google.com/p/navx-mxp/w...celCalibration The nav6 technology does require about 16 seconds of calibration time before a match, during which the robot must be held still. The navX MXP lessens this period, but this may be a difference between the two approaches worth noting. The nav6/navX MXP technology is cost-effective and viable for use in a field-oriented drive system. Several teams have been doing this successfully, and enjoying the ease of integration it provides. Sounds like a bake-off between a ADXRS453 and a navX MXP would be helpful to the CD community.... |
|
#8
|
||||
|
||||
|
Re: Best gyro for frc.
Ok - so when wiring up this Gyro, what goes where?
Gyro Ground to Roborio SPI Ground Gyro Mosi to Roborio SPI Mosi Gyro Miso to Roborio SPI Miso Gyro PDD to Roborio SPI 5V power (datasheet says 3.3 to 5) Gyro CS to Roborio SPI CS0 Gyro Clk to Roborio SPI Clk Do I have this correct? Since my experience is with analog gyros, what type of data am I going to see over the SPI interface that I will have to use to calculate bias and integrate to angle with? |
|
#9
|
||||
|
||||
|
Re: Best gyro for frc.
Our team took up writing and providing decent drivers for the MPU6050 as one of our offseason projects last year (2014) and had good results. We have very little drift (ie a couple of degrees every couple of hours, though we have yet to record exact results). We have a nice, cheap, solution that has been tested on a BBB and a raspberry pi, and we have half ported working code for the roboRIO (also working on using the MXP breakout board with it):
Links: For BBB and Raspberry PI: https://github.com/thedropbears/DropBoneImu For roboRIO (WIP, but it works): https://github.com/thedropbears/lib-4774 Documentation: http://thedropbears.org.au/wiki/index.php/DropBone_IMU Edit: Add link to documentation |
|
#10
|
||||
|
||||
|
Re: Best gyro for frc.
Quote:
TIA |
|
#11
|
|||||
|
|||||
|
Re: Best gyro for frc.
No, MOSI connects to MOSI. It stands for Master Out Slave In. It's an output from the roboRIO and an input to the connected device.
|
|
#12
|
||||
|
||||
|
Re: Best gyro for frc.
Thanks!
|
|
#13
|
||||
|
||||
|
Re: Best gyro for frc.
Quote:
I should also have a nice RoboRIO solution for the 345 & 453 that teams might be interested in looking at! |
|
#14
|
|||
|
|||
|
Re: Best gyro for frc.
Kauailabs will be announcing exactly what you describe on January 3.
|
|
#15
|
|||||
|
|||||
|
Re: Best gyro for frc.
Quote:
Thanks |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|