|
Re: Got Sensor Fusion?
The BNO055 I2C primary address is x28 (in hex). It has an alternate I2C address at x29 - there is nothing at x26. Did the code that you downloaded (version 3 is currently the latest) use x26 as the sensor address? The wrong address will definitely keep it from working.
Sorry I can't help with the myRIO steup, maybe one of the NI guys that monitor this forum will chime in. I would check that you're powering the sensor correctly (5v or 3.3v depending on which sensor pin you're using). One of the roboRIO's I2C ports (on MXP) has a jumper to properly select the voltage level. Another idea is to look for examples in the help files for coding with the I2C interface with your myRIO.
The myRIO, like the roboRIO, has an integrated 3-axis accelerometer built in, as another option for you. The benefit of the BNO055 is that the integrated sensor fusion algo will separate out acceleration due to gravity from the acceleration due to linear movement. The software posted here allows you to simply switch between those outputs.
This sensor is quite powerful due to the on-board fusion (it also has a three-axis rate gyro and a three-axis magnetometer). The software project I posted here was designed for FIRST FRC team use (roboRIO hardware and a special FRC software development suite), although it should be adaptable to other LabVIEW software contexts. Of course you're welcome to it and I hope you can resolve the myRIO integration issues.
If you're in California, there are a number of great FIRST FRC teams that you could join. Teams are always looking for mentors, and it's a great place to accelerate your own skill set in mechatronics!
|