jcorcoran / BNO055_FRC

A test project to illustrate how to use the BNO055 sensor with the FRC control system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BNO055_FRC

A test project to illustrate how to use the BNO055 sensor ([datasheet pdf] (http://www.adafruit.com/datasheets/BST_BNO055_DS000_12.pdf)) with the FRC control system.

This code is a port of the Adafruit BNO055 arduino library. At the time of writing, this sensor was available from:

  • $35 + S/H: Adafruit
  • $35 + S/H: digikey
  • $40 + $3 S/H (prime eligible): Amazon
  • $21 + S/H: The Atmel breakout board at digikey will also work. - Sparse documentation (pdf)

Wiring

The demo code assumes you've wired the sensor to the I2C port on the roboRio, just below the CAN connector. And that the sensor is at I2C address 0x28 (This is the default for the Adafruit board. Pin 5 needs to be wired as noted below for the Atmel board).

roboRio Pin (I2C header) Adafruit Breakout Board Pin Atmel Breakout Board Pin
3.3V Vin 20
GND GND 19
SDA SDA 11
SCL SCL 12
Also connect pin 5 to GND (to set I2C address to 0x28).

More information on the pinouts for the BNO055 breakout boards can be found here:

Video Demo:

https://www.youtube.com/watch?v=ssxibpOCFhI

About

A test project to illustrate how to use the BNO055 sensor with the FRC control system.

License:MIT License


Languages

Language:Java 100.0%