kriswiner / BNO055

Teensiduino sketch for 9-axis BNO055 motion sensor + MS5637 pressure sensor
54 stars 22 forks source link

Teensy 3.6? #10

Open abdoh747 opened 5 years ago

abdoh747 commented 5 years ago

Hi I am trying to use the library with a teensy3.6 and the BNO055 and it doesnt seem to be producing any output when I open the serial monitor. I am using pins 16 and 17 on the teensy which correspond to SDA0 and SCL0 but still no output.

I dont get any errors when uploading the BNO_055Nano_Basic_AHRS_t3 script to the teensy board, but

Any help is appreciated...Thanks

kriswiner commented 5 years ago

How are you connecting to 3V3 and GND? What is the voltage showing on SDA/SCL?

On Tue, Sep 18, 2018 at 2:52 AM abdoh747 notifications@github.com wrote:

Hi I am trying to use the library with a teensy3.6 and the BNO055 https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/arduino-code and it doesnt seem to be producing any output when I open the serial monitor. I am using pins 16 and 17 on the teensy which correspond to SDA0 and SCL0 but still no output.

I dont get any errors when uploading the BNO_055Nano_Basic_AHRS_t3 script to the teensy board, but

Any help is appreciated...Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtHZCrAn3_EbHyC_PCeFmv10CvSHks5ucMJOgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

I connected the 3V3 to the pin between 12 and 24, and the GND to the pin just below pin13. The voltage on SDA and SCL is showing 3.28V.

kriswiner commented 5 years ago

then there is something wrong with the way your I2C functions. Can you read any I2C device on the I2C bus with a scan? Maybe you have thee BNO055 address worng...

On Tue, Sep 18, 2018 at 4:43 PM abdoh747 notifications@github.com wrote:

I connected the 3V3 to the pin between 12 and 24, and the GND to the pin just below pin13. The voltage on SDA and SCL is showing 3.28V.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-422595496, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qjswk0SAqd5WBTSt02Jib3lV8UEAks5ucYULgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

I used this script: https://playground.arduino.cc/Main/I2cScanner and the board was detecting an i2c device on 0x28....

kriswiner commented 5 years ago

And are you using 0x28 to read BNO055 data? Can you read the WHO_AM_I register of the BNO055?

On Thu, Sep 20, 2018 at 6:30 PM abdoh747 notifications@github.com wrote:

I used this script: https://playground.arduino.cc/Main/I2cScanner and the board was detecting an i2c device on 0x28....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-423385216, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qkc11t0CNVQl4uDa3G0YK19vIjTUks5udEFEgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

How can I do that?

kriswiner commented 5 years ago

Huh? What device address are you using to talk with the BNO055?

On Sat, Sep 22, 2018 at 10:10 PM abdoh747 notifications@github.com wrote:

How can I do that?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-423792446, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qlMxiV817wmHzb3VG3QTTzIwTaPZks5udxfKgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

Sorry, but am a newbie... I am using a teensy 3.6 running arduino.

kriswiner commented 5 years ago

You don't know which I2C address you are using to send commands from yout Teensy 3.6 to your BNO055?

Better ask at the Teensy forum then...or read the I2C tutorial at Sparkfun

On Sun, Sep 23, 2018 at 3:56 PM abdoh747 notifications@github.com wrote:

Sorry, but am a newbie... I am using a teensy 3.6 running arduino.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-423854282, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qhI7oOCJ-HtUJmHrsA38mL0zPmjuks5ueBGEgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

Oh sorry, misread your email, The address is 0x28 which is what the i2C scanner showed but also what was expected i think...

kriswiner commented 5 years ago

Is this the address you are using in your sketch?

On Sun, Sep 23, 2018 at 4:02 PM abdoh747 notifications@github.com wrote:

Oh sorry, misread your email, The address is 0x28 which is what the i2C scanner showed but also what was expected i think...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-423854660, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qnyafHtH-aA8XMlIsQIe8BcQhOSAks5ueBMNgaJpZM4Wtj4h .

abdoh747 commented 5 years ago

I am using the BNO_055Nano_Basic_AHRS_t3 sketch, which seems to be using it on line 167

kriswiner commented 5 years ago

Nope

define ADO 1

if ADO

define BNO055_ADDRESS 0x29 // Device address of BNO055 when ADO = 1

On Sun, Sep 23, 2018 at 4:08 PM abdoh747 notifications@github.com wrote:

I am using the BNO_055Nano_Basic_AHRS_t3 sketch, which seems to be using it on line 167

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/BNO055/issues/10#issuecomment-423854998, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtHavyCKM896UycF7S2H32FiyjKfks5ueBRwgaJpZM4Wtj4h .