Hallo zusammen,
ich versuche gerade das Arduino Motion Shield mit dem Arduino Zero zu verwenden. Hierbei nutze ich die bereits bestehende Library für den BMO055: GitHub - arduino-libraries/Arduino_NineAxesMotion: 9 Axes Motion Shield Library
Mit den bestehenden Beispielen erhalte ich jeweils nur den Wert 0 zurück. Kann mir jemand sagen, woran das genau liegt. Die I2C Verbindung besteht und wurde an 0x28 erkannt...
Zur Info: Ich nutze den Arduino über den Programming Port am Mac (dürfte aber nicht das Problem sein)
English Version:
Hello all,
I am currently trying to use the Arduino Motion Shield with the Arduino Zero. Here I use the already existing library for the BMO055: GitHub - arduino-libraries/Arduino_NineAxesMotion: 9 Axes Motion Shield Library
With the existing examples I get only the value 0 back in each case. Can someone tell me what exactly is the reason for this. The I2C connection exists and was detected at 0x28....
For info: I use the Arduino via the programming port on the Mac (but should not be the problem).
As you posted to the English section of the forum my answer is in that language too.
Your shield connects INT to pin D2 by default (can be changed to D4 by a solder iron) and reset to D7 (alternatively to D3).
The library you use expects RESET to be on pin D7 and INT also on pin D7 for your board (SAMD21). Change that in the .h file of the library and try again.
I changed the .h-file and define the reset_pin and int_pin:
//GPIO pins used for controlling the Sensor
#define RESET_PIN 7 //GPIO to reset the BNO055 (RESET pin has to be HIGH for the BNO055 to operate)
#define INT_PIN 2
#define ENABLE 1 //For use in function parameters
#define DISABLE 0 //For use in function parameters
#define NO_MOTION 1 //Enables the no motion interrupt
#define SLOW_MOTION 0 //Enables the slow motion interrupt
#define ANDROID 1 //To set the Output Data Format to Android style
but it still doesn't works ...
I also tried this with 4 as INT pin and 3 as RESET pin. May I have to change the .h file somewhere else? I use the Euler example as a sketch. Thanks for your help!